public class FieldPhraseList extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FieldPhraseList.WeightedPhraseInfo
Represents the list of term offsets and boost for some text
|
Constructor and Description |
---|
FieldPhraseList(FieldPhraseList[] toMerge)
Merging constructor.
|
FieldPhraseList(FieldTermStack fieldTermStack,
FieldQuery fieldQuery)
create a FieldPhraseList that has no limit on the number of phrases to analyze
|
FieldPhraseList(FieldTermStack fieldTermStack,
FieldQuery fieldQuery,
int phraseLimit)
a constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addIfNoOverlap(FieldPhraseList.WeightedPhraseInfo wpi) |
List<FieldPhraseList.WeightedPhraseInfo> |
getPhraseList()
return the list of WeightedPhraseInfo.
|
public FieldPhraseList(FieldTermStack fieldTermStack, FieldQuery fieldQuery)
fieldTermStack
- FieldTermStack objectfieldQuery
- FieldQuery objectpublic FieldPhraseList(FieldTermStack fieldTermStack, FieldQuery fieldQuery, int phraseLimit)
fieldTermStack
- FieldTermStack objectfieldQuery
- FieldQuery objectphraseLimit
- maximum size of phraseListpublic FieldPhraseList(FieldPhraseList[] toMerge)
toMerge
- FieldPhraseLists to merge to build this onepublic List<FieldPhraseList.WeightedPhraseInfo> getPhraseList()
public void addIfNoOverlap(FieldPhraseList.WeightedPhraseInfo wpi)
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.