public class FilteringDynamicSchemaResolver extends DynamicSchemaResolver
Modifier and Type | Field and Description |
---|---|
static String |
SOURCE_ID |
anyTextFieldsCache, COULD_NOT_READ_METACARD_TYPE_MESSAGE, COULD_NOT_SERIALIZE_OBJECT_MESSAGE, FIELDS_KEY, fieldsCache, FIRST_CHAR_OF_SUFFIX, LUX_XML_FIELD_NAME, metacardTypeNameToSerialCache, metacardTypesCache, schemaFields, SCORE_FIELD_NAME, TOKEN_MAXIMUM_BYTES, XML_INPUT_FACTORY
Constructor and Description |
---|
FilteringDynamicSchemaResolver(FilterAdapter filterAdapter,
SolrFilterDelegateFactory filterDelegateFactory,
QueryRequest request) |
Modifier and Type | Method and Description |
---|---|
void |
addFields(Metacard metacard,
org.apache.solr.common.SolrInputDocument solrInputDocument)
Adds the fields of the Metacard into the
SolrInputDocument |
List<String> |
getAnonymousField(String field)
Attempts to resolve the name of a field without being given an
AttributeType.AttributeFormat |
String |
getCaseSensitiveField(String mappedPropertyName) |
String |
getField(String propertyName,
AttributeType.AttributeFormat format,
boolean isSearchedAsExactValue)
Attempts to find the fieldName for the given propertyName value.
|
String |
getWhitespaceTokenizedField(String mappedPropertyName) |
addFieldsFromClient, anyTextFields, getDocValue, getDocValues, getFieldSuffix, getMetacardType, getSortKey, getSpecialIndexSuffix, getType, isPrivateField, parseTextFrom, resolveFieldName
public static final String SOURCE_ID
public FilteringDynamicSchemaResolver(FilterAdapter filterAdapter, SolrFilterDelegateFactory filterDelegateFactory, QueryRequest request)
public String getField(String propertyName, AttributeType.AttributeFormat format, boolean isSearchedAsExactValue)
DynamicSchemaResolver
getField
in class DynamicSchemaResolver
propertyName
- property name provided by userformat
- AttributeType.AttributeFormat
that describes the type of Attribute
the field isisSearchedAsExactValue
- specifies if any special index suffixes need to be added to the
fieldpublic String getCaseSensitiveField(String mappedPropertyName)
getCaseSensitiveField
in class DynamicSchemaResolver
public List<String> getAnonymousField(String field)
DynamicSchemaResolver
AttributeType.AttributeFormat
getAnonymousField
in class DynamicSchemaResolver
field
- user given field namepublic String getWhitespaceTokenizedField(String mappedPropertyName)
getWhitespaceTokenizedField
in class DynamicSchemaResolver
public void addFields(Metacard metacard, org.apache.solr.common.SolrInputDocument solrInputDocument) throws MetacardCreationException
DynamicSchemaResolver
SolrInputDocument
addFields
in class DynamicSchemaResolver
MetacardCreationException
This work is licensed under a Creative Commons Attribution 4.0 International License.