public class MoreLikeThisQueryParser extends Object implements QueryParser
MoreLikeThisQueryBuilder.Item.| Modifier and Type | Class and Description |
|---|---|
static interface |
MoreLikeThisQueryParser.Field |
| Constructor and Description |
|---|
MoreLikeThisQueryParser() |
| Modifier and Type | Method and Description |
|---|---|
String[] |
names()
The names this query parser is registered under.
|
org.apache.lucene.search.Query |
parse(QueryParseContext parseContext)
Parses the into a query from the current parser location.
|
void |
setFetchService(MoreLikeThisFetchService fetchService) |
public static final String NAME
@Inject(optional=true) public void setFetchService(@Nullable MoreLikeThisFetchService fetchService)
public String[] names()
QueryParsernames in interface QueryParserpublic org.apache.lucene.search.Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException
QueryParserReturns null if this query should be ignored in the context of the DSL.
parse in interface QueryParserIOExceptionQueryParsingExceptionCopyright © 2009–2016. All rights reserved.