public class DelegatingLuceneSearchMapper extends Object implements LuceneSearchMapper
Constructor and Description |
---|
DelegatingLuceneSearchMapper(LuceneSearchMapperRegistry registry) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
convertToLuceneQuery(SearchQuery query)
Convert a SearchQuery into a lucene query.
|
LuceneResultFilter |
convertToLuceneResultFilter(ResultFilter resultFilter) |
org.apache.lucene.search.Filter |
convertToLuceneSearchFilter(SearchFilter searchFilter)
Convert a search filter into a lucene search filter.
|
org.apache.lucene.search.Sort |
convertToLuceneSort(SearchSort searchSort)
Converts a search sort into a lucene sort.
|
public DelegatingLuceneSearchMapper(LuceneSearchMapperRegistry registry)
public org.apache.lucene.search.Query convertToLuceneQuery(SearchQuery query)
LuceneQueryMapper
convertToLuceneQuery
in interface LuceneQueryMapper<SearchQuery>
query
- the query to convertpublic org.apache.lucene.search.Sort convertToLuceneSort(SearchSort searchSort)
LuceneSearchMapperRegistry.getSortMapper(String)
.convertToLuceneSort
in interface LuceneSortMapper
searchSort
- search sort to be convertedLuceneMapperNotFoundException
- if no LuceneSortMapper
could be found via LuceneSearchMapperRegistry.getSortMapper(String)
.public LuceneResultFilter convertToLuceneResultFilter(ResultFilter resultFilter)
convertToLuceneResultFilter
in interface LuceneResultFilterMapper
resultFilter
- result filter to be convertedLuceneMapperNotFoundException
- if no LuceneResultFilterMapper
could be found via LuceneSearchMapperRegistry.getResultFilterMapper(String)
.public org.apache.lucene.search.Filter convertToLuceneSearchFilter(SearchFilter searchFilter)
LuceneSearchFilterMapper
convertToLuceneSearchFilter
in interface LuceneSearchFilterMapper<SearchFilter>
searchFilter
- the search filter to convertCopyright © 2003–2017 Atlassian. All rights reserved.