Interface SearcherInformation<T extends SearchableField>
- All Known Implementing Classes:
CustomFieldSearcherInformation,FeatureFlagGuardedSearcherInformation,GenericSearcherInformation,MockSearcherInformation
Identifies a searcher by name and provides a display name that is i18n'ed.
- Since:
- v4.0
-
Method Summary
Modifier and TypeMethodDescriptiongetField()getId()The unique id of the searcher.default List<FieldIndexer>Returns a list ofFieldIndexerobjects.The i18n key that is used to lookup the searcher's name when it is displayed.Deprecated, for removal: This API element is subject to removal in a future version.The searcher group the searcher should be placed in.
-
Method Details
-
getId
String getId()The unique id of the searcher.- Returns:
- unique id of the searcher.
-
getNameKey
String getNameKey()The i18n key that is used to lookup the searcher's name when it is displayed.- Returns:
- i18n key that is used to lookup the searcher's name when it is displayed.
-
getField
T getField()- Returns:
- the field that this searcher was initialised with. If the searcher has not yet been initialised, this will return null.
-
getIndexers
Returns a list ofFieldIndexerobjects. The objects should be initialised and ready for action. Replaces Lucene-specificgetRelatedIndexers()- Returns:
ListofFieldIndexerobjects. Must not be null. Return an empty list if none available
-
getRelatedIndexers
Deprecated, for removal: This API element is subject to removal in a future version.since 10.4, usegetIndexers()instead.Returns a list ofFieldIndexerobjects. The objects should be initialised and ready for action- Returns:
ListofFieldIndexerobjects. Must not be null. Return an empty list if none available
-
getSearcherGroupType
SearcherGroupType getSearcherGroupType()The searcher group the searcher should be placed in. Really only useful for system fields as custom fields are forced into theSearcherGroupType.CUSTOMgroup.- Returns:
- the group the searcher should be associated with. Cannot not be null.
-
getIndexers()instead.