public class MoreLikeThisQueryParser extends Object implements QueryParser
| Modifier and Type | Class and Description |
|---|---|
static class |
MoreLikeThisQueryParser.Fields |
| 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
QueryParserparse in interface QueryParserIOExceptionQueryParsingExceptionCopyright © 2009–2016. All rights reserved.