Interface LuceneAutoCorrectRawQueryParser
- All Superinterfaces:
AutoCorrectRawQueryTransformer
- All Known Implementing Classes:
DefaultAutoCorrectRawQueryTransformer
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 Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.search.Query
parse
(QueryStringQuery query, Function<String, String> transformer) ParseQueryStringQuery
with a valid query formatorg.apache.lucene.search.Query
parse
(TextFieldQuery query, Function<String, String> transformer) ParseTextFieldQuery
with a valid query formatMethods inherited from interface com.atlassian.confluence.search.v2.AutoCorrectRawQueryTransformer
transform, transform
-
Method Details
-
parse
ParseQueryStringQuery
with a valid query format- Parameters:
query
-transformer
-- Returns:
- parsed Lucene query for the original query, or fallback with the transformed query
-
parse
ParseTextFieldQuery
with a valid query format- Parameters:
query
-transformer
-- Returns:
- parsed Lucene query for the original query, or fallback with the transformed query
-