Interface SearcherInformation<T extends SearchableField>

All Known Implementing Classes:
CustomFieldSearcherInformation, GenericSearcherInformation, MockSearcherInformation

@PublicApi @PublicSpi public interface SearcherInformation<T extends SearchableField>
Identifies a searcher by name and provides a display name that is i18n'ed.
Since:
v4.0
  • 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 of FieldIndexer objects. The objects should be initialised and ready for action.
      Returns:
      List of FieldIndexer objects. 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 the SearcherGroupType.CUSTOM group.
      Returns:
      the group the searcher should be associated with. Cannot not be null.