public class JsonSyntaxParser extends Object implements org.apache.lucene.queryparser.flexible.core.parser.SyntaxParser
This parser is based on the Jackson's JSON parser and uses internally
an ObjectMapper to create a tree model of the JSON data. The
tree model is then traversed using a property-centric visitor model.
The parser works as follows:
JsonPropertyParsers.
For each property found in the tree model, the corresponding
JsonPropertyParser is applied.
| Constructor and Description |
|---|
JsonSyntaxParser() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.lucene.queryparser.flexible.core.nodes.QueryNode |
parse(CharSequence query,
CharSequence field) |
public org.apache.lucene.queryparser.flexible.core.nodes.QueryNode parse(CharSequence query, CharSequence field) throws org.apache.lucene.queryparser.flexible.core.QueryNodeParseException
parse in interface org.apache.lucene.queryparser.flexible.core.parser.SyntaxParserorg.apache.lucene.queryparser.flexible.core.QueryNodeParseExceptionCopyright © 2014. All rights reserved.