public interface LuceneQueryMapper<T extends SearchQuery>
SearchQuery
to a Lucene Query
. Every
SearchPrimitive
query must have a corresponding mapper.
Implementations of this class will be autowired automatically.
Implementations of this class must use setter injection instead of constructor injector, as only the former is supported at the moment.
Since 7.0, if a Query can be decomposed into multiple primitive queries, it is recommended to use
SearchQuery.expand()
instead.
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
convertToLuceneQuery(T searchQuery)
Convert a SearchQuery into a lucene query.
|
org.apache.lucene.search.Query convertToLuceneQuery(T searchQuery)
searchQuery
- the query to convertIllegalArgumentException
- if the search query is null or invalidCopyright © 2003–2022 Atlassian. All rights reserved.