public class JoinQParserPlugin extends QParserPlugin
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
NAME |
DEFAULT_QTYPE, standardPlugins
Constructor and Description |
---|
JoinQParserPlugin() |
Modifier and Type | Method and Description |
---|---|
static Query |
createJoinQuery(Query subQuery,
String fromField,
String toField,
String method)
A helper method for other plugins to create (non-scoring) JoinQueries wrapped around arbitrary queries against the same core.
|
QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
return a
QParser |
void |
init(NamedList args) |
getCategory, getDescription, getMetricNames, getName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricRegistry, getMetricsSnapshot, registerMetricName
public static final String NAME
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
init
in class QParserPlugin
public QParser createParser(String qstr, SolrParams localParams, SolrParams params, SolrQueryRequest req)
QParserPlugin
QParser
createParser
in class QParserPlugin
public static Query createJoinQuery(Query subQuery, String fromField, String toField, String method)
subQuery
- the query to define the starting set of documents on the "left side" of the joinfromField
- "left side" field name to use in the jointoField
- "right side" field name to use in the joinmethod
- indicates which implementation should be used to process the join. Currently only 'index',
'dvWithScore', and 'topLevelDV' are supported.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.