Package | Description |
---|---|
org.apache.lucene.analysis |
API and code to convert text into indexable/searchable tokens.
|
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 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.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.lucene40 |
Lucene 4.0 file format.
|
org.apache.lucene.codecs.lucene41 |
Lucene 4.1 file format.
|
org.apache.lucene.codecs.lucene45 |
Lucene 4.5 file format.
|
org.apache.lucene.codecs.pulsing |
Pulsing Codec: inlines low frequency terms' postings into terms dictionary.
|
org.apache.lucene.codecs.sep |
Sep: base support for separate files (doc,frq,pos,skp,pyl)
|
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.document |
Misc extensions of the Document/Field API.
|
org.apache.lucene.facet |
faceted search
|
org.apache.lucene.facet.taxonomy |
Taxonomy of Categories
|
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.misc |
Miscellaneous index tools.
|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.queries.function |
Queries that compute score based upon a function
|
org.apache.lucene.queries.function.docvalues |
FunctionValues for different data types.
|
org.apache.lucene.queries.function.valuesource |
A variety of functions to use with FunctionQuery.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryparser.flexible.standard.nodes |
Standard Lucene Query Nodes.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
org.apache.lucene.sandbox.queries.regex |
Regular expression Query.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
This module enables search result grouping with Lucene, where hits
with the same value in the specified single-valued group field are
grouped together.
|
org.apache.lucene.search.grouping.term |
Support for grouping by indexed terms via
FieldCache . |
org.apache.lucene.search.payloads |
The payloads package provides Query mechanisms for finding and using payloads.
|
org.apache.lucene.search.postingshighlight |
Highlighter implementation that uses offsets from postings lists.
|
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.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.util |
Some utility classes.
|
org.apache.lucene.util.automaton |
Finite-state automaton for regular expressions.
|
org.apache.lucene.util.fst |
Misc FST classes.
|
org.apache.lucene.util.mutable |
Comparable object wrappers
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TokenStreamToAutomaton.changeToken(BytesRef in)
Subclass & implement this if you need to change the
token (such as escaping certain bytes) before it's
turned into a graph.
|
BytesRef |
NumericTokenStream.NumericTermAttributeImpl.getBytesRef() |
BytesRef |
Token.getPayload()
Returns this Token's payload.
|
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TokenStreamToAutomaton.changeToken(BytesRef in)
Subclass & 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.
|
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. |
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 |
---|
StemmerOverrideFilter.StemmerOverrideMap(FST<BytesRef> fst,
boolean ignoreCase)
Creates a new
StemmerOverrideFilter.StemmerOverrideMap |
Modifier and Type | Method and Description |
---|---|
BytesRef |
PayloadEncoder.encode(char[] buffer) |
BytesRef |
AbstractEncoder.encode(char[] buffer) |
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) |
BytesRef |
FloatEncoder.encode(char[] buffer,
int offset,
int length) |
BytesRef |
IdentityEncoder.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 |
TermToBytesRefAttribute.getBytesRef()
Retrieve this attribute's BytesRef.
|
BytesRef |
CharTermAttributeImpl.getBytesRef() |
BytesRef |
PayloadAttributeImpl.getPayload() |
BytesRef |
PayloadAttribute.getPayload()
Returns this Token's payload.
|
Modifier and Type | Method and Description |
---|---|
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> |
KNearestNeighborClassifier.assignClass(String text)
Assign a class (with score) to the given text String
|
ClassificationResult<BytesRef> |
SimpleNaiveBayesClassifier.assignClass(String inputDocument)
Assign a class (with score) to the given text String
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
MappingMultiDocsAndPositionsEnum.getPayload() |
Modifier and Type | Method and Description |
---|---|
abstract Comparator<BytesRef> |
TermVectorsWriter.getComparator()
Return the BytesRef Comparator used to sort terms
before feeding to this API.
|
abstract Comparator<BytesRef> |
TermsConsumer.getComparator()
Return the BytesRef Comparator used to sort terms
before feeding to this API.
|
Comparator<BytesRef> |
BlockTreeTermsReader.FieldReader.getComparator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
PostingsConsumer.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset)
Add a new position & 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 |
TermsConsumer.finishTerm(BytesRef text,
TermStats stats)
Finishes the current term; numDocs must be > 0.
|
TermsEnum |
BlockTreeTermsReader.FieldReader.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
abstract PostingsConsumer |
TermsConsumer.startTerm(BytesRef text)
Starts a new term in this field; this may be called
with no corresponding call to finish if the term had
no docs.
|
abstract void |
TermVectorsWriter.startTerm(BytesRef term,
int freq)
Adds a term and its term frequency
freq . |
Modifier and Type | Method and Description |
---|---|
abstract void |
DocValuesConsumer.addBinaryField(FieldInfo field,
Iterable<BytesRef> values)
Writes binary docvalues for a field.
|
abstract void |
DocValuesConsumer.addSortedField(FieldInfo field,
Iterable<BytesRef> values,
Iterable<Number> docToOrd)
Writes pre-sorted binary docvalues for a field.
|
abstract void |
DocValuesConsumer.addSortedSetField(FieldInfo field,
Iterable<BytesRef> values,
Iterable<Number> docToOrdCount,
Iterable<Number> ords)
Writes pre-sorted set docvalues for a field
|
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 |
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.
|
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.
|
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
|
Constructor and Description |
---|
FixedGapTermsIndexReader(Directory dir,
FieldInfos fieldInfos,
String segment,
int indexDivisor,
Comparator<BytesRef> termComp,
String segmentSuffix,
IOContext context) |
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 |
---|---|
Comparator<BytesRef> |
CompressingTermVectorsWriter.getComparator() |
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 |
---|---|
Comparator<BytesRef> |
Lucene40TermVectorsWriter.getComparator() |
Modifier and Type | Method and Description |
---|---|
void |
Lucene40TermVectorsWriter.addPosition(int position,
int startOffset,
int endOffset,
BytesRef payload) |
void |
Lucene40TermVectorsWriter.startTerm(BytesRef term,
int freq) |
Modifier and Type | Method and Description |
---|---|
void |
Lucene41PostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset)
Add a new position & payload
|
Modifier and Type | Method and Description |
---|---|
void |
Lucene45DocValuesConsumer.addBinaryField(FieldInfo field,
Iterable<BytesRef> values) |
void |
Lucene45DocValuesConsumer.addSortedField(FieldInfo field,
Iterable<BytesRef> values,
Iterable<Number> docToOrd) |
void |
Lucene45DocValuesConsumer.addSortedSetField(FieldInfo field,
Iterable<BytesRef> values,
Iterable<Number> docToOrdCount,
Iterable<Number> ords) |
protected void |
Lucene45DocValuesConsumer.addTermsDict(FieldInfo field,
Iterable<BytesRef> values)
expert: writes a value dictionary for a sorted/sortedset field
|
Modifier and Type | Method and Description |
---|---|
void |
PulsingPostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset) |
Modifier and Type | Method and Description |
---|---|
void |
SepPostingsWriter.addPosition(int position,
BytesRef payload,
int startOffset,
int endOffset)
Add a new position & payload
|
Modifier and Type | Method and Description |
---|---|
Comparator<BytesRef> |
SimpleTextTermVectorsWriter.getComparator() |
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 |
LazyDocument.LazyField.binaryValue() |
BytesRef |
Field.binaryValue() |
BytesRef |
Document.getBinaryValue(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(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 byte[] |
CompressionTools.decompress(BytesRef bytes)
Decompress the byte array previously returned by
compress (referenced by the provided BytesRef)
|
static String |
CompressionTools.decompressString(BytesRef bytes)
Decompress the byte array (referenced by the provided BytesRef)
previously returned by compressString back into a String
|
void |
Field.setBytesValue(BytesRef value)
Expert: change the value of this field.
|
Constructor and Description |
---|
BinaryDocValuesField(String name,
BytesRef value)
Create a new binary DocValues field.
|
DerefBytesDocValuesField(String name,
BytesRef bytes)
Deprecated.
Create a new fixed or variable-length DocValues field.
|
DerefBytesDocValuesField(String name,
BytesRef bytes,
boolean isFixedLength)
Deprecated.
Create a new fixed or variable length DocValues field.
|
Field(String name,
BytesRef bytes,
FieldType type)
Create field with binary value.
|
SortedBytesDocValuesField(String name,
BytesRef bytes)
Deprecated.
Create a new fixed or variable-length sorted DocValues field.
|
SortedBytesDocValuesField(String name,
BytesRef bytes,
boolean isFixedLength)
Deprecated.
Create a new fixed or variable length sorted DocValues field.
|
SortedDocValuesField(String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
SortedSetDocValuesField(String name,
BytesRef bytes)
Create a new sorted DocValues field.
|
StoredField(String name,
BytesRef value)
Create a stored-only field with the given binary value.
|
StraightBytesDocValuesField(String name,
BytesRef bytes)
Deprecated.
Create a new fixed or variable length DocValues field.
|
StraightBytesDocValuesField(String name,
BytesRef bytes,
boolean isFixedLength)
Deprecated.
Create a new fixed or variable length direct DocValues field.
|
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 |
---|---|
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 & override if you change the encoding.
|
Constructor and Description |
---|
AssociationFacetField(BytesRef assoc,
String dim,
String... path)
Creates this from
dim and path and an
association |
Modifier and Type | Field and Description |
---|---|
protected BytesRef[] |
DocTermOrds.indexedTermsArray
Holds the indexed (by default every 128th) terms.
|
protected BytesRef |
DocTermOrds.prefix
If non-null, only terms matching this prefix were
indexed.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
IndexableField.binaryValue()
Non-null if this field has a binary value
|
BytesRef |
Term.bytes()
Returns the bytes of this term.
|
BytesRef |
FilterAtomicReader.FilterDocsAndPositionsEnum.getPayload() |
abstract BytesRef |
DocsAndPositionsEnum.getPayload()
Returns the payload at this position, or null if no
payload was indexed.
|
BytesRef |
MultiDocsAndPositionsEnum.getPayload() |
BytesRef |
DocTermOrds.lookupTerm(TermsEnum termsEnum,
int ord)
Returns the term (
BytesRef ) corresponding to
the provided ordinal. |
BytesRef |
MultiTermsEnum.next() |
BytesRef |
FilterAtomicReader.FilterTermsEnum.next() |
BytesRef |
FilteredTermsEnum.next() |
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. |
abstract BytesRef |
TermsEnum.term()
Returns current term.
|
BytesRef |
MultiTermsEnum.term() |
BytesRef |
FilterAtomicReader.FilterTermsEnum.term() |
BytesRef |
FilteredTermsEnum.term() |
Modifier and Type | Method and Description |
---|---|
Comparator<BytesRef> |
MultiTermsEnum.getComparator() |
Comparator<BytesRef> |
FilterAtomicReader.FilterTerms.getComparator() |
Comparator<BytesRef> |
FilterAtomicReader.FilterTermsEnum.getComparator() |
Comparator<BytesRef> |
FilteredTermsEnum.getComparator() |
abstract Comparator<BytesRef> |
Terms.getComparator()
Return the BytesRef Comparator used to sort terms
provided by the iterator.
|
Comparator<BytesRef> |
MultiTerms.getComparator() |
Modifier and Type | Method and Description |
---|---|
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).
|
abstract void |
BinaryDocValues.get(int docID,
BytesRef result)
Lookup the value for document.
|
void |
SortedDocValues.get(int docID,
BytesRef result) |
static DocsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term)
Returns
DocsEnum for the specified field &
term. |
static DocsEnum |
MultiFields.getTermDocsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term,
int flags)
Returns
DocsEnum for the specified field &
term, with control over whether freqs are required. |
static DocsAndPositionsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term)
Returns
DocsAndPositionsEnum for the specified
field & term. |
static DocsAndPositionsEnum |
MultiFields.getTermPositionsEnum(IndexReader r,
Bits liveDocs,
String field,
BytesRef term,
int flags)
Returns
DocsAndPositionsEnum for the specified
field & term, with control over whether offsets and payloads are
required. |
TermsEnum |
Terms.intersect(CompiledAutomaton compiled,
BytesRef startTerm)
Returns a TermsEnum that iterates over all terms that
are accepted by the provided
CompiledAutomaton . |
TermsEnum |
MultiTerms.intersect(CompiledAutomaton compiled,
BytesRef startTerm) |
abstract void |
SortedDocValues.lookupOrd(int ord,
BytesRef result)
Retrieves the value for the specified ordinal.
|
void |
MultiDocValues.MultiSortedDocValues.lookupOrd(int ord,
BytesRef result) |
abstract void |
SortedSetDocValues.lookupOrd(long ord,
BytesRef result)
Retrieves the value for the specified ordinal.
|
void |
MultiDocValues.MultiSortedSetDocValues.lookupOrd(long ord,
BytesRef result) |
int |
SortedDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
long |
SortedSetDocValues.lookupTerm(BytesRef key)
If
key exists, returns its ordinal, else
returns -insertionPoint-1 , like Arrays.binarySearch . |
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. |
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) |
TermsEnum.SeekStatus |
FilterAtomicReader.FilterTermsEnum.seekCeil(BytesRef text) |
TermsEnum.SeekStatus |
FilteredTermsEnum.seekCeil(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) |
boolean |
FilteredTermsEnum.seekExact(BytesRef term)
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() . |
void |
FilteredTermsEnum.seekExact(BytesRef term,
TermState state)
This enum does not support seeking!
|
protected void |
FilteredTermsEnum.setInitialSeekTerm(BytesRef term)
Use this method to set the initial
BytesRef
to seek before iterating. |
static String |
Term.toString(BytesRef termText)
Returns human-readable form of the term text.
|
protected void |
DocTermOrds.uninvert(AtomicReader reader,
Bits liveDocs,
BytesRef termPrefix)
Call this only once (if you subclass!)
|
void |
IndexWriter.updateBinaryDocValue(Term term,
String field,
BytesRef value)
|
Constructor and Description |
---|
DocTermOrds(AtomicReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix)
Inverts only terms starting w/ prefix
|
DocTermOrds(AtomicReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix,
int maxTermDocFreq)
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq
|
DocTermOrds(AtomicReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix,
int maxTermDocFreq,
int indexIntervalBits)
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq, with a custom indexing interval
(default is every 128nd term).
|
SingleTermsEnum(TermsEnum tenum,
BytesRef termText)
Creates a new
SingleTermsEnum . |
Term(String fld,
BytesRef bytes)
Constructs a Term with the given field and bytes.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
TermStats.termtext |
Constructor and Description |
---|
TermsFilter(String field,
BytesRef... terms)
Creates a new
TermsFilter from the given BytesRef array for
a single field. |
Constructor and Description |
---|
TermsFilter(String field,
List<BytesRef> terms)
Creates a new
TermsFilter from the given BytesRef list for
a single field. |
Modifier and Type | Method and Description |
---|---|
boolean |
FunctionValues.bytesVal(int doc,
BytesRef target)
returns the bytes representation of the string val - TODO: should this return the indexed raw bytes not?
|
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
DocTermsIndexDocValues.spare |
Modifier and Type | Method and Description |
---|---|
boolean |
DocTermsIndexDocValues.bytesVal(int doc,
BytesRef target) |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
LiteralValueSource.bytesRef |
protected BytesRef |
DocFreqValueSource.indexedBytes |
protected BytesRef |
TotalTermFreqValueSource.indexedBytes |
Constructor and Description |
---|
DocFreqValueSource(String field,
String val,
String indexedField,
BytesRef indexedBytes) |
IDFValueSource(String field,
String val,
String indexedField,
BytesRef indexedBytes) |
TermFreqValueSource(String field,
String val,
String indexedField,
BytesRef indexedBytes) |
TFValueSource(String field,
String val,
String indexedField,
BytesRef indexedBytes) |
TotalTermFreqValueSource(String field,
String val,
String indexedField,
BytesRef indexedBytes) |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
QueryParserBase.analyzeMultitermTerm(String field,
String part,
Analyzer analyzerIn) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
RegexpQueryNode.textToBytesRef() |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
SlowCollatedTermRangeTermsEnum.accept(BytesRef term)
Deprecated.
|
protected void |
SlowFuzzyTermsEnum.maxEditDistanceChanged(BytesRef lastTerm,
int maxEdits,
boolean init)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
RegexTermsEnum.accept(BytesRef term) |
boolean |
RegexCapabilities.RegexMatcher.match(BytesRef term) |
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 |
TermRangeFilter.getLowerTerm()
Returns the lower value of this range filter
|
BytesRef |
DocTermOrdsRangeFilter.getLowerVal()
Returns the lower value of this range filter
|
BytesRef |
TermRangeQuery.getUpperTerm()
Returns the upper value of this range query
|
BytesRef |
TermRangeFilter.getUpperTerm()
Returns the upper value of this range filter
|
BytesRef |
DocTermOrdsRangeFilter.getUpperVal()
Returns the upper value of this range filter
|
BytesRef |
FuzzyTermsEnum.next() |
BytesRef |
FuzzyTermsEnum.term() |
BytesRef |
TermStatistics.term()
returns the term text
|
BytesRef |
FieldComparator.TermOrdValComparator.value(int slot) |
BytesRef |
FieldComparator.TermValComparator.value(int slot) |
Modifier and Type | Method and Description |
---|---|
Comparator<BytesRef> |
SortField.getBytesComparator() |
Comparator<BytesRef> |
FuzzyTermsEnum.getComparator() |
static FieldCacheRangeFilter<BytesRef> |
FieldCacheRangeFilter.newBytesRefRange(String field,
BytesRef lowerVal,
BytesRef upperVal,
boolean includeLower,
boolean includeUpper)
Creates a BytesRef range filter using
FieldCache.getTermsIndex(org.apache.lucene.index.AtomicReader, java.lang.String) . |
FieldComparator<BytesRef> |
FieldComparator.TermOrdValComparator.setNextReader(AtomicReaderContext context) |
FieldComparator<BytesRef> |
FieldComparator.TermValComparator.setNextReader(AtomicReaderContext context) |
Modifier and Type | Method and Description |
---|---|
protected FilteredTermsEnum.AcceptStatus |
PrefixTermsEnum.accept(BytesRef term) |
protected FilteredTermsEnum.AcceptStatus |
TermRangeTermsEnum.accept(BytesRef term) |
int |
FieldComparator.TermOrdValComparator.compareValues(BytesRef val1,
BytesRef val2) |
int |
FieldComparator.TermValComparator.compareValues(BytesRef val1,
BytesRef val2) |
protected TermsEnum |
FuzzyTermsEnum.getAutomatonEnum(int editDistance,
BytesRef lastTerm)
return an automata-based enum for matching up to editDistance from
lastTerm, if possible
|
static TermRangeFilter |
TermRangeFilter.Less(String fieldName,
BytesRef upperTerm)
Constructs a filter for field
fieldName matching
less than or equal to upperTerm . |
protected void |
FuzzyTermsEnum.maxEditDistanceChanged(BytesRef lastTerm,
int maxEdits,
boolean init) |
static TermRangeFilter |
TermRangeFilter.More(String fieldName,
BytesRef lowerTerm)
Constructs a filter for field
fieldName matching
greater than or equal to lowerTerm . |
static DocTermOrdsRangeFilter |
DocTermOrdsRangeFilter.newBytesRefRange(String field,
BytesRef lowerVal,
BytesRef upperVal,
boolean includeLower,
boolean includeUpper)
Creates a BytesRef range filter using
FieldCache.getTermsIndex(org.apache.lucene.index.AtomicReader, java.lang.String) . |
static FieldCacheRangeFilter<BytesRef> |
FieldCacheRangeFilter.newBytesRefRange(String field,
BytesRef lowerVal,
BytesRef upperVal,
boolean includeLower,
boolean includeUpper)
Creates a BytesRef range filter using
FieldCache.getTermsIndex(org.apache.lucene.index.AtomicReader, java.lang.String) . |
byte |
FieldCache.ByteParser.parseByte(BytesRef term)
Deprecated.
Return a single Byte representation of this field's value.
|
double |
FieldCache.DoubleParser.parseDouble(BytesRef term)
Return an double representation of this field's value.
|
float |
FieldCache.FloatParser.parseFloat(BytesRef term)
Return an float representation of this field's value.
|
int |
FieldCache.IntParser.parseInt(BytesRef term)
Return an integer representation of this field's value.
|
long |
FieldCache.LongParser.parseLong(BytesRef term)
Return an long representation of this field's value.
|
short |
FieldCache.ShortParser.parseShort(BytesRef term)
Deprecated.
Return a short representation of this field's value.
|
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) |
Modifier and Type | Method and Description |
---|---|
void |
SortField.setBytesComparator(Comparator<BytesRef> b) |
Constructor and Description |
---|
FieldCacheTermsFilter(String field,
BytesRef... terms) |
PrefixTermsEnum(TermsEnum tenum,
BytesRef prefixText) |
TermRangeFilter(String fieldName,
BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper) |
TermRangeQuery(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 . |
TermRangeTermsEnum(TermsEnum tenum,
BytesRef lowerTerm,
BytesRef upperTerm,
boolean includeLower,
boolean includeUpper)
Enumerates all terms greater/equal than
lowerTerm
but less/equal than upperTerm . |
TermStatistics(BytesRef term,
long docFreq,
long totalTermFreq) |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
AbstractGroupFacetCollector.facetPrefix |
protected BytesRef |
AbstractGroupFacetCollector.SegmentResult.mergeTerm |
Modifier and Type | Method and Description |
---|---|
BytesRef |
AbstractGroupFacetCollector.FacetEntry.getValue() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractGroupFacetCollector.GroupedFacetResult.addFacetCount(BytesRef facetValue,
int count) |
Constructor and Description |
---|
AbstractGroupFacetCollector.FacetEntry(BytesRef value,
int count) |
AbstractGroupFacetCollector(String groupField,
String facetField,
BytesRef facetPrefix) |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TermFirstPassGroupingCollector.copyDocGroupValue(BytesRef groupValue,
BytesRef reuse) |
protected BytesRef |
TermFirstPassGroupingCollector.getDocGroupValue(int doc) |
Modifier and Type | Method and Description |
---|---|
Collection<BytesRef> |
TermAllGroupsCollector.getGroups() |
protected AbstractSecondPassGroupingCollector.SearchGroupDocs<BytesRef> |
TermSecondPassGroupingCollector.retrieveGroup(int doc) |
Modifier and Type | Method and Description |
---|---|
protected BytesRef |
TermFirstPassGroupingCollector.copyDocGroupValue(BytesRef groupValue,
BytesRef reuse) |
static TermGroupFacetCollector |
TermGroupFacetCollector.createTermGroupFacetCollector(String groupField,
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.
|
Constructor and Description |
---|
TermDistinctValuesCollector(String groupField,
String countField,
Collection<SearchGroup<BytesRef>> groups)
Constructs
TermDistinctValuesCollector instance. |
TermSecondPassGroupingCollector(String groupField,
Collection<SearchGroup<BytesRef>> groups,
Sort groupSort,
Sort withinGroupSort,
int maxDocsPerGroup,
boolean getScores,
boolean getMaxScores,
boolean fillSortFields) |
Modifier and Type | Field and Description |
---|---|
protected BytesRef |
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer.payload |
Modifier and Type | Method and Description |
---|---|
BytesRef[] |
Passage.getMatchTerms()
BytesRef (term text) of the matches, corresponding with
Passage.getMatchStarts() . |
Modifier and Type | Method and Description |
---|---|
abstract float |
Similarity.SimScorer.computePayloadFactor(int doc,
int start,
int end,
BytesRef payload)
Calculate a scoring factor based on the data in the payload.
|
abstract float |
TFIDFSimilarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
Calculate a scoring factor based on the data in the payload.
|
float |
DefaultSimilarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
protected float |
BM25Similarity.scorePayload(int doc,
int start,
int end,
BytesRef payload)
The default implementation returns
1 |
Modifier and Type | Field and Description |
---|---|
BytesRef |
DirectSpellChecker.ScoreTerm.term
The actual spellcheck correction.
|
Modifier and Type | Method and Description |
---|---|
BytesRef |
TermFreqIterator.TermFreqIteratorWrapper.next() |
Modifier and Type | Method and Description |
---|---|
Comparator<BytesRef> |
TermFreqIterator.TermFreqIteratorWrapper.getComparator() |
Modifier and Type | Field and Description |
---|---|
BytesRef |
Lookup.LookupResult.payload
the key's payload (null if not present)
|
Modifier and Type | Field and Description |
---|---|
Set<BytesRef> |
Lookup.LookupResult.contexts
the key's contexts (null if not present)
|
protected List<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 |
DocumentDictionary.DocumentInputIterator.next() |
BytesRef |
SortedTermFreqIteratorWrapper.next() |
BytesRef |
InputIterator.InputIteratorWrapper.next() |
BytesRef |
BufferedInputIterator.next() |
BytesRef |
SortedInputIterator.next() |
BytesRef |
UnsortedInputIterator.next() |
BytesRef |
BufferingTermFreqIteratorWrapper.next() |
BytesRef |
DocumentDictionary.DocumentInputIterator.payload() |
BytesRef |
InputIterator.payload()
An arbitrary byte[] to record per suggestion.
|
BytesRef |
InputIterator.InputIteratorWrapper.payload() |
BytesRef |
BufferedInputIterator.payload() |
BytesRef |
SortedInputIterator.payload() |
BytesRef |
UnsortedInputIterator.payload() |
Modifier and Type | Method and Description |
---|---|
Set<BytesRef> |
DocumentDictionary.DocumentInputIterator.contexts() |
Set<BytesRef> |
InputIterator.contexts()
A term's contexts context can be used to filter suggestions.
|
Set<BytesRef> |
InputIterator.InputIteratorWrapper.contexts() |
Set<BytesRef> |
BufferedInputIterator.contexts() |
Set<BytesRef> |
SortedInputIterator.contexts() |
Set<BytesRef> |
UnsortedInputIterator.contexts() |
protected Set<BytesRef> |
SortedInputIterator.decodeContexts(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the contexts at the current position
|
Comparator<BytesRef> |
InMemorySorter.getComparator() |
Comparator<BytesRef> |
DocumentDictionary.DocumentInputIterator.getComparator() |
Comparator<BytesRef> |
SortedTermFreqIteratorWrapper.getComparator() |
Comparator<BytesRef> |
InputIterator.InputIteratorWrapper.getComparator() |
Comparator<BytesRef> |
BufferedInputIterator.getComparator() |
Comparator<BytesRef> |
SortedInputIterator.getComparator() |
Comparator<BytesRef> |
BufferingTermFreqIteratorWrapper.getComparator() |
Modifier and Type | Method and Description |
---|---|
void |
InMemorySorter.add(BytesRef utf8) |
protected long |
SortedTermFreqIteratorWrapper.decode(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the weight at the current position
|
protected long |
SortedInputIterator.decode(BytesRef scratch,
ByteArrayDataInput tmpInput)
decodes the weight at the current position
|
protected 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,
Set<BytesRef> contexts,
long weight)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer
|
protected void |
SortedTermFreqIteratorWrapper.encode(OfflineSorter.ByteSequencesWriter writer,
ByteArrayDataOutput output,
byte[] buffer,
BytesRef spare,
long weight)
encodes an entry (bytes+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,
Set<BytesRef> contexts,
long weight)
encodes an entry (bytes+(contexts)+(payload)+weight) to the provided writer
|
abstract List<Lookup.LookupResult> |
Lookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num)
Look up a key and return possible completion for this key.
|
Constructor and Description |
---|
Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload)
Create a new result from a key+weight+payload triple.
|
Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload,
Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.
|
Lookup.LookupResult(CharSequence key,
Object highlightKey,
long value,
BytesRef payload)
Create a new result from a key+highlightKey+weight+payload triple.
|
Lookup.LookupResult(CharSequence key,
Object highlightKey,
long value,
BytesRef payload,
Set<BytesRef> contexts)
Create a new result from a key+highlightKey+weight+payload+contexts triple.
|
Constructor and Description |
---|
InMemorySorter(Comparator<BytesRef> comparator)
Creates an InMemorySorter, sorting entries by the
provided comparator.
|
Lookup.LookupResult(CharSequence key,
long value,
BytesRef payload,
Set<BytesRef> contexts)
Create a new result from a key+weight+payload+contexts triple.
|
Lookup.LookupResult(CharSequence key,
long value,
Set<BytesRef> contexts)
Create a new result from a key+weight+contexts triple.
|
Lookup.LookupResult(CharSequence key,
Object highlightKey,
long value,
BytesRef payload,
Set<BytesRef> contexts)
Create a new result from a key+highlightKey+weight+payload+contexts triple.
|
SortedInputIterator(InputIterator source,
Comparator<BytesRef> comparator)
Creates a new sorted wrapper, sorting by BytesRef
(ascending) then cost (ascending).
|
SortedTermFreqIteratorWrapper(TermFreqIterator source,
Comparator<BytesRef> comparator)
Creates a new sorted wrapper, sorting by BytesRef
(ascending) then cost (ascending).
|
Modifier and Type | Method and Description |
---|---|
protected List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> |
AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.
|
protected List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> |
FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<Long,BytesRef>> fst) |
Modifier and Type | Method and Description |
---|---|
void |
AnalyzingInfixSuggester.add(BytesRef text,
Set<BytesRef> contexts,
long weight,
BytesRef payload)
Adds a new suggestion.
|
void |
AnalyzingInfixSuggester.update(BytesRef text,
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,
Set<BytesRef> contexts,
long weight,
BytesRef payload)
Adds a new suggestion.
|
protected List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> |
AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.
|
protected List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> |
AnalyzingSuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<Long,BytesRef>> fst)
Returns all prefix paths to initialize the search.
|
protected List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> |
FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<Long,BytesRef>> fst) |
protected List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> |
FuzzySuggester.getFullPrefixPaths(List<FSTUtil.Path<PairOutputs.Pair<Long,BytesRef>>> prefixPaths,
Automaton lookupAutomaton,
FST<PairOutputs.Pair<Long,BytesRef>> fst) |
List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
AnalyzingSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
FreeTextSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
List<Lookup.LookupResult> |
FreeTextSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
int num)
Retrieve suggestions.
|
List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
int num,
boolean allTermsRequired,
boolean doHighlight)
Retrieve suggestions, specifying whether all terms
must match (
allTermsRequired ) and whether the hits
should be highlighted (doHighlight ). |
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
Set<BytesRef> contexts,
int num,
boolean allTermsRequired,
boolean doHighlight) |
void |
AnalyzingInfixSuggester.update(BytesRef text,
Set<BytesRef> contexts,
long weight,
BytesRef payload)
Updates a previous suggestion, matching the exact same
text as before.
|
Modifier and Type | Field and Description |
---|---|
BytesRef |
FSTCompletion.Completion.utf8
UTF-8 bytes of the suggestion
|
Modifier and Type | Method and Description |
---|---|
Comparator<BytesRef> |
BytesRefSorter.getComparator()
Comparator used to determine the sort order of entries.
|
Comparator<BytesRef> |
ExternalRefSorter.getComparator() |
Modifier and Type | Method and Description |
---|---|
void |
BytesRefSorter.add(BytesRef utf8)
Adds a single suggestion entry (possibly compound with its bucket).
|
void |
ExternalRefSorter.add(BytesRef utf8) |
void |
FSTCompletionBuilder.add(BytesRef utf8,
int bucket)
Appends a single suggestion and its weight to the internal buffers.
|
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
FSTCompletionLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean higherWeightsFirst,
int num) |
List<Lookup.LookupResult> |
WFSTCompletionLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
JaspellLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
Modifier and Type | Method and Description |
---|---|
List<Lookup.LookupResult> |
TSTLookup.lookup(CharSequence key,
Set<BytesRef> contexts,
boolean onlyMorePopular,
int num) |
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 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 |
BytesRefArray.get(BytesRef 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. |
BytesRef |
BytesRefIterator.next()
Increments the iteration to the next
BytesRef in the iterator. |
Modifier and Type | Method and Description |
---|---|
Comparator<BytesRef> |
OfflineSorter.getComparator()
Returns the comparator in use to sort entries
|
Comparator<BytesRef> |
BytesRefIterator.getComparator()
Return the
BytesRef Comparator used to sort terms provided by the
iterator. |
static Comparator<BytesRef> |
BytesRef.getUTF8SortedAsUnicodeComparator() |
static Comparator<BytesRef> |
BytesRef.getUTF8SortedAsUTF16Comparator()
Deprecated.
This comparator is only a transition mechanism
|
Modifier and Type | Method and Description |
---|---|
int |
BytesRefHash.add(BytesRef bytes)
Adds a new
BytesRef |
void |
NumericUtils.LongRangeBuilder.addRange(BytesRef minPrefixCoded,
BytesRef maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds.
|
void |
NumericUtils.IntRangeBuilder.addRange(BytesRef minPrefixCoded,
BytesRef maxPrefixCoded)
Overwrite this method, if you like to receive the already prefix encoded range bounds.
|
int |
BytesRefArray.append(BytesRef bytes)
Appends a copy of the given
BytesRef to this BytesRefArray . |
void |
BytesRef.append(BytesRef other)
Appends the bytes from the given
BytesRef |
void |
ByteBlockPool.append(BytesRef bytes)
Appends the bytes in the provided
BytesRef at
the current position. |
static int |
StringHelper.bytesDifference(BytesRef left,
BytesRef right)
Compares two
BytesRef , element by element, and returns the
number of elements common to both arrays. |
boolean |
BytesRef.bytesEquals(BytesRef other)
Expert: compares the bytes against another BytesRef,
returning true if the bytes are equal.
|
static int |
UnicodeUtil.codePointCount(BytesRef utf8)
Returns the number of code points in this UTF8 sequence.
|
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 |
BytesRef.copyBytes(BytesRef other)
Copies the bytes from the given
BytesRef |
long |
PagedBytes.copyUsingLengthPrefix(BytesRef bytes)
Copy bytes in, writing the length as a 1 or 2 byte
vInt prefix.
|
static BytesRef |
BytesRef.deepCopyOf(BytesRef other)
Creates a new BytesRef that points to a copy of the bytes from
other |
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 |
BytesRefArray.get(BytesRef 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 int |
NumericUtils.getPrefixCodedIntShift(BytesRef val)
Returns the shift value from a prefix encoded
int . |
static int |
NumericUtils.getPrefixCodedLongShift(BytesRef val)
Returns the shift value from a prefix encoded
long . |
static void |
NumericUtils.intToPrefixCoded(int val,
int shift,
BytesRef bytes)
Returns prefix coded bits after reducing the precision by
shift bits. |
static void |
NumericUtils.intToPrefixCodedBytes(int val,
int shift,
BytesRef bytes)
Returns prefix coded bits after reducing the precision by
shift bits. |
static void |
NumericUtils.longToPrefixCoded(long val,
int shift,
BytesRef bytes)
Returns prefix coded bits after reducing the precision by
shift bits. |
static void |
NumericUtils.longToPrefixCodedBytes(long val,
int shift,
BytesRef bytes)
Returns prefix coded bits after reducing the precision by
shift bits. |
static int |
StringHelper.murmurhash3_x86_32(BytesRef bytes,
int seed) |
static int |
NumericUtils.prefixCodedToInt(BytesRef val)
Returns an int from prefixCoded bytes.
|
static long |
NumericUtils.prefixCodedToLong(BytesRef val)
Returns a long from prefixCoded bytes.
|
boolean |
OfflineSorter.ByteSequencesReader.read(BytesRef ref)
Reads the next entry into the provided
BytesRef . |
void |
ByteBlockPool.setBytesRef(BytesRef term,
int textStart) |
static boolean |
StringHelper.startsWith(BytesRef ref,
BytesRef prefix)
Returns
true iff the ref starts with the given prefix. |
static void |
UnicodeUtil.UTF16toUTF8(char[] source,
int offset,
int length,
BytesRef result)
Encode characters from a char[] source, starting at
offset for length chars.
|
static void |
UnicodeUtil.UTF16toUTF8(CharSequence s,
int offset,
int length,
BytesRef result)
Encode characters from this String, starting at offset
for length characters.
|
static void |
UnicodeUtil.UTF8toUTF16(BytesRef bytesRef,
CharsRef chars)
Utility method for
UnicodeUtil.UTF8toUTF16(byte[], int, int, CharsRef) |
static void |
UnicodeUtil.UTF8toUTF32(BytesRef utf8,
IntsRef utf32)
This method assumes valid UTF8 input.
|
void |
OfflineSorter.ByteSequencesWriter.write(BytesRef ref)
Writes a BytesRef.
|
Modifier and Type | Method and Description |
---|---|
BytesRefIterator |
BytesRefArray.iterator(Comparator<BytesRef> comp)
Returns a
BytesRefIterator with point in time semantics. |
int[] |
BytesRefHash.sort(Comparator<BytesRef> comp)
Returns the values array sorted by the referenced byte values.
|
Constructor and Description |
---|
OfflineSorter(Comparator<BytesRef> comparator)
Defaults constructor with a custom comparator.
|
OfflineSorter(Comparator<BytesRef> comparator,
OfflineSorter.BufferSize ramBufferSize,
File tempDirectory,
int maxTempfiles)
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.PREFIX , this is the prefix term;
for CompiledAutomaton.AUTOMATON_TYPE.SINGLE this is the singleton term. |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CompiledAutomaton.floor(BytesRef input,
BytesRef output)
Finds largest term accepted by this Automaton, that's
<= the provided input term.
|
static BytesRef |
SpecialOperations.getCommonPrefixBytesRef(Automaton a) |
static BytesRef |
SpecialOperations.getCommonSuffixBytesRef(Automaton a) |
Modifier and Type | Method and Description |
---|---|
BytesRef |
CompiledAutomaton.floor(BytesRef input,
BytesRef output)
Finds largest term accepted by this Automaton, that's
<= the provided input term.
|
Modifier and Type | Method and Description |
---|---|
static Automaton |
BasicAutomata.makeStringUnion(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 | 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,
BytesRef 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
|
String |
ByteSequenceOutputs.outputToString(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 BytesRef |
Util.toBytesRef(IntsRef input,
BytesRef scratch)
Just converts IntsRef to BytesRef; you must ensure the
int values fit into a byte.
|
static IntsRef |
Util.toIntsRef(BytesRef input,
IntsRef scratch)
Just takes unsigned byte values from the BytesRef and
converts into an IntsRef.
|
void |
ByteSequenceOutputs.write(BytesRef prefix,
DataOutput out) |
Modifier and Type | Field and Description |
---|---|
BytesRef |
MutableValueStr.value |
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.