Interface LuceneAutoCorrectRawQueryParser

All Superinterfaces:
AutoCorrectRawQueryTransformer
All Known Implementing Classes:
DefaultAutoCorrectRawQueryTransformer

public interface LuceneAutoCorrectRawQueryParser extends AutoCorrectRawQueryTransformer
This class will help to parse raw query to Lucene by transforming an invalid raw query into a valid one
Since:
8.9.0
  • Method Details

    • parse

      org.apache.lucene.search.Query parse(QueryStringQuery query, Function<String,String> transformer)
      Parse QueryStringQuery with a valid query format
      Parameters:
      query -
      transformer -
      Returns:
      parsed Lucene query for the original query, or fallback with the transformed query
    • parse

      org.apache.lucene.search.Query parse(TextFieldQuery query, Function<String,String> transformer)
      Parse TextFieldQuery with a valid query format
      Parameters:
      query -
      transformer -
      Returns:
      parsed Lucene query for the original query, or fallback with the transformed query