Interface SearcherInformation<T extends SearchableField>
- All Known Implementing Classes:
CustomFieldSearcherInformation,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.Returns a list ofFieldIndexerobjects.The i18n key that is used to lookup the searcher's name when it is displayed.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
List<FieldIndexer> getIndexers()Returns a list ofFieldIndexerobjects. The objects should be initialised and ready for action.- Returns:
ListofFieldIndexerobjects. Must not be null.
-
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.
-