Package | Description |
---|---|
org.apache.lucene.analysis |
Text analysis.
|
org.apache.lucene.analysis.miscellaneous |
Miscellaneous Tokenstreams.
|
org.apache.lucene.analysis.payloads |
Provides various convenience classes for creating payloads on Tokens.
|
org.apache.lucene.analysis.synonym |
Analysis components for Synonyms.
|
org.apache.lucene.analysis.tokenattributes |
General-purpose attributes for text analysis.
|
org.apache.lucene.classification |
Uses already seen data (the indexed documents) to classify an input ( can be simple text or a structured document).
|
org.apache.lucene.classification.document |
Uses already seen data (the indexed documents) to classify new documents.
|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.blockterms |
Pluggable term index / block terms dictionary implementations.
|
org.apache.lucene.codecs.blocktree |
BlockTree terms dictionary.
|
org.apache.lucene.codecs.blocktreeords |
Same postings format as Lucene50, except the terms dictionary also
supports ords, i.e.
|
org.apache.lucene.codecs.bloom |
Codec PostingsFormat for fast access to low-frequency terms
such as primary key fields.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.codecs.idversion |
A primary-key postings format that associates a version (long) with each term and
can provide fail-fast lookups by ID and version.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene50 for an overview
of the index format. |
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.collation.tokenattributes |
Custom
AttributeImpl for indexing collation keys as index terms. |
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.facet |
Faceted search.
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.queries.function.valuesource |
A variety of functions to use with FunctionQuery.
|
org.apache.lucene.queries.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.queryparser.flexible.standard.nodes |
Standard Lucene Query Nodes.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.intervals |
Intervals queries
|
org.apache.lucene.search.similarities |
This package contains the various ranking models that can be used in Lucene.
|
org.apache.lucene.search.spell |
Suggest alternate spellings for words.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.search.suggest.fst |
Finite-state based autosuggest.
|
org.apache.lucene.search.suggest.jaspell |
JaSpell-based autosuggest.
|
org.apache.lucene.search.suggest.tst |
Ternary Search Tree based autosuggest.
|
org.apache.lucene.search.uhighlight |
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term vectors, or analysis.
|
org.apache.lucene.spatial.prefix |
Prefix Tree Strategy.
|
org.apache.lucene.spatial.prefix.tree |
This package is about SpatialPrefixTree and any supporting classes.
|
org.apache.lucene.spatial.util |
Various spatial utilities.
|
org.apache.lucene.util |
Some utility classes.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
org.apache.lucene.util.bkd |
Block KD-tree, implementing the generic spatial data structure described in
this paper.
|
org.apache.lucene.util.fst |
Finite state transducers
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TokenStreamToAutomaton.changeToken(BytesRef in)
Subclass and implement this if you need to change the
token (such as escaping certain bytes) before it's
turned into a graph.
|
BytesRef |
MockUTF16TermAttributeImpl.getBytesRef() |
BytesRef |
Token.getPayload()
Returns this Token's payload.
|
BytesRef |
Analyzer.normalize(java.lang.String fieldName,
java.lang.String text)
Normalize a string down to the representation that it would have in the
index.
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TokenStreamToAutomaton.changeToken(BytesRef in)
Subclass and implement this if you need to change the
token (such as escaping certain bytes) before it's
turned into a graph.
|
void |
Token.setPayload(BytesRef payload)
Sets this Token's payload.
|
void |
CollationTestBase.testFarsiRangeFilterCollating(Analyzer analyzer,
BytesRef firstBeg,
BytesRef firstEnd,
BytesRef secondBeg,
BytesRef secondEnd) |
void |
CollationTestBase.testFarsiRangeQueryCollating(Analyzer analyzer,
BytesRef firstBeg,
BytesRef firstEnd,
BytesRef secondBeg,
BytesRef secondEnd) |
void |
CollationTestBase.testFarsiTermRangeQuery(Analyzer analyzer,
BytesRef firstBeg,
BytesRef firstEnd,
BytesRef secondBeg,
BytesRef secondEnd) |
Constructor and Description |
---|
BinaryToken(BytesRef term) |
BinaryToken(BytesRef term,
int posInc,
int posLen) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
StemmerOverrideFilter.StemmerOverrideMap.get(char[] buffer,
int bufferLen,
FST.Arc<BytesRef> scratchArc,
FST.BytesReader fstReader)
Returns the value mapped to the given key or
null if the key is not in the FST dictionary. |
BytesRef |
ConcatenateGraphFilter.BytesRefBuilderTermAttributeImpl.getBytesRef() |
Modifier and Type | Method and Description |
---|---|
BytesRef |
StemmerOverrideFilter.StemmerOverrideMap.get(char[] buffer,
int bufferLen,
FST.Arc<BytesRef> scratchArc,
FST.BytesReader fstReader)
Returns the value mapped to the given key or
null if the key is not in the FST dictionary. |
Constructor and Description |
---|
StemmerOverrideMap(FST<BytesRef> fst,
boolean ignoreCase)
Creates a new
StemmerOverrideFilter.StemmerOverrideMap |
Modifier and Type | Method and Description |
---|---|
BytesRef |
AbstractEncoder.encode(char[] buffer) |
BytesRef |
PayloadEncoder.encode(char[] buffer) |
BytesRef |
FloatEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
IdentityEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
PayloadEncoder.encode(char[] buffer,
int offset,
int length)
Convert a char array to a
BytesRef |
BytesRef |
IntegerEncoder.encode(char[] buffer,
int offset,
int length) |
Modifier and Type | Field and Description |
---|---|
FST<BytesRef> |
SynonymMap.fst
map<input word, list<ord>>
|
Constructor and Description |
---|
SynonymMap(FST<BytesRef> fst,
BytesRefHash words,
int maxHorizontalContext) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CharTermAttributeImpl.getBytesRef() |
BytesRef |
BytesTermAttributeImpl.getBytesRef() |
BytesRef |
TermToBytesRefAttribute.getBytesRef()
Retrieve this attribute's BytesRef.
|
BytesRef |
PayloadAttributeImpl.getPayload() |
BytesRef |
PayloadAttribute.getPayload()
Returns this Token's payload.
|
Modifier and Type | Method and Description |
---|---|
void |
BytesTermAttributeImpl.setBytesRef(BytesRef bytes) |
void |
BytesTermAttribute.setBytesRef(BytesRef bytes)
Sets the
BytesRef of the term |
void |
PayloadAttributeImpl.setPayload(BytesRef payload) |
void |
PayloadAttribute.setPayload(BytesRef payload)
Sets this Token's payload.
|
Constructor and Description |
---|
PayloadAttributeImpl(BytesRef payload)
Initialize this attribute with the given payload.
|
Modifier and Type | Method and Description |
---|---|
ClassificationResult<BytesRef> |
SimpleNaiveBayesClassifier.assignClass(java.lang.String inputDocument) |
ClassificationResult<BytesRef> |
KNearestNeighborClassifier.assignClass(java.lang.String text) |
ClassificationResult<BytesRef> |
BM25NBClassifier.assignClass(java.lang.String inputDocument) |
ClassificationResult<BytesRef> |
KNearestFuzzyClassifier.assignClass(java.lang.String text) |
protected java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.assignClassNormalizedList(java.lang.String inputDocument)
Calculate probabilities for all classes for a given input text
|
protected java.util.List<ClassificationResult<BytesRef>> |
CachingNaiveBayesClassifier.assignClassNormalizedList(java.lang.String inputDocument) |
protected java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.buildListFromTopDocs(TopDocs topDocs)
build a list of classification results from search results
|
protected ClassificationResult<BytesRef> |
KNearestNeighborClassifier.classifyFromTopDocs(TopDocs knnResults)
TODO
|
java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.getClasses(java.lang.String text) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.getClasses(java.lang.String text) |
java.util.List<ClassificationResult<BytesRef>> |
BM25NBClassifier.getClasses(java.lang.String text) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestFuzzyClassifier.getClasses(java.lang.String text) |
java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.getClasses(java.lang.String text,
int max) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborClassifier.getClasses(java.lang.String text,
int max) |
java.util.List<ClassificationResult<BytesRef>> |
BM25NBClassifier.getClasses(java.lang.String text,
int max) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestFuzzyClassifier.getClasses(java.lang.String text,
int max) |
protected java.util.ArrayList<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.normClassificationResults(java.util.List<ClassificationResult<BytesRef>> assignedClasses)
Normalize the classification results based on the max score available
|
Modifier and Type | Method and Description |
---|---|
protected java.util.ArrayList<ClassificationResult<BytesRef>> |
SimpleNaiveBayesClassifier.normClassificationResults(java.util.List<ClassificationResult<BytesRef>> assignedClasses)
Normalize the classification results based on the max score available
|
Modifier and Type | Method and Description |
---|---|
ClassificationResult<BytesRef> |
KNearestNeighborDocumentClassifier.assignClass(Document document) |
ClassificationResult<BytesRef> |
SimpleNaiveBayesDocumentClassifier.assignClass(Document document) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document) |
java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document,
int max) |
java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document,
int max) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
StoredFieldsWriter.MergeVisitor.binaryValue() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Iterable<BytesRef> |
LegacyDocValuesIterables.binaryIterable(FieldInfo field,
DocValuesProducer valuesProducer,
int maxDoc)
Deprecated.
Consume
BinaryDocValues instead. |
static java.lang.Iterable<BytesRef> |
MissingOrdRemapper.insertEmptyValue(java.lang.Iterable<BytesRef> iterable)
insert an empty byte[] to the front of this iterable
|
static java.lang.Iterable<BytesRef> |
LegacyDocValuesIterables.valuesIterable(SortedDocValues values)
Deprecated.
Consume
SortedDocValues instead. |
static java.lang.Iterable<BytesRef> |
LegacyDocValuesIterables.valuesIterable(SortedSetDocValues values)
Deprecated.
Consume
SortedSetDocValues instead. |
Modifier and Type | Method and Description |
---|---|
abstract void |
PushPostingsWriterBase.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset)
Add a new position and payload, and start/end offset.
|
abstract void |
TermVectorsWriter.addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload)
Adds a term position and offsets
|
abstract void |
MutablePointValues.getValue(int i,
BytesRef packedValue)
Set
packedValue with a reference to the packed bytes of the i-th value. |
abstract void |
TermVectorsWriter.startTerm(BytesRef term,
int freq)
Adds a term and its term frequency
freq . |
abstract BlockTermState |
PostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen)
Write all postings for one term; use the provided
TermsEnum to pull a PostingsEnum . |
BlockTermState |
PushPostingsWriterBase.writeTerm(BytesRef term,
TermsEnum termsEnum,
FixedBitSet docsSeen) |
Modifier and Type | Method and Description |
---|---|
static java.lang.Iterable<BytesRef> |
MissingOrdRemapper.insertEmptyValue(java.lang.Iterable<BytesRef> iterable)
insert an empty byte[] to the front of this iterable
|
Modifier and Type | Method and Description |
---|---|
abstract BytesRef |
TermsIndexReaderBase.FieldIndexEnum.term() |
Modifier and Type | Method and Description |
---|---|
abstract void |
TermsIndexWriterBase.FieldWriter.add(BytesRef text,
TermStats stats,
long termsFilePointer) |
abstract boolean |
TermsIndexWriterBase.FieldWriter.checkIndexTerm(BytesRef text,
TermStats stats) |
protected int |
VariableGapTermsIndexWriter.indexedTermPrefixLength(BytesRef priorTerm,
BytesRef indexedTerm)
NOTE: if your codec does not sort in unicode code
point order, you must override this method, to simply
return indexedTerm.length.
|
protected int |
FixedGapTermsIndexWriter.indexedTermPrefixLength(BytesRef priorTerm,
BytesRef indexedTerm)
NOTE: if your codec does not sort in unicode code
point order, you must override this method, to simply
return indexedTerm.length.
|
abstract boolean |
VariableGapTermsIndexWriter.IndexTermSelector.isIndexTerm(BytesRef term,
TermStats stats)
Called sequentially on every term being written,
returning true if this term should be indexed
|
boolean |
VariableGapTermsIndexWriter.EveryNTermSelector.isIndexTerm(BytesRef term,
TermStats stats) |
boolean |
VariableGapTermsIndexWriter.EveryNOrDocFreqTermSelector.isIndexTerm(BytesRef term,
TermStats stats) |
abstract long |
TermsIndexReaderBase.FieldIndexEnum.seek(BytesRef term)
Seeks to "largest" indexed term that's <=
term; returns file pointer index (into the main
terms index file) for that term
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
FieldReader.getMax() |
BytesRef |
FieldReader.getMin() |
Modifier and Type | Method and Description |
---|---|
TermsEnum |
FieldReader.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
OrdsSegmentTermsEnum.next() |
BytesRef |
OrdsSegmentTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
TermsEnum.SeekStatus |
OrdsSegmentTermsEnum.seekCeil(BytesRef target) |
boolean |
OrdsSegmentTermsEnum.seekExact(BytesRef target) |
void |
OrdsSegmentTermsEnum.seekExact(BytesRef target,
TermState otherState) |
Modifier and Type | Method and Description |
---|---|
void |
FuzzySet.addValue(BytesRef value)
Records a value in the set.
|
FuzzySet.ContainsResult |
FuzzySet.contains(BytesRef value)
The main method required for a Bloom filter which, given a value determines set membership.
|
abstract int |
HashFunction.hash(BytesRef bytes)
Hashes the contents of the referenced bytes
|
int |
MurmurHash2.hash(BytesRef br) |
Modifier and Type | Method and Description |
---|---|
void |
CompressingTermVectorsWriter.addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload) |
abstract void |
Decompressor.decompress(DataInput in,
int originalLength,
int offset,
int length,
BytesRef bytes)
Decompress bytes that were stored between offsets
offset and
offset+length in the original stream from the compressed
stream in to bytes . |
void |
CompressingTermVectorsWriter.startTerm(BytesRef term,
int freq) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
IDVersionSegmentTermsEnum.next() |
BytesRef |
IDVersionSegmentTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
static long |
IDVersionPostingsFormat.bytesToLong(BytesRef bytes) |
static void |
IDVersionPostingsFormat.longToBytes(long v,
BytesRef bytes) |
TermsEnum.SeekStatus |
IDVersionSegmentTermsEnum.seekCeil(BytesRef target) |
boolean |
IDVersionSegmentTermsEnum.seekExact(BytesRef target) |
boolean |
IDVersionSegmentTermsEnum.seekExact(BytesRef target,
long minIDVersion)
Optimized version of
IDVersionSegmentTermsEnum.seekExact(BytesRef) that can
sometimes fail-fast if the version indexed with the requested ID
is less than the specified minIDVersion. |
void |
IDVersionSegmentTermsEnum.seekExact(BytesRef target,
TermState otherState) |
Modifier and Type | Method and Description |
---|---|
void |
Lucene50PostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleTextTermVectorsWriter.addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload) |
void |
SimpleTextTermVectorsWriter.startTerm(BytesRef term,
int freq) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
ICUCollatedTermAttributeImpl.getBytesRef() |
BytesRef |
CollatedTermAttributeImpl.getBytesRef() |
Modifier and Type | Method and Description |
---|---|
BytesRef |
LazyDocument.LazyField.binaryValue() |
BytesRef |
Field.binaryValue() |
BytesRef |
Document.getBinaryValue(java.lang.String name)
Returns an array of bytes for the first (or only) field that has the name
specified as the method parameter.
|
BytesRef[] |
Document.getBinaryValues(java.lang.String name)
Returns an array of byte arrays for of the fields that have the name specified
as the method parameter.
|
Modifier and Type | Method and Description |
---|---|
static Query |
SortedDocValuesField.newSlowExactQuery(java.lang.String field,
BytesRef value)
Create a query for matching an exact
BytesRef value. |
static Query |
SortedSetDocValuesField.newSlowExactQuery(java.lang.String field,
BytesRef value)
Create a query for matching an exact
BytesRef value. |
static Query |
SortedDocValuesField.newSlowRangeQuery(java.lang.String field,
BytesRef lowerValue,
BytesRef upperValue,
boolean lowerInclusive,
boolean upperInclusive)
Create a range query that matches all documents whose value is between
lowerValue and upperValue included. |
static Query |
SortedSetDocValuesField.newSlowRangeQuery(java.lang.String field,
BytesRef lowerValue,
BytesRef upperValue,
boolean lowerInclusive,
boolean upperInclusive)
Create a range query that matches all documents whose value is between
lowerValue and upperValue . |
void |
InetAddressPoint.setBytesValue(BytesRef bytes) |
void |
HalfFloatPoint.setBytesValue(BytesRef bytes) |
void |
BigIntegerPoint.setBytesValue(BytesRef bytes) |
void |
IntPoint.setBytesValue(BytesRef bytes) |
void |
LongPoint.setBytesValue(BytesRef bytes) |
void |
Field.setBytesValue(BytesRef value)
Expert: change the value of this field.
|
void |
DoublePoint.setBytesValue(BytesRef bytes) |
void |
FloatPoint.setBytesValue(BytesRef bytes) |
Constructor and Description |
---|
BinaryDocValuesField(java.lang.String name,
BytesRef value)
Create a new binary DocValues field.
|
Field(java.lang.String name,
BytesRef bytes,
IndexableFieldType type)
Create field with binary value.
|
SortedDocValuesField(java.lang.String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
SortedSetDocValuesField(java.lang.String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
StoredField(java.lang.String name,
BytesRef value)
Create a stored-only field with the given binary value.
|
StoredField(java.lang.String name,
BytesRef bytes,
FieldType type)
Expert: allows you to customize the
FieldType . |
StringField(java.lang.String name,
BytesRef value,
Field.Store stored)
Creates a new binary StringField, indexing the provided binary (BytesRef)
value as a single token.
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
FacetsConfig.dedupAndEncode(IntsRef ordinals)
Encodes ordinals into a BytesRef; expert: subclass can
override this to change encoding.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
AssociationFacetField.assoc
Associated value.
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
OrdinalMappingLeafReader.encode(IntsRef ordinals)
Expert: encodes category ordinals into a BytesRef.
|
static BytesRef |
FloatAssociationFacetField.floatToBytesRef(float v)
Encodes a
float as a 4-byte BytesRef . |
static BytesRef |
IntAssociationFacetField.intToBytesRef(int v)
Encodes an
int as a 4-byte BytesRef ,
big-endian. |
Modifier and Type | Method and Description |
---|---|
static float |
FloatAssociationFacetField.bytesRefToFloat(BytesRef b)
Decodes a previously encoded
float . |
static int |
IntAssociationFacetField.bytesRefToInt(BytesRef b)
Decodes a previously encoded
int . |
protected void |
DocValuesOrdinalsReader.decode(BytesRef buf,
IntsRef ordinals)
Subclass and override if you change the encoding.
|
Constructor and Description |
---|
AssociationFacetField(BytesRef assoc,
java.lang.String dim,
java.lang.String... path)
Creates this from
dim and path and an
association |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
FilteredTermsEnum.actualTerm
Which term the enum is currently positioned to.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
AssertingLeafReader.AssertingBinaryDocValues.binaryValue() |
BytesRef |
AssertingLeafReader.AssertingSortedDocValues.binaryValue() |
BytesRef |
LegacyBinaryDocValuesWrapper.binaryValue()
Deprecated.
|
BytesRef |
IndexableField.binaryValue()
Non-null if this field has a binary value
|
abstract BytesRef |
BinaryDocValues.binaryValue()
Returns the binary value for the current document ID.
|
BytesRef |
FilterBinaryDocValues.binaryValue() |
BytesRef |
SortedDocValues.binaryValue() |
BytesRef |
Term.bytes()
Returns the bytes of this term, these should not be modified.
|
abstract BytesRef |
LegacyBinaryDocValues.get(int docID)
Deprecated.
Lookup the value for document.
|
BytesRef |
LegacySortedDocValues.get(int docID)
Deprecated.
|
BytesRef |
AssertingLeafReader.AssertingTerms.getMax() |
BytesRef |
Terms.getMax()
Returns the largest term (in lexicographic order) in the field.
|
BytesRef |
MultiTerms.getMax() |
BytesRef |
AssertingLeafReader.AssertingTerms.getMin() |
BytesRef |
Terms.getMin()
Returns the smallest term (in lexicographic order) in the field.
|
BytesRef |
MultiTerms.getMin() |
BytesRef |
AssertingLeafReader.AssertingPostingsEnum.getPayload() |
BytesRef |
RandomPostingsTester.SeedPostings.getPayload() |
abstract BytesRef |
PostingsEnum.getPayload()
Returns the payload at this position, or null if no
payload was indexed.
|
BytesRef |
FilterLeafReader.FilterPostingsEnum.getPayload() |
BytesRef |
MultiPostingsEnum.getPayload() |
BytesRef[] |
BaseTermVectorsFormatTestCase.RandomTokenStream.getPayloads() |
BytesRef[] |
BaseTermVectorsFormatTestCase.RandomTokenStream.getTermBytes() |
BytesRef |
AssertingLeafReader.AssertingSortedDocValues.lookupOrd(int ord) |
BytesRef |
LegacySortedDocValuesWrapper.lookupOrd(int ord)
Deprecated.
|
abstract BytesRef |
LegacySortedDocValues.lookupOrd(int ord)
Deprecated.
Retrieves the value for the specified ordinal.
|
abstract BytesRef |
SortedDocValues.lookupOrd(int ord)
Retrieves the value for the specified ordinal.
|
BytesRef |
MultiDocValues.MultiSortedDocValues.lookupOrd(int ord) |
BytesRef |
AssertingLeafReader.AssertingSortedSetDocValues.lookupOrd(long ord) |
abstract BytesRef |
SortedSetDocValues.lookupOrd(long ord)
Retrieves the value for the specified ordinal.
|
abstract BytesRef |
LegacySortedSetDocValues.lookupOrd(long ord)
Deprecated.
Retrieves the value for the specified ordinal.
|
BytesRef |
MultiDocValues.MultiSortedSetDocValues.lookupOrd(long ord) |
BytesRef |
LegacySortedSetDocValuesWrapper.lookupOrd(long ord)
Deprecated.
|
BytesRef |
PrefixCodedTerms.TermIterator.next() |
BytesRef |
ExitableDirectoryReader.ExitableTermsEnum.next() |
BytesRef |
FilterLeafReader.FilterTermsEnum.next() |
BytesRef |
FilteredTermsEnum.next() |
BytesRef |
MultiTermsEnum.next() |
protected BytesRef |
AutomatonTermsEnum.nextSeekTerm(BytesRef term) |
protected BytesRef |
FilteredTermsEnum.nextSeekTerm(BytesRef currentTerm)
On the first call to
FilteredTermsEnum.next() or if FilteredTermsEnum.accept(org.apache.lucene.util.BytesRef) returns
FilteredTermsEnum.AcceptStatus.YES_AND_SEEK or FilteredTermsEnum.AcceptStatus.NO_AND_SEEK ,
this method will be called to eventually seek the underlying TermsEnum
to a new position. |
protected BytesRef |
BaseTermVectorsFormatTestCase.RandomTokenStream.randomPayload() |
BytesRef |
FilterLeafReader.FilterTermsEnum.term() |
BytesRef |
FilteredTermsEnum.term() |
abstract BytesRef |
TermsEnum.term()
Returns current term.
|
BytesRef |
MultiTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
AutomatonTermsEnum.accept(BytesRef term)
Returns true if the term matches the automaton.
|
protected FilteredTermsEnum.AcceptStatus |
SingleTermsEnum.accept(BytesRef term) |
protected abstract FilteredTermsEnum.AcceptStatus |
FilteredTermsEnum.accept(BytesRef term)
Return if term is accepted, not accepted or the iteration should ended
(and possibly seek).
|
void |
PrefixCodedTerms.Builder.add(java.lang.String field,
BytesRef bytes)
add a term.
|
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified field and
term. |
static PostingsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified field and
term, with control over whether freqs are required. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
java.lang.String field,
BytesRef term)
Returns
PostingsEnum for the specified
field and term. |
static PostingsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
java.lang.String field,
BytesRef term,
int flags)
Returns
PostingsEnum for the specified
field and term, with control over whether offsets and payloads are
required. |
TermsEnum |
AssertingLeafReader.AssertingTerms.intersect(CompiledAutomaton automaton,
BytesRef bytes) |
TermsEnum |
Terms.intersect(CompiledAutomaton compiled,
BytesRef startTerm)
Returns a TermsEnum that iterates over all terms and
documents that are accepted by the provided
CompiledAutomaton . |
TermsEnum |
ExitableDirectoryReader.ExitableTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
TermsEnum |
MultiTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
int |
PerThreadPKLookup.lookup(BytesRef id)
Returns docID if found, else -1.
|
int |
AssertingLeafReader.AssertingSortedDocValues.lookupTerm(BytesRef key) |
long |
AssertingLeafReader.AssertingSortedSetDocValues.lookupTerm(BytesRef key) |
long |
SortedSetDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
int |
LegacySortedDocValues.lookupTerm(BytesRef key)
Deprecated.
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
long |
LegacySortedSetDocValues.lookupTerm(BytesRef key)
Deprecated.
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
int |
SortedDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
protected BytesRef |
AutomatonTermsEnum.nextSeekTerm(BytesRef term) |
protected BytesRef |
FilteredTermsEnum.nextSeekTerm(BytesRef currentTerm)
On the first call to
FilteredTermsEnum.next() or if FilteredTermsEnum.accept(org.apache.lucene.util.BytesRef) returns
FilteredTermsEnum.AcceptStatus.YES_AND_SEEK or FilteredTermsEnum.AcceptStatus.NO_AND_SEEK ,
this method will be called to eventually seek the underlying TermsEnum
to a new position. |
TermsEnum.SeekStatus |
FilterLeafReader.FilterTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
FilteredTermsEnum.seekCeil(BytesRef term)
This enum does not support seeking!
|
abstract TermsEnum.SeekStatus |
TermsEnum.seekCeil(BytesRef text)
Seeks to the specified term, if it exists, or to the
next (ceiling) term.
|
TermsEnum.SeekStatus |
MultiTermsEnum.seekCeil(BytesRef term) |
boolean |
FilteredTermsEnum.seekExact(BytesRef term)
This enum does not support seeking!
|
boolean |
TermsEnum.seekExact(BytesRef text)
Attempts to seek to the exact term, returning
true if the term is found.
|
boolean |
MultiTermsEnum.seekExact(BytesRef term) |
void |
FilteredTermsEnum.seekExact(BytesRef term,
TermState state)
This enum does not support seeking!
|
void |
TermsEnum.seekExact(BytesRef term,
TermState state)
Expert: Seeks a specific position by
TermState previously obtained
from TermsEnum.termState() . |
protected void |
FilteredTermsEnum.setInitialSeekTerm(BytesRef term)
Use this method to set the initial
BytesRef
to seek before iterating. |
static java.lang.String |
Term.toString(BytesRef termText)
Returns human-readable form of the term text.
|
long |
RandomIndexWriter.updateBinaryDocValue(Term term,
java.lang.String field,
BytesRef value) |
long |
IndexWriter.updateBinaryDocValue(Term term,
java.lang.String field,
BytesRef value)
|
Constructor and Description |
---|
FieldAndTerm(java.lang.String field,
BytesRef term,
long ord) |
RandomDocument(int fieldCount,
int maxTermCount,
BaseTermVectorsFormatTestCase.Options options,
java.lang.String[] fieldNames,
java.lang.String[] sampleTerms,
BytesRef[] sampleTermBytes) |
RandomTokenStream(int len,
java.lang.String[] sampleTerms,
BytesRef[] sampleTermBytes) |
SingleTermsEnum(TermsEnum tenum,
BytesRef termText)
Creates a new
SingleTermsEnum . |
Term(java.lang.String fld,
BytesRef bytes)
Constructs a Term with the given field and bytes.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
TermStats.termtext |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
LiteralValueSource.bytesRef |
protected BytesRef |
TotalTermFreqValueSource.indexedBytes |
protected BytesRef |
DocFreqValueSource.indexedBytes |
Constructor and Description |
---|
DocFreqValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
IDFValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
TermFreqValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
TFValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
TotalTermFreqValueSource(java.lang.String field,
java.lang.String val,
java.lang.String indexedField,
BytesRef indexedBytes) |
Modifier and Type | Field and Description |
---|---|
protected java.util.List<BytesRef> |
SpanPayloadCheckQuery.payloadToMatch |
Modifier and Type | Method and Description |
---|---|
float |
PayloadDecoder.computePayloadFactor(BytesRef payload)
Compute a float value for the given payload
|
default float |
PayloadDecoder.computePayloadFactor(int docID,
int startPosition,
int endPosition,
BytesRef payload)
Deprecated.
Use
PayloadDecoder.computePayloadFactor(BytesRef) - doc and position can be taken
into account in PayloadFunction.currentScore(int, String, int, int, int, float, float) |
Constructor and Description |
---|
SpanPayloadCheckQuery(SpanQuery match,
java.util.List<BytesRef> payloadToMatch) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
RegexpQueryNode.textToBytesRef() |
Modifier and Type | Method and Description |
---|---|
BytesRef |
MaxNonCompetitiveBoostAttribute.getCompetitiveTerm()
This is the term or
null of the term that triggered the boost change. |
BytesRef |
MaxNonCompetitiveBoostAttributeImpl.getCompetitiveTerm() |
BytesRef |
TermRangeQuery.getLowerTerm()
Returns the lower value of this range query
|
BytesRef |
TermRangeQuery.getUpperTerm()
Returns the upper value of this range query
|
BytesRef |
FuzzyTermsEnum.next() |
abstract BytesRef |
PointInSetQuery.Stream.next() |
BytesRef |
TermStatistics.term()
returns the term text
|
BytesRef |
FuzzyTermsEnum.term() |
BytesRef |
FieldComparator.TermOrdValComparator.value(int slot) |
BytesRef |
FieldComparator.TermValComparator.value(int slot) |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<BytesRef> |
SortField.getBytesComparator() |
Modifier and Type | Method and Description |
---|---|
void |
TermAutomatonQuery.addTransition(int source,
int dest,
BytesRef term)
Adds a transition to the automaton.
|
int |
FieldComparator.TermOrdValComparator.compareValues(BytesRef val1,
BytesRef val2) |
int |
FieldComparator.TermValComparator.compareValues(BytesRef val1,
BytesRef val2) |
TermsEnum.SeekStatus |
FuzzyTermsEnum.seekCeil(BytesRef text) |
boolean |
FuzzyTermsEnum.seekExact(BytesRef text) |
void |
FuzzyTermsEnum.seekExact(BytesRef term,
TermState state) |
void |
MaxNonCompetitiveBoostAttribute.setCompetitiveTerm(BytesRef competitiveTerm)
This is the term or
null of the term that triggered the boost change. |
void |
MaxNonCompetitiveBoostAttributeImpl.setCompetitiveTerm(BytesRef competitiveTerm) |
void |
FieldComparator.TermOrdValComparator.setTopValue(BytesRef value) |
void |
FieldComparator.TermValComparator.setTopValue(BytesRef value) |
static Automaton |
PrefixQuery.toAutomaton(BytesRef prefix)
Build an automaton accepting all terms with the specified prefix.
|
static Automaton |
TermRangeQuery.toAutomaton(BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper) |
Modifier and Type | Method and Description |
---|---|
void |
SortField.setBytesComparator(java.util.Comparator<BytesRef> b) |
Constructor and Description |
---|
DocValuesTermsQuery(java.lang.String field,
BytesRef... terms) |
PhraseQuery(int slop,
java.lang.String field,
BytesRef... terms)
Create a phrase query which will match documents that contain the given
list of terms at consecutive positions in
field , and at a
maximum edit distance of slop . |
PhraseQuery(java.lang.String field,
BytesRef... terms)
Create a phrase query which will match documents that contain the given
list of terms at consecutive positions in
field . |
TermInSetQuery(java.lang.String field,
BytesRef... terms)
Creates a new
TermInSetQuery from the given array of terms. |
TermRangeQuery(java.lang.String field,
BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper)
Constructs a query selecting all terms greater/equal than
lowerTerm
but less/equal than upperTerm . |
TermStatistics(BytesRef term,
long docFreq,
long totalTermFreq) |
Constructor and Description |
---|
DocValuesTermsQuery(java.lang.String field,
java.util.Collection<BytesRef> terms) |
TermInSetQuery(java.lang.String field,
java.util.Collection<BytesRef> terms)
Creates a new
TermInSetQuery from the given collection of terms. |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
GroupFacetCollector.facetPrefix |
protected BytesRef |
GroupFacetCollector.SegmentResult.mergeTerm |
Modifier and Type | Method and Description |
---|---|
BytesRef |
TermGroupSelector.copyValue() |
BytesRef |
TermGroupSelector.currentValue() |
BytesRef |
GroupFacetCollector.FacetEntry.getValue() |
Modifier and Type | Method and Description |
---|---|
void |
GroupFacetCollector.GroupedFacetResult.addFacetCount(BytesRef facetValue,
int count) |
static TermGroupFacetCollector |
TermGroupFacetCollector.createTermGroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
boolean facetFieldMultivalued,
BytesRef facetPrefix,
int initialSize)
Factory method for creating the right implementation based on the fact whether the facet field contains
multiple tokens per documents.
|
Modifier and Type | Method and Description |
---|---|
void |
TermGroupSelector.setGroups(java.util.Collection<SearchGroup<BytesRef>> searchGroups) |
Constructor and Description |
---|
FacetEntry(BytesRef value,
int count) |
GroupFacetCollector(java.lang.String groupField,
java.lang.String facetField,
BytesRef facetPrefix) |
Modifier and Type | Method and Description |
---|---|
static IntervalsSource |
Intervals.term(BytesRef term)
Return an
IntervalsSource exposing intervals for a term |
Modifier and Type | Method and Description |
---|---|
abstract float |
Similarity.SimScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload)
Deprecated.
|
protected float |
BM25Similarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
float |
ClassicSimilarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
abstract float |
TFIDFSimilarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
DirectSpellChecker.ScoreTerm.term
The actual spellcheck correction.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
Lookup.LookupResult.payload
the key's payload (null if not present)
|
Modifier and Type | Field and Description |
---|---|
java.util.Set<BytesRef> |
Lookup.LookupResult.contexts
the key's contexts (null if not present)
|
protected java.util.List<java.util.Set<BytesRef>> |
BufferedInputIterator.contextSets
buffered context set entries
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
SortedInputIterator.decodePayload(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the payload at the current position
|
BytesRef |
BufferedInputIterator.next() |
BytesRef |
DocumentDictionary.DocumentInputIterator.next() |
BytesRef |
SortedInputIterator.next() |
BytesRef |
InputIterator.InputIteratorWrapper.next() |
BytesRef |
UnsortedInputIterator.next() |
BytesRef |
BufferedInputIterator.payload() |
BytesRef |
DocumentDictionary.DocumentInputIterator.payload() |
BytesRef |
SortedInputIterator.payload() |
BytesRef |
InputIterator.payload()
An arbitrary byte[] to record per suggestion.
|
BytesRef |
InputIterator.InputIteratorWrapper.payload() |
BytesRef |
UnsortedInputIterator.payload() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<BytesRef> |
BufferedInputIterator.contexts() |
java.util.Set<BytesRef> |
DocumentDictionary.DocumentInputIterator.contexts() |
java.util.Set<BytesRef> |
SortedInputIterator.contexts() |
java.util.Set<BytesRef> |
InputIterator.contexts()
A term's contexts context can be used to filter suggestions.
|
java.util.Set<BytesRef> |
InputIterator.InputIteratorWrapper.contexts() |
java.util.Set<BytesRef> |
UnsortedInputIterator.contexts() |
protected java.util.Set<BytesRef> |
SortedInputIterator.decodeContexts(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the contexts at the current position
|
java.util.Comparator<BytesRef> |
InMemorySorter.getComparator() |
Modifier and Type | Method and Description |
---|---|
void |
InMemorySorter.add(BytesRef utf8) |
protected long |
SortedInputIterator.decode(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the weight at the current position
|
protected java.util.Set<BytesRef> |
SortedInputIterator.decodeContexts(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the contexts at the current position
|
protected BytesRef |
SortedInputIterator.decodePayload(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the payload at the current position
|
protected void |
SortedInputIterator.encode(OfflineSorter.ByteSequencesWriter writer,
ByteArrayDataOutput output,
byte[] buffer,
BytesRef spare,
BytesRef payload,
java.util.Set<BytesRef> contexts,
long weight)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer
|
Modifier and Type | Method and Description |
---|---|
protected void |
SortedInputIterator.encode(OfflineSorter.ByteSequencesWriter writer,
ByteArrayDataOutput output,
byte[] buffer,
BytesRef spare,
BytesRef payload,
java.util.Set<BytesRef> contexts,
long weight)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer
|
abstract java.util.List<Lookup.LookupResult> |
Lookup.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num)
Look up a key and return possible completion for this key.
|
Constructor and Description |
---|
LookupResult(java.lang.CharSequence key,
long value,
BytesRef payload)
Create a new result from a key+weight+payload triple.
|
LookupResult(java.lang.CharSequence key,
long value,
BytesRef payload,
java.util.Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.
|
LookupResult(java.lang.CharSequence key,
java.lang.Object highlightKey,
long value,
BytesRef payload)
Create a new result from a key+highlightKey+weight+payload triple.
|
LookupResult(java.lang.CharSequence key,
java.lang.Object highlightKey,
long value,
BytesRef payload,
java.util.Set<BytesRef> contexts)
Create a new result from a key+highlightKey+weight+payload+contexts triple.
|
Constructor and Description |
---|
InMemorySorter(java.util.Comparator<BytesRef> comparator)
Creates an InMemorySorter, sorting entries by the
provided comparator.
|
LookupResult(java.lang.CharSequence key,
long value,
BytesRef payload,
java.util.Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.
|
LookupResult(java.lang.CharSequence key,
long value,
java.util.Set<BytesRef> contexts)
Create a new result from a key+weight+contexts triple.
|
LookupResult(java.lang.CharSequence key,
java.lang.Object highlightKey,
long value,
BytesRef payload,
java.util.Set<BytesRef> contexts)
Create a new result from a key+highlightKey+weight+payload+contexts triple.
|
SortedInputIterator(Directory tempDir,
java.lang.String tempFileNamePrefix,
InputIterator source,
java.util.Comparator<BytesRef> comparator)
Creates a new sorted wrapper, sorting by BytesRef
(ascending) then cost (ascending).
|
Modifier and Type | Method and Description |
---|---|
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> |
AnalyzingSuggester.getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.
|
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> |
FuzzySuggester.getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst) |
Modifier and Type | Method and Description |
---|---|
void |
AnalyzingInfixSuggester.add(BytesRef text,
java.util.Set<BytesRef> contexts,
long weight,
BytesRef payload)
Adds a new suggestion.
|
void |
AnalyzingInfixSuggester.addContextToQuery(BooleanQuery.Builder query,
BytesRef context,
BooleanClause.Occur clause)
This method is handy as we do not need access to internal fields such as CONTEXTS_FIELD_NAME in order to build queries
However, here may not be its best location.
|
void |
AnalyzingInfixSuggester.update(BytesRef text,
java.util.Set<BytesRef> contexts,
long weight,
BytesRef payload)
Updates a previous suggestion, matching the exact same
text as before.
|
Modifier and Type | Method and Description |
---|---|
void |
AnalyzingInfixSuggester.add(BytesRef text,
java.util.Set<BytesRef> contexts,
long weight,
BytesRef payload)
Adds a new suggestion.
|
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> |
AnalyzingSuggester.getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.
|
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> |
AnalyzingSuggester.getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.
|
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> |
FuzzySuggester.getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst) |
protected java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> |
FuzzySuggester.getFullPrefixPaths(java.util.List<FSTUtil.Path<PairOutputs.Pair<java.lang.Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<java.lang.Long,BytesRef>> fst) |
java.util.List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Map<BytesRef,BooleanClause.Occur> contextInfo,
int num,
boolean allTermsRequired,
boolean doHighlight)
Retrieve suggestions, specifying whether all terms
must match (
allTermsRequired ) and whether the hits
should be highlighted (doHighlight ). |
java.util.List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Map<BytesRef,BooleanClause.Occur> contextInfo,
int num,
boolean allTermsRequired,
boolean doHighlight) |
java.util.List<Lookup.LookupResult> |
FreeTextSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
java.util.List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
java.util.List<Lookup.LookupResult> |
AnalyzingSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
java.util.List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
java.util.List<Lookup.LookupResult> |
FreeTextSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
int num)
Retrieve suggestions.
|
java.util.List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
int num,
boolean allTermsRequired,
boolean doHighlight)
Lookup, with context but without booleans.
|
java.util.List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
int num,
boolean allTermsRequired,
boolean doHighlight) |
void |
AnalyzingInfixSuggester.update(BytesRef text,
java.util.Set<BytesRef> contexts,
long weight,
BytesRef payload)
Updates a previous suggestion, matching the exact same
text as before.
|
Modifier and Type | Method and Description |
---|---|
void |
CompletionTokenStream.setPayload(BytesRef payload)
Sets a payload available throughout successive token stream enumeration
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
FSTCompletion.Completion.utf8
UTF-8 bytes of the suggestion
|
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<BytesRef> |
ExternalRefSorter.getComparator() |
java.util.Comparator<BytesRef> |
BytesRefSorter.getComparator()
Comparator used to determine the sort order of entries.
|
Modifier and Type | Method and Description |
---|---|
void |
ExternalRefSorter.add(BytesRef utf8) |
void |
BytesRefSorter.add(BytesRef utf8)
Adds a single suggestion entry (possibly compound with its bucket).
|
void |
FSTCompletionBuilder.add(BytesRef utf8,
int bucket)
Appends a single suggestion and its weight to the internal buffers.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Lookup.LookupResult> |
FSTCompletionLookup.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean higherWeightsFirst,
int num) |
java.util.List<Lookup.LookupResult> |
WFSTCompletionLookup.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Lookup.LookupResult> |
JaspellLookup.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Lookup.LookupResult> |
TSTLookup.lookup(java.lang.CharSequence key,
java.util.Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
Modifier and Type | Method and Description |
---|---|
protected static BytesRef[] |
UnifiedHighlighter.filterExtractedTerms(java.util.function.Predicate<java.lang.String> fieldMatcher,
java.util.Set<Term> queryTerms) |
BytesRef[] |
PhraseHelper.getAllPositionInsensitiveTerms()
Returns the terms that are position-insensitive (sorted).
|
BytesRef[] |
Passage.getMatchTerms()
BytesRef (term text) of the matches, corresponding with
Passage.getMatchStarts() . |
abstract BytesRef |
OffsetsEnum.getTerm()
The term at this position.
|
BytesRef |
OffsetsEnum.OfPostings.getTerm() |
BytesRef |
OffsetsEnum.OfMatchesIteratorWithSubs.getTerm() |
BytesRef |
OffsetsEnum.OfMatchesIterator.getTerm() |
BytesRef |
OffsetsEnum.MultiOffsetsEnum.getTerm() |
BytesRef[] |
UHComponents.getTerms() |
Modifier and Type | Method and Description |
---|---|
void |
Passage.addMatch(int startOffset,
int endOffset,
BytesRef term,
int termFreqInDoc) |
protected void |
FieldOffsetStrategy.createOffsetsEnumsForTerms(BytesRef[] sourceTerms,
Terms termsIndex,
int doc,
java.util.List<OffsetsEnum> results) |
protected UnifiedHighlighter.OffsetSource |
UnifiedHighlighter.getOptimizedOffsetSource(java.lang.String field,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata) |
Constructor and Description |
---|
OfPostings(BytesRef term,
int freq,
PostingsEnum postingsEnum) |
OfPostings(BytesRef term,
PostingsEnum postingsEnum) |
UHComponents(java.lang.String field,
java.util.function.Predicate<java.lang.String> fieldMatcher,
Query query,
BytesRef[] terms,
PhraseHelper phraseHelper,
CharacterRunAutomaton[] automata,
java.util.Set<UnifiedHighlighter.HighlightFlag> highlightFlags) |
Constructor and Description |
---|
OfMatchesIterator(MatchesIterator matchesIterator,
java.util.function.Supplier<BytesRef> termSupplier) |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
CellToBytesRefIterator.bytesRef |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CellToBytesRefIterator.next() |
Modifier and Type | Method and Description |
---|---|
protected org.locationtech.spatial4j.shape.Point |
PointPrefixTreeFieldCacheProvider.readShape(BytesRef term) |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
QuadPrefixTree.QuadCell.concat(BytesRef source,
byte b) |
BytesRef |
PackedQuadPrefixTree.PackedQuadCell.getTokenBytesNoLeaf(BytesRef result) |
BytesRef |
LegacyCell.getTokenBytesNoLeaf(BytesRef result) |
BytesRef |
NumberRangePrefixTree.NRCell.getTokenBytesNoLeaf(BytesRef result) |
BytesRef |
Cell.getTokenBytesNoLeaf(BytesRef result)
Returns the bytes for this cell, without a leaf set.
|
BytesRef |
PackedQuadPrefixTree.PackedQuadCell.getTokenBytesWithLeaf(BytesRef result) |
BytesRef |
LegacyCell.getTokenBytesWithLeaf(BytesRef result) |
BytesRef |
NumberRangePrefixTree.NRCell.getTokenBytesWithLeaf(BytesRef result) |
BytesRef |
Cell.getTokenBytesWithLeaf(BytesRef result)
Returns the bytes for this cell, with a leaf byte if this is a leaf cell.
|
Modifier and Type | Method and Description |
---|---|
protected void |
QuadPrefixTree.checkBattenberg(char c,
double cx,
double cy,
int level,
java.util.List<Cell> matches,
BytesRef str,
org.locationtech.spatial4j.shape.Shape shape,
int maxLevel) |
protected BytesRef |
QuadPrefixTree.QuadCell.concat(BytesRef source,
byte b) |
BytesRef |
PackedQuadPrefixTree.PackedQuadCell.getTokenBytesNoLeaf(BytesRef result) |
BytesRef |
LegacyCell.getTokenBytesNoLeaf(BytesRef result) |
BytesRef |
NumberRangePrefixTree.NRCell.getTokenBytesNoLeaf(BytesRef result) |
BytesRef |
Cell.getTokenBytesNoLeaf(BytesRef result)
Returns the bytes for this cell, without a leaf set.
|
BytesRef |
PackedQuadPrefixTree.PackedQuadCell.getTokenBytesWithLeaf(BytesRef result) |
BytesRef |
LegacyCell.getTokenBytesWithLeaf(BytesRef result) |
BytesRef |
NumberRangePrefixTree.NRCell.getTokenBytesWithLeaf(BytesRef result) |
BytesRef |
Cell.getTokenBytesWithLeaf(BytesRef result)
Returns the bytes for this cell, with a leaf byte if this is a leaf cell.
|
protected void |
PackedQuadPrefixTree.PackedQuadCell.readCell(BytesRef bytes) |
protected void |
LegacyCell.readCell(BytesRef bytes) |
Cell |
PackedQuadPrefixTree.readCell(BytesRef term,
Cell scratch) |
Cell |
NumberRangePrefixTree.readCell(BytesRef term,
Cell scratch) |
abstract Cell |
SpatialPrefixTree.readCell(BytesRef term,
Cell scratch)
This creates a new Cell (or re-using
scratch if provided), initialized to the state as read
by the bytes. |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
ShapeFieldCacheProvider.readShape(BytesRef term) |
Modifier and Type | Field and Description |
---|---|
static BytesRef |
UnicodeUtil.BIG_TERM
A binary term consisting of a number of 0xff bytes, likely to be bigger than other terms
(e.g.
|
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<BytesRef> |
OfflineSorter.DEFAULT_COMPARATOR
Default comparator: sorts in binary (codepoint) order
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
BytesRef.clone()
Returns a shallow clone of this instance (the underlying bytes are
not copied and will be shared by both the returned object and this
object.
|
static BytesRef |
BytesRef.deepCopyOf(BytesRef other)
Creates a new BytesRef that points to a copy of the bytes from
other |
BytesRef |
BytesRefBuilder.get()
Return a
BytesRef that points to the internal content of this
builder. |
BytesRef |
BytesRefArray.get(BytesRefBuilder spare,
int index)
Returns the n'th element of this
BytesRefArray |
BytesRef |
BytesRefHash.get(int bytesID,
BytesRef ref)
Populates and returns a
BytesRef with the bytes for the given
bytesID. |
static BytesRef |
StringHelper.intsRefToBytesRef(IntsRef ints)
|
BytesRef |
OfflineSorter.ByteSequencesReader.next()
Reads the next entry into the provided
BytesRef . |
BytesRef |
BytesRefIterator.next()
Increments the iteration to the next
BytesRef in the iterator. |
static BytesRef |
TestUtil.randomBinaryTerm(java.util.Random r)
Returns a random binary term.
|
BytesRef |
BytesRefBuilder.toBytesRef()
Build a new
BytesRef that has the same content as this buffer. |
Modifier and Type | Method and Description |
---|---|
java.util.Comparator<BytesRef> |
OfflineSorter.getComparator()
Returns the comparator in use to sort entries
|
Modifier and Type | Method and Description |
---|---|
int |
BytesRefHash.add(BytesRef bytes)
Adds a new
BytesRef |
void |
BytesRefBuilder.append(BytesRef ref)
Append the provided bytes to this builder.
|
void |
ByteBlockPool.append(BytesRef bytes)
Appends the bytes in the provided
BytesRef at
the current position. |
int |
BytesRefArray.append(BytesRef bytes)
Appends a copy of the given
BytesRef to this BytesRefArray . |
protected abstract int |
BytesRefComparator.byteAt(BytesRef ref,
int i)
Return the unsigned byte to use for comparison at index
i , or
-1 if all bytes that are useful for comparisons are exhausted. |
static int |
StringHelper.bytesDifference(BytesRef priorTerm,
BytesRef currentTerm)
Compares two
BytesRef , element by element, and returns the
number of elements common to both arrays (from the start of each). |
boolean |
BytesRef.bytesEquals(BytesRef other)
Expert: compares the bytes against another BytesRef,
returning true if the bytes are equal.
|
static java.lang.String |
TestUtil.bytesRefToString(BytesRef br)
For debugging: tries to include br.utf8ToString(), but if that
fails (because it's not valid utf8, which is fine!), just
use ordinary toString.
|
static java.lang.CharSequence |
TestUtil.bytesToCharSequence(BytesRef ref,
java.util.Random random) |
static int |
UnicodeUtil.codePointCount(BytesRef utf8)
Returns the number of code points in this UTF8 sequence.
|
int |
BytesRefComparator.compare(BytesRef o1,
BytesRef o2) |
int |
BytesRef.compareTo(BytesRef other)
Unsigned byte order comparison
|
void |
PagedBytes.copy(BytesRef bytes,
BytesRef out)
Copy BytesRef in, setting BytesRef out to the result.
|
void |
BytesRefBuilder.copyBytes(BytesRef ref)
Replace the content of this builder with the provided bytes.
|
long |
PagedBytes.copyUsingLengthPrefix(BytesRef bytes)
Copy bytes in, writing the length as a 1 or 2 byte
vInt prefix.
|
void |
IntsRefBuilder.copyUTF8Bytes(BytesRef bytes)
Copy the given UTF-8 bytes into this builder.
|
void |
CharsRefBuilder.copyUTF8Bytes(BytesRef bytes)
Copy the provided bytes, interpreted as UTF-8 bytes.
|
static BytesRef |
BytesRef.deepCopyOf(BytesRef other)
Creates a new BytesRef that points to a copy of the bytes from
other |
static PostingsEnum |
TestUtil.docs(java.util.Random random,
IndexReader r,
java.lang.String field,
BytesRef term,
PostingsEnum reuse,
int flags) |
static boolean |
StringHelper.endsWith(BytesRef ref,
BytesRef suffix)
Returns
true iff the ref ends with the given suffix. |
void |
PagedBytes.Reader.fill(BytesRef b,
long start)
Reads length as 1 or 2 byte vInt prefix, starting at start.
|
void |
PagedBytes.Reader.fillSlice(BytesRef b,
long start,
int length)
Gets a slice out of
PagedBytes starting at start with a
given length. |
int |
BytesRefHash.find(BytesRef bytes)
Returns the id of the given
BytesRef . |
BytesRef |
BytesRefHash.get(int bytesID,
BytesRef ref)
Populates and returns a
BytesRef with the bytes for the given
bytesID. |
static int |
StringHelper.murmurhash3_x86_32(BytesRef bytes,
int seed) |
static Field |
LuceneTestCase.newStringField(java.util.Random random,
java.lang.String name,
BytesRef value,
Field.Store stored) |
static Field |
LuceneTestCase.newStringField(java.lang.String name,
BytesRef value,
Field.Store stored) |
void |
ByteBlockPool.setBytesRef(BytesRef term,
int textStart) |
void |
ByteBlockPool.setRawBytesRef(BytesRef ref,
long offset)
|
static int |
StringHelper.sortKeyLength(BytesRef priorTerm,
BytesRef currentTerm)
Returns the length of
currentTerm needed for use as a sort key. |
static boolean |
StringHelper.startsWith(byte[] ref,
BytesRef prefix)
Returns
true iff the ref starts with the given prefix. |
static boolean |
StringHelper.startsWith(BytesRef ref,
BytesRef prefix)
Returns
true iff the ref starts with the given prefix. |
static int |
UnicodeUtil.UTF8toUTF16(BytesRef bytesRef,
char[] chars)
Utility method for
UnicodeUtil.UTF8toUTF16(byte[], int, int, char[]) |
static int |
UnicodeUtil.UTF8toUTF32(BytesRef utf8,
int[] ints)
This method assumes valid UTF8 input.
|
void |
OfflineSorter.ByteSequencesWriter.write(BytesRef ref)
Writes a BytesRef.
|
Modifier and Type | Method and Description |
---|---|
BytesRefIterator |
BytesRefArray.iterator(java.util.Comparator<BytesRef> comp)
Returns a
BytesRefIterator with point in time semantics. |
Constructor and Description |
---|
OfflineSorter(Directory dir,
java.lang.String tempFileNamePrefix,
java.util.Comparator<BytesRef> comparator)
Defaults constructor with a custom comparator.
|
OfflineSorter(Directory dir,
java.lang.String tempFileNamePrefix,
java.util.Comparator<BytesRef> comparator,
OfflineSorter.BufferSize ramBufferSize,
int maxTempfiles,
int valueLength,
java.util.concurrent.ExecutorService exec,
int maxPartitionsInRAM)
All-details constructor.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
CompiledAutomaton.commonSuffixRef
Shared common suffix accepted by the automaton.
|
BytesRef |
CompiledAutomaton.term
For
CompiledAutomaton.AUTOMATON_TYPE.SINGLE this is the singleton term. |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CompiledAutomaton.floor(BytesRef input,
BytesRefBuilder output)
Finds largest term accepted by this Automaton, that's
<= the provided input term.
|
static BytesRef |
Operations.getCommonPrefixBytesRef(Automaton a)
Returns the longest BytesRef that is a prefix of all accepted strings and
visits each state at most once.
|
static BytesRef |
Operations.getCommonSuffixBytesRef(Automaton a,
int maxDeterminizedStates)
Returns the longest BytesRef that is a suffix of all accepted strings.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
CompiledAutomaton.floor(BytesRef input,
BytesRefBuilder output)
Finds largest term accepted by this Automaton, that's
<= the provided input term.
|
static Automaton |
Automata.makeBinary(BytesRef term)
Returns a new (deterministic) automaton that accepts the single given
binary term.
|
static Automaton |
Automata.makeBinaryInterval(BytesRef min,
boolean minInclusive,
BytesRef max,
boolean maxInclusive)
Creates a new deterministic, minimal automaton accepting
all binary terms in the specified interval.
|
Modifier and Type | Method and Description |
---|---|
static Automaton |
DaciukMihovAutomatonBuilder.build(java.util.Collection<BytesRef> input)
Build a minimal, deterministic automaton from a sorted list of
BytesRef representing
strings in UTF-8. |
static Automaton |
Automata.makeStringUnion(java.util.Collection<BytesRef> utf8Strings)
Returns a new (deterministic and minimal) automaton that accepts the union
of the given collection of
BytesRef s representing UTF-8 encoded
strings. |
Modifier and Type | Method and Description |
---|---|
abstract BytesRef |
BKDReader.IndexTree.getSplitDimValue()
Only valid after pushLeft or pushRight, not pop!
|
Modifier and Type | Method and Description |
---|---|
void |
HeapPointWriter.getPackedValueSlice(int index,
BytesRef result)
Returns a reference, in
result , to the byte[] slice holding this value |
static void |
MutablePointsReaderUtils.partition(int maxDoc,
int splitDim,
int bytesPerDim,
int commonPrefixLen,
MutablePointValues reader,
int from,
int to,
int mid,
BytesRef scratch1,
BytesRef scratch2)
Partition points around
mid . |
static void |
MutablePointsReaderUtils.sortByDim(int sortedDim,
int bytesPerDim,
int[] commonPrefixLengths,
MutablePointValues reader,
int from,
int to,
BytesRef scratch1,
BytesRef scratch2)
Sort points on the given dimension.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
BytesRefFSTEnum.InputOutput.input |
Modifier and Type | Method and Description |
---|---|
BytesRef |
ByteSequenceOutputs.add(BytesRef prefix,
BytesRef output) |
BytesRef |
ByteSequenceOutputs.common(BytesRef output1,
BytesRef output2) |
BytesRef |
ByteSequenceOutputs.getNoOutput() |
BytesRef |
ByteSequenceOutputs.read(DataInput in) |
BytesRef |
ByteSequenceOutputs.subtract(BytesRef output,
BytesRef inc) |
static BytesRef |
Util.toBytesRef(IntsRef input,
BytesRefBuilder scratch)
Just converts IntsRef to BytesRef; you must ensure the
int values fit into a byte.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
ByteSequenceOutputs.add(BytesRef prefix,
BytesRef output) |
BytesRef |
ByteSequenceOutputs.common(BytesRef output1,
BytesRef output2) |
static <T> T |
Util.get(FST<T> fst,
BytesRef input)
Looks up the output for this input, or null if the
input is not accepted
|
java.lang.String |
ByteSequenceOutputs.outputToString(BytesRef output) |
long |
ByteSequenceOutputs.ramBytesUsed(BytesRef output) |
BytesRefFSTEnum.InputOutput<T> |
BytesRefFSTEnum.seekCeil(BytesRef target)
Seeks to smallest term that's >= target.
|
BytesRefFSTEnum.InputOutput<T> |
BytesRefFSTEnum.seekExact(BytesRef target)
Seeks to exactly this term, returning null if the term
doesn't exist.
|
BytesRefFSTEnum.InputOutput<T> |
BytesRefFSTEnum.seekFloor(BytesRef target)
Seeks to biggest term that's <= target.
|
BytesRef |
ByteSequenceOutputs.subtract(BytesRef output,
BytesRef inc) |
static IntsRef |
Util.toIntsRef(BytesRef input,
IntsRefBuilder scratch)
Just takes unsigned byte values from the BytesRef and
converts into an IntsRef.
|
void |
ByteSequenceOutputs.write(BytesRef prefix,
DataOutput out) |
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.