Interface UserQueryPreprocessor

All Superinterfaces:
ConfigurableExtension
All Known Implementing Classes:
AsciifyUserQueryPreprocessor, CodePointFilterUserQueryPreprocessor, NonAlphanumericStripPreprocessor

public interface UserQueryPreprocessor extends ConfigurableExtension
Can be used to modify the user query prior it is processed by the UserQueryAnalyzer, for example to normalize the query.
  • Method Details

    • preProcess

      String preProcess(String userQuery)
    • preProcess

      default String preProcess(String userQuery, Map<String,Object> resultMetaData)
      Extended preProcess method that also get the meta-data map passed that can be filled with relevant meta data. That meta data will then be part of the search response.
      Parameters:
      userQuery -
      resultMetaData -
      Returns: