public static class SolrPluginUtils.DisjunctionMaxQueryParser extends SolrQueryParser
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | SolrPluginUtils.DisjunctionMaxQueryParser.AliasA simple container for storing alias info | 
QueryParser.OperatorSolrQueryParserBase.MagicFieldName| Modifier and Type | Field and Description | 
|---|---|
| protected Map<String,SolrPluginUtils.DisjunctionMaxQueryParser.Alias> | aliasesWhere we store a map from field name we expect to see in our query
 string, to Alias object containing the fields to use in our
 DisjunctionMaxQuery and the tiebreaker to use. | 
jj_nt, token, token_sourceanalyzer, AND_OPERATOR, OR_OPERATOR, parser, schema_ESCAPED_CHAR, _NUM_CHAR, _QUOTED_CHAR, _SQUOTED_CHAR, _TERM_CHAR, _TERM_START_CHAR, _WHITESPACE, AND, BAREOPER, Boost, CARAT, COLON, DEFAULT, EOF, FUZZY_SLOP, LPARAMS, LPAREN, MINUS, NOT, NUMBER, OR, PLUS, PREFIXTERM, QUOTED, Range, RANGE_GOOP, RANGE_QUOTED, RANGE_TO, RANGEEX_END, RANGEEX_START, RANGEIN_END, RANGEIN_START, REGEXPTERM, RPAREN, STAR, TERM, tokenImage, WILDTERM| Constructor and Description | 
|---|
| SolrPluginUtils.DisjunctionMaxQueryParser(QParser qp,
                                         String defaultField) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAlias(String field,
        float tiebreaker,
        Map<String,Float> fieldBoosts)Add an alias to this query parser. | 
| protected Query | getFieldQuery(String field,
             String queryText,
             boolean quoted)Delegates to the super class unless the field has been specified
 as an alias -- in which case we recurse on each of
 the aliased fields, and the results are composed into a
 DisjunctionMaxQuery. | 
Clause, Conjunction, disable_tracing, enable_tracing, generateParseException, getNextToken, getToken, Modifiers, Query, ReInit, ReInit, Term, TopLevelQueryaddClause, analyzeIfMultitermTermText, escape, getAllowLeadingWildcard, getAutoGeneratePhraseQueries, getBooleanQuery, getBooleanQuery, getDefaultField, getDefaultOperator, getEnablePositionIncrements, getField, getFieldQuery, getFuzzyMinSim, getFuzzyPrefixLength, getFuzzyQuery, getLocalParams, getMultiTermRewriteMethod, getPhraseSlop, getPrefixQuery, getRangeQuery, getRegexpQuery, getReversedWildcardFilterFactory, getWildcardQuery, init, newBooleanClause, newBooleanQuery, newFieldQuery, newFuzzyQuery, newMatchAllDocsQuery, newMultiPhraseQuery, newPhraseQuery, newPrefixQuery, newRegexpQuery, newTermQuery, newWildcardQuery, parse, setAllowLeadingWildcard, setAutoGeneratePhraseQueries, setDefaultOperator, setEnablePositionIncrements, setFuzzyMinSim, setFuzzyPrefixLength, setMultiTermRewriteMethod, setPhraseSlopprotected Map<String,SolrPluginUtils.DisjunctionMaxQueryParser.Alias> aliases
public void addAlias(String field, float tiebreaker, Map<String,Float> fieldBoosts)
field - the field name that should trigger alias mappingfieldBoosts - the mapping from fieldname to boost value that
                    should be used to build up the clauses of the
                    DisjunctionMaxQuery.tiebreaker - to the tiebreaker to be used in the
                   DisjunctionMaxQuerySolrPluginUtils.parseFieldBoosts(java.lang.String)protected Query getFieldQuery(String field, String queryText, boolean quoted) throws SyntaxError
getFieldQuery in class SolrQueryParserBaseSyntaxErrorCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.