Package | Description |
---|---|
org.apache.solr.handler.component |
SearchComponent implementations for
use in SearchHandler |
Modifier and Type | Field and Description |
---|---|
List<PhrasesIdentificationComponent.Phrase> |
PhrasesIdentificationComponent.PhrasesContextData.allPhrases |
Modifier and Type | Method and Description |
---|---|
static List<PhrasesIdentificationComponent.Phrase> |
PhrasesIdentificationComponent.Phrase.extractPhrases(String input,
SchemaField analysisField,
int maxIndexedPositionLength,
int maxQueryPositionLength)
Factory method for constructing a list of Phrases given the specified input and using the analyzer
for the specified field.
|
List<PhrasesIdentificationComponent.Phrase> |
PhrasesIdentificationComponent.Phrase.getIndexedSuperPhrases()
Returns all phrases larger then this phrase, which fully include this phrase, and are indexed.
|
List<PhrasesIdentificationComponent.Phrase> |
PhrasesIdentificationComponent.Phrase.getIndividualIndexedTerms()
Returns the list of "individual" (ie:
getPositionLength()==1 terms. |
List<PhrasesIdentificationComponent.Phrase> |
PhrasesIdentificationComponent.Phrase.getLargestIndexedSubPhrases()
Returns the list of (overlapping) sub phrases that have the largest possible size based on
the effective value of
PhrasesIdentificationComponent.PhrasesContextData.maxIndexedPositionLength . |
Modifier and Type | Method and Description |
---|---|
static List<NamedList<Object>> |
PhrasesIdentificationComponent.Phrase.formatShardResponse(List<PhrasesIdentificationComponent.Phrase> phrases)
Format the phrases suitable for returning in a shard response
|
static void |
PhrasesIdentificationComponent.Phrase.populateScores(List<PhrasesIdentificationComponent.Phrase> phrases,
Map<String,Double> fieldWeights,
int maxIndexedPositionLength,
int maxQueryPositionLength)
Public for testing purposes
|
static void |
PhrasesIdentificationComponent.Phrase.populateStats(List<PhrasesIdentificationComponent.Phrase> phrases,
Collection<String> fieldNames,
SolrIndexSearcher searcher)
Populates the phrases with stats from the local index for the specified fields
|
static void |
PhrasesIdentificationComponent.Phrase.populateStats(List<PhrasesIdentificationComponent.Phrase> phrases,
List<NamedList<Object>> shardData)
Populates the phrases with (merged) stats from a remote shard
|
String |
PhrasesIdentificationComponent.PhrasesContextData.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
PhrasesIdentificationComponent.PhrasesContextData.summaryPre
and PhrasesIdentificationComponent.PhrasesContextData.summaryPost |
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.