public static final class PhrasesIdentificationComponent.PhrasesContextData extends Object
Modifier and Type | Field and Description |
---|---|
List<PhrasesIdentificationComponent.Phrase> |
allPhrases |
SchemaField |
analysisField |
Map<String,Double> |
fieldWeights |
int |
maxIndexedPositionLength |
int |
maxQueryPositionLength |
String |
rawInput |
String |
summaryPost |
String |
summaryPre |
Modifier and Type | Method and Description |
---|---|
static PhrasesIdentificationComponent.PhrasesContextData |
parseAndValidateRequest(SolrQueryRequest req)
Parses the params included in this request, throwing appropriate user level
Exceptions for invalid input, and returning a
PhrasesContextData
suitable for use in this request. |
String |
summarize(List<PhrasesIdentificationComponent.Phrase> results)
Given a list of phrases to be returned to the user, summarizes those phrases by decorating the
original input string to indicate where the identified phrases exist, using
summaryPre
and summaryPost |
public final String rawInput
public final int maxIndexedPositionLength
public final int maxQueryPositionLength
public final SchemaField analysisField
public final List<PhrasesIdentificationComponent.Phrase> allPhrases
public final String summaryPre
public final String summaryPost
public static PhrasesIdentificationComponent.PhrasesContextData parseAndValidateRequest(SolrQueryRequest req) throws SolrException
PhrasesContextData
suitable for use in this request.SolrException
public String summarize(List<PhrasesIdentificationComponent.Phrase> results)
summaryPre
and summaryPost
results
- a list of (non overlapping) Phrases that have been identified, sorted from highest scoring to lowestCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.