com.senseidb.search.query
Class QueryConstructor

java.lang.Object
  extended by 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


Field Summary
static String ALLOW_LEADING_WILDCARD_PARAM
           
static String ANALYZE_WILDCARD_PARAM
           
static String AND_PARAM
           
static String AUTO_GENERATE_PHRASE_QUERIES_PARAM
           
static String BOOST_PARAM
           
static String CLASS_PARAM
           
static String CLAUSES_PARAM
           
static String COLLECT_PAYLOADS_PARAM
           
static String DEFAULT_FIELD_PARAM
           
static String DEFAULT_OPERATOR_PARAM
           
static String DISABLE_COORD_PARAM
           
static String ENABLE_POSITION_INCREMENTS_PARAM
           
static String END_PARAM
           
static String EXCLUDE_PARAM
           
static String EXCLUDES_PARAM
           
static String FIELDS_PARAM
           
static String FILTER_PARAM
           
static String FUZZY_MIN_SIM_PARAM
           
static String FUZZY_PREFIX_LENGTH_PARAM
           
static String IN_ORDER_PARAM
           
static String INCLUDE_PARAM
           
static String LOWERCASE_EXPANDED_TERMS_PARAM
           
static String MATCH_PARAM
           
static String MINIMUM_MATCH_PARAM
           
static String MINIMUM_NUMBER_SHOULD_MATCH_PARAM
           
static String MUST_NOT_PARAM
           
static String MUST_PARAM
           
static String OPERATOR_PARAM
           
static String PARAMS_PARAM
           
static String PHRASE_PARAM
           
static String PHRASE_PREFIX_PARAM
           
static String PHRASE_SLOP_PARAM
           
static String QUERIES_PARAM
           
static String QUERY_PARAM
           
static String SHOULD_PARAM
           
static String SLOP_PARAM
           
static String SPAN_TERM_PARAM
           
static String TERM_PARAM
           
static String TIE_BREAKER_PARAM
           
static String TYPE_PARAM
           
static String USE_DIS_MAX_PARAM
           
static String VALUE_PARAM
           
static String VALUES_PARAM
           
 
Constructor Summary
QueryConstructor()
           
 
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
 

Field Detail

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
Constructor Detail

QueryConstructor

public QueryConstructor()
Method Detail

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.