org.elasticsearch.index.query.json
Class FuzzyLikeThisFieldJsonQueryParser
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.query.json.FuzzyLikeThisFieldJsonQueryParser
- All Implemented Interfaces:
- IndexComponent, JsonQueryParser
public class FuzzyLikeThisFieldJsonQueryParser
- extends AbstractIndexComponent
- implements JsonQueryParser
{
fuzzy_like_This_field : {
field1 : {
maxNumTerms : 12,
boost : 1.1,
likeText : "..."
}
}
Field Summary |
static java.lang.String |
NAME
|
Method Summary |
java.lang.String[] |
names()
|
org.apache.lucene.search.Query |
parse(JsonQueryParseContext parseContext)
Parses the into a query from the current json parser location. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
FuzzyLikeThisFieldJsonQueryParser
public FuzzyLikeThisFieldJsonQueryParser(Index index,
@IndexSettings
Settings indexSettings)
names
public java.lang.String[] names()
- Specified by:
names
in interface JsonQueryParser
parse
public org.apache.lucene.search.Query parse(JsonQueryParseContext parseContext)
throws java.io.IOException,
QueryParsingException
- Description copied from interface:
JsonQueryParser
- Parses the into a query from the current json parser location. Will be at "START_OBJECT" location,
and should end when the token is at the matching "END_OBJECT".
- Specified by:
parse
in interface JsonQueryParser
- Throws:
java.io.IOException
QueryParsingException