com.atlassian.confluence.search.v2.lucene.mapper
Class TextFieldPrefixQueryMapper
java.lang.Object
com.atlassian.confluence.search.v2.lucene.mapper.TextFieldPrefixQueryMapper
- All Implemented Interfaces:
- LuceneQueryMapper<TextFieldPrefixQuery>
public class TextFieldPrefixQueryMapper
- extends Object
- implements LuceneQueryMapper<TextFieldPrefixQuery>
A mapper for TextFieldPrefixQuery
s.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextFieldPrefixQueryMapper
public TextFieldPrefixQueryMapper()
convertToLuceneQuery
public Query convertToLuceneQuery(TextFieldPrefixQuery textFieldPrefixQuery)
- Description copied from interface:
LuceneQueryMapper
- Convert a SearchQuery into a lucene query. So a query that represents a search for any value in a particular index
field should map to null.
- Specified by:
convertToLuceneQuery
in interface LuceneQueryMapper<TextFieldPrefixQuery>
- Parameters:
searchQuery
- a TextFieldPrefixQuery instance.
- Returns:
- a Lucene specific version of the TextFieldPrefixQuery supplied.
- Throws:
IllegalArgumentException
- if the query cannot be successfully parsed by QueryParser