Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.compressing |
StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.
|
org.apache.lucene.collation |
Unicode collation support.
|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
Modifier and Type | Class and Description |
---|---|
protected class |
StoredFieldsWriter.MergeVisitor
A visitor that adds every field it sees.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
StoredFieldsWriter.writeField(FieldInfo info,
IndexableField field)
Writes a single stored field.
|
Modifier and Type | Method and Description |
---|---|
void |
CompressingStoredFieldsWriter.writeField(FieldInfo info,
IndexableField field) |
Modifier and Type | Class and Description |
---|---|
class |
CollationDocValuesField
Indexes collation keys as a single-valued
SortedDocValuesField . |
Modifier and Type | Class and Description |
---|---|
class |
BigIntegerPoint
An indexed 128-bit
BigInteger field. |
class |
BinaryDocValuesField
Field that stores a per-document
BytesRef value. |
class |
BinaryPoint
An indexed binary field for fast range filters.
|
class |
DoubleDocValuesField
Syntactic sugar for encoding doubles as NumericDocValues
via
Double.doubleToRawLongBits(double) . |
class |
DoublePoint
An indexed
double field for fast range filters. |
class |
DoubleRange
An indexed Double Range field.
|
class |
FeatureField
Field that can be used to store static scoring factors into
documents. |
class |
Field
Expert: directly create a field for a document.
|
class |
FloatDocValuesField
Syntactic sugar for encoding floats as NumericDocValues
via
Float.floatToRawIntBits(float) . |
class |
FloatPoint
An indexed
float field for fast range filters. |
class |
FloatRange
An indexed Float Range field.
|
class |
HalfFloatPoint
An indexed
half-float field for fast range filters. |
class |
InetAddressPoint
An indexed 128-bit
InetAddress field. |
class |
InetAddressRange
An indexed InetAddress Range Field
|
class |
IntPoint
An indexed
int field for fast range filters. |
class |
IntRange
An indexed Integer Range field.
|
class |
LatLonBoundingBox
An indexed 2-Dimension Bounding Box field for the Geospatial Lat/Lon Coordinate system
|
class |
LatLonDocValuesField
An per-document location field.
|
class |
LatLonPoint
An indexed location field.
|
private static class |
LatLonShape.LatLonTriangle
polygons are decomposed into tessellated triangles using
Tessellator
these triangles are encoded and inserted as separate indexed POINT fields |
class |
LazyDocument.LazyField |
class |
LongPoint
An indexed
long field for fast range filters. |
class |
LongRange
An indexed Long Range field.
|
class |
NumericDocValuesField
Field that stores a per-document
long value for scoring,
sorting or value retrieval. |
class |
SortedDocValuesField
Field that stores
a per-document
BytesRef value, indexed for
sorting. |
class |
SortedNumericDocValuesField
Field that stores a per-document
long values for scoring,
sorting or value retrieval. |
class |
SortedSetDocValuesField
Field that stores
a set of per-document
BytesRef values, indexed for
faceting,grouping,joining. |
class |
StoredField
A field whose value is stored so that
IndexSearcher.doc(int) and IndexReader.document() will
return the field and its value. |
class |
StringField
A field that is indexed but not tokenized: the entire
String value is indexed as a single token.
|
class |
TextField
A field that is indexed and tokenized, without term
vectors.
|
Modifier and Type | Field and Description |
---|---|
(package private) IndexableField |
LazyDocument.LazyField.realValue |
Modifier and Type | Field and Description |
---|---|
private java.util.List<IndexableField> |
Document.fields |
Modifier and Type | Method and Description |
---|---|
IndexableField |
LazyDocument.getField(FieldInfo fieldInfo)
Creates a StorableField whose value will be lazy loaded if and
when it is used.
|
IndexableField |
Document.getField(java.lang.String name)
Returns a field with the given name if any exist in this document, or
null.
|
IndexableField[] |
Document.getFields(java.lang.String name)
Returns an array of
IndexableField s with the given name. |
private IndexableField |
LazyDocument.LazyField.getRealValue() |
Modifier and Type | Method and Description |
---|---|
java.util.List<IndexableField> |
Document.getFields()
Returns a List of all the fields in a document.
|
java.util.Iterator<IndexableField> |
Document.iterator() |
Modifier and Type | Method and Description |
---|---|
void |
Document.add(IndexableField field)
Adds a field to a document.
|
Modifier and Type | Class and Description |
---|---|
private static class |
SortingStoredFieldsConsumer.CopyVisitor
A visitor that copies every field it sees in the provided
StoredFieldsWriter . |
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.Iterable<? extends IndexableField> |
DocumentsWriterPerThread.DocState.doc |
Modifier and Type | Method and Description |
---|---|
private void |
DefaultIndexingChain.indexDocValue(DefaultIndexingChain.PerField fp,
DocValuesType dvType,
IndexableField field)
Called from processDocument to index one field's doc value
|
private void |
DefaultIndexingChain.indexPoint(DefaultIndexingChain.PerField fp,
IndexableField field)
Called from processDocument to index one field's point
|
void |
DefaultIndexingChain.PerField.invert(IndexableField field,
boolean first)
Inverts one field for one document; first is true
if this is the first time we are seeing this field
name in this document.
|
private int |
DefaultIndexingChain.processField(IndexableField field,
long fieldGen,
int fieldCount) |
(package private) boolean |
TermVectorsConsumerPerField.start(IndexableField field,
boolean first) |
(package private) boolean |
TermsHashPerField.start(IndexableField field,
boolean first)
Start adding a new field instance; first is true if
this is the first time this field name was seen in the
document.
|
(package private) boolean |
FreqProxTermsWriterPerField.start(IndexableField f,
boolean first) |
(package private) void |
StoredFieldsConsumer.writeField(FieldInfo info,
IndexableField field) |
Modifier and Type | Method and Description |
---|---|
long |
IndexWriter.addDocument(java.lang.Iterable<? extends IndexableField> doc)
Adds a document to this index.
|
long |
IndexWriter.addDocuments(java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs)
Atomically adds a block of documents with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
long |
IndexWriter.softUpdateDocument(Term term,
java.lang.Iterable<? extends IndexableField> doc,
Field... softDeletes)
Expert:
Updates a document by first updating the document(s)
containing
term with the given doc-values fields
and then adding the new document. |
long |
IndexWriter.softUpdateDocuments(Term term,
java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs,
Field... softDeletes)
Expert:
Atomically updates documents matching the provided
term with the given doc-values fields
and adds a block of documents with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
private long |
IndexWriter.updateDocument(DocumentsWriterDeleteQueue.Node<?> delNode,
java.lang.Iterable<? extends IndexableField> doc) |
(package private) long |
DocumentsWriter.updateDocument(java.lang.Iterable<? extends IndexableField> doc,
Analyzer analyzer,
DocumentsWriterDeleteQueue.Node<?> delNode) |
long |
DocumentsWriterPerThread.updateDocument(java.lang.Iterable<? extends IndexableField> doc,
Analyzer analyzer,
DocumentsWriterDeleteQueue.Node<?> deleteNode,
DocumentsWriter.FlushNotifications flushNotifications) |
long |
IndexWriter.updateDocument(Term term,
java.lang.Iterable<? extends IndexableField> doc)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
private long |
IndexWriter.updateDocuments(DocumentsWriterDeleteQueue.Node<?> delNode,
java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs) |
(package private) long |
DocumentsWriter.updateDocuments(java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs,
Analyzer analyzer,
DocumentsWriterDeleteQueue.Node<?> delNode) |
long |
DocumentsWriterPerThread.updateDocuments(java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs,
Analyzer analyzer,
DocumentsWriterDeleteQueue.Node<?> deleteNode,
DocumentsWriter.FlushNotifications flushNotifications) |
long |
IndexWriter.updateDocuments(Term delTerm,
java.lang.Iterable<? extends java.lang.Iterable<? extends IndexableField>> docs)
Atomically deletes documents matching the provided
delTerm and adds a block of documents with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
Modifier and Type | Method and Description |
---|---|
void |
MemoryIndex.addField(IndexableField field,
Analyzer analyzer)
Adds a lucene
IndexableField to the MemoryIndex using the provided analyzer. |
Modifier and Type | Method and Description |
---|---|
static MemoryIndex |
MemoryIndex.fromDocument(java.lang.Iterable<? extends IndexableField> document,
Analyzer analyzer)
Builds a MemoryIndex from a lucene
Document using an analyzer |
static MemoryIndex |
MemoryIndex.fromDocument(java.lang.Iterable<? extends IndexableField> document,
Analyzer analyzer,
boolean storeOffsets,
boolean storePayloads)
Builds a MemoryIndex from a lucene
Document using an analyzer |
static MemoryIndex |
MemoryIndex.fromDocument(java.lang.Iterable<? extends IndexableField> document,
Analyzer analyzer,
boolean storeOffsets,
boolean storePayloads,
long maxReusedBytes)
Builds a MemoryIndex from a lucene
Document using an analyzer |