com.senseidb.search.query
Class QueryConstructor
java.lang.Object
com.senseidb.search.query.QueryConstructor
- Direct Known Subclasses:
- BooleanQueryConstructor, CustomQueryConstructor, DistMaxQueryConstructor, FilteredQueryConstructor, MatchAllQueryConstructor, PathQueryConstructor, PrefixQueryConstructor, QueryStringQueryConstructor, RangeQueryConstructor, SpanFirstQueryConstructor, SpanNearQueryConstructor, SpanNotQueryConstructor, SpanOrQueryConstructor, SpanTermQueryConstructor, TermQueryConstructor, TermsQueryConstructor, TextQueryConstructor, UIDQueryConstructor, WildcardQueryConstructor
public abstract class QueryConstructor
- extends Object
Method Summary |
static org.apache.lucene.search.Query |
constructQuery(org.json.JSONObject jsonQuery,
org.apache.lucene.queryParser.QueryParser qparser)
|
protected abstract org.apache.lucene.search.Query |
doConstructQuery(org.json.JSONObject jsonQuery)
|
static QueryConstructor |
getQueryConstructor(String type,
org.apache.lucene.queryParser.QueryParser qparser)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VALUES_PARAM
public static final String VALUES_PARAM
- See Also:
- Constant Field Values
EXCLUDES_PARAM
public static final String EXCLUDES_PARAM
- See Also:
- Constant Field Values
OPERATOR_PARAM
public static final String OPERATOR_PARAM
- See Also:
- Constant Field Values
PARAMS_PARAM
public static final String PARAMS_PARAM
- See Also:
- Constant Field Values
MUST_PARAM
public static final String MUST_PARAM
- See Also:
- Constant Field Values
MUST_NOT_PARAM
public static final String MUST_NOT_PARAM
- See Also:
- Constant Field Values
SHOULD_PARAM
public static final String SHOULD_PARAM
- See Also:
- Constant Field Values
BOOST_PARAM
public static final String BOOST_PARAM
- See Also:
- Constant Field Values
DISABLE_COORD_PARAM
public static final String DISABLE_COORD_PARAM
- See Also:
- Constant Field Values
MINIMUM_NUMBER_SHOULD_MATCH_PARAM
public static final String MINIMUM_NUMBER_SHOULD_MATCH_PARAM
- See Also:
- Constant Field Values
TYPE_PARAM
public static final String TYPE_PARAM
- See Also:
- Constant Field Values
PHRASE_PARAM
public static final String PHRASE_PARAM
- See Also:
- Constant Field Values
PHRASE_PREFIX_PARAM
public static final String PHRASE_PREFIX_PARAM
- See Also:
- Constant Field Values
AND_PARAM
public static final String AND_PARAM
- See Also:
- Constant Field Values
INCLUDE_PARAM
public static final String INCLUDE_PARAM
- See Also:
- Constant Field Values
EXCLUDE_PARAM
public static final String EXCLUDE_PARAM
- See Also:
- Constant Field Values
SPAN_TERM_PARAM
public static final String SPAN_TERM_PARAM
- See Also:
- Constant Field Values
MATCH_PARAM
public static final String MATCH_PARAM
- See Also:
- Constant Field Values
END_PARAM
public static final String END_PARAM
- See Also:
- Constant Field Values
CLASS_PARAM
public static final String CLASS_PARAM
- See Also:
- Constant Field Values
MINIMUM_MATCH_PARAM
public static final String MINIMUM_MATCH_PARAM
- See Also:
- Constant Field Values
CLAUSES_PARAM
public static final String CLAUSES_PARAM
- See Also:
- Constant Field Values
SLOP_PARAM
public static final String SLOP_PARAM
- See Also:
- Constant Field Values
IN_ORDER_PARAM
public static final String IN_ORDER_PARAM
- See Also:
- Constant Field Values
COLLECT_PAYLOADS_PARAM
public static final String COLLECT_PAYLOADS_PARAM
- See Also:
- Constant Field Values
VALUE_PARAM
public static final String VALUE_PARAM
- See Also:
- Constant Field Values
QUERY_PARAM
public static final String QUERY_PARAM
- See Also:
- Constant Field Values
FILTER_PARAM
public static final String FILTER_PARAM
- See Also:
- Constant Field Values
QUERIES_PARAM
public static final String QUERIES_PARAM
- See Also:
- Constant Field Values
TERM_PARAM
public static final String TERM_PARAM
- See Also:
- Constant Field Values
TIE_BREAKER_PARAM
public static final String TIE_BREAKER_PARAM
- See Also:
- Constant Field Values
DEFAULT_FIELD_PARAM
public static final String DEFAULT_FIELD_PARAM
- See Also:
- Constant Field Values
FIELDS_PARAM
public static final String FIELDS_PARAM
- See Also:
- Constant Field Values
DEFAULT_OPERATOR_PARAM
public static final String DEFAULT_OPERATOR_PARAM
- See Also:
- Constant Field Values
ALLOW_LEADING_WILDCARD_PARAM
public static final String ALLOW_LEADING_WILDCARD_PARAM
- See Also:
- Constant Field Values
LOWERCASE_EXPANDED_TERMS_PARAM
public static final String LOWERCASE_EXPANDED_TERMS_PARAM
- See Also:
- Constant Field Values
ENABLE_POSITION_INCREMENTS_PARAM
public static final String ENABLE_POSITION_INCREMENTS_PARAM
- See Also:
- Constant Field Values
FUZZY_PREFIX_LENGTH_PARAM
public static final String FUZZY_PREFIX_LENGTH_PARAM
- See Also:
- Constant Field Values
FUZZY_MIN_SIM_PARAM
public static final String FUZZY_MIN_SIM_PARAM
- See Also:
- Constant Field Values
PHRASE_SLOP_PARAM
public static final String PHRASE_SLOP_PARAM
- See Also:
- Constant Field Values
ANALYZE_WILDCARD_PARAM
public static final String ANALYZE_WILDCARD_PARAM
- See Also:
- Constant Field Values
AUTO_GENERATE_PHRASE_QUERIES_PARAM
public static final String AUTO_GENERATE_PHRASE_QUERIES_PARAM
- See Also:
- Constant Field Values
USE_DIS_MAX_PARAM
public static final String USE_DIS_MAX_PARAM
- See Also:
- Constant Field Values
QueryConstructor
public QueryConstructor()
getQueryConstructor
public static QueryConstructor getQueryConstructor(String type,
org.apache.lucene.queryParser.QueryParser qparser)
constructQuery
public static org.apache.lucene.search.Query constructQuery(org.json.JSONObject jsonQuery,
org.apache.lucene.queryParser.QueryParser qparser)
throws org.json.JSONException
- Throws:
org.json.JSONException
doConstructQuery
protected abstract org.apache.lucene.search.Query doConstructQuery(org.json.JSONObject jsonQuery)
throws org.json.JSONException
- Throws:
org.json.JSONException
Copyright © 2010-2012. All Rights Reserved.