public class LTRQParserPlugin extends QParserPlugin implements ResourceLoaderAware, ManagedResourceObserver
Modifier and Type | Class and Description |
---|---|
class |
LTRQParserPlugin.LTRQParser |
class |
LTRQParserPlugin.LTRQuery
A learning to rank Query, will incapsulate a learning to rank model, and delegate to it the rescoring
of the documents.
|
SolrInfoMBean.Category, SolrInfoMBean.Group
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RERANK_DOCS
query parser plugin: default number of documents to rerank
|
static String |
MODEL
query parser plugin: the name of the attribute for setting the model
|
static String |
NAME |
static String |
RERANK_DOCS
query parser plugin:the param that will select how the number of document
to rerank
|
DEFAULT_QTYPE, standardPlugins
Constructor and Description |
---|
LTRQParserPlugin() |
Modifier and Type | Method and Description |
---|---|
QParser |
createParser(String qstr,
SolrParams localParams,
SolrParams params,
SolrQueryRequest req)
return a
QParser |
static Map<String,String[]> |
extractEFIParams(SolrParams localParams)
Given a set of local SolrParams, extract all of the efi.key=value params into a map
|
void |
inform(ResourceLoader loader)
Initializes this component with the provided ResourceLoader
(used for loading classes, files, etc).
|
void |
init(NamedList args) |
void |
onManagedResourceInitialized(NamedList<?> args,
ManagedResource res)
Event notification raised once during core initialization to notify
listeners that a ManagedResource is fully initialized.
|
getCategory, getDescription, getDocs, getName, getSource, getStatistics, getVersion
public static final String NAME
public static final String MODEL
public static final int DEFAULT_RERANK_DOCS
public static final String RERANK_DOCS
public LTRQParserPlugin()
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 Map<String,String[]> extractEFIParams(SolrParams localParams)
localParams
- Local request parameters that might conatin efi paramspublic void inform(ResourceLoader loader) throws IOException
ResourceLoaderAware
inform
in interface ResourceLoaderAware
IOException
public void onManagedResourceInitialized(NamedList<?> args, ManagedResource res) throws SolrException
ManagedResourceObserver
onManagedResourceInitialized
in interface ManagedResourceObserver
SolrException