org.elasticsearch.index.query
Interface QueryParser

All Known Implementing Classes:
BoolQueryParser, BoostingQueryParser, ConstantScoreQueryParser, CustomBoostFactorQueryParser, CustomFiltersScoreQueryParser, CustomScoreQueryParser, DisMaxQueryParser, FieldMaskingSpanQueryParser, FieldQueryParser, FilteredQueryParser, FuzzyLikeThisFieldQueryParser, FuzzyLikeThisQueryParser, FuzzyQueryParser, GeoShapeQueryParser, HasChildQueryParser, IdsQueryParser, IndicesQueryParser, MatchAllQueryParser, MatchQueryParser, MoreLikeThisFieldQueryParser, MoreLikeThisQueryParser, MultiMatchQueryParser, NestedQueryParser, PrefixQueryParser, QueryStringQueryParser, RangeQueryParser, SpanFirstQueryParser, SpanNearQueryParser, SpanNotQueryParser, SpanOrQueryParser, SpanTermQueryParser, TermQueryParser, TermsQueryParser, TopChildrenQueryParser, WildcardQueryParser, WrapperQueryParser

public interface QueryParser


Method Summary
 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.
 

Method Detail

names

String[] names()
The names this query parser is registered under.


parse

@Nullable
org.apache.lucene.search.Query parse(QueryParseContext parseContext)
                                     throws IOException,
                                            QueryParsingException
Parses the into a query from the current parser location. Will be at "START_OBJECT" location, and should end when the token is at the matching "END_OBJECT".

Returns null if this query should be ignored in the context of the DSL.

Throws:
IOException
QueryParsingException


Copyright © 2009-2012. All Rights Reserved.