| Package | Description |
|---|---|
| org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
| org.apache.lucene.codecs.lucene40 |
Lucene 4.0 file format.
|
| org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
| 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.search |
Code to search indices.
|
| Modifier and Type | Method and Description |
|---|---|
abstract void |
DocValuesConsumer.add(int docID,
IndexableField value)
Adds the given
IndexableField instance to this
DocValuesConsumer |
abstract void |
StoredFieldsWriter.writeField(FieldInfo info,
IndexableField field)
Writes a single stored field.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
StoredFieldsWriter.addDocument(Iterable<? extends IndexableField> doc,
FieldInfos fieldInfos)
sugar method for startDocument() + writeField() for every stored field in the document
|
| Modifier and Type | Method and Description |
|---|---|
void |
Lucene40StoredFieldsWriter.writeField(FieldInfo info,
IndexableField field) |
| Modifier and Type | Method and Description |
|---|---|
void |
SimpleTextDocValuesConsumer.add(int docID,
IndexableField value) |
void |
SimpleTextStoredFieldsWriter.writeField(FieldInfo info,
IndexableField field) |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteDocValuesField
This class provides a
Field that enables storing
of a per-document byte value for scoring, sorting or value retrieval. |
class |
DerefBytesDocValuesField
|
class |
DoubleDocValuesField
This class provides a
Field that enables storing
of a per-document double value for scoring, sorting or value retrieval. |
class |
DoubleField
This class provides a
Field that enables indexing of double values
for efficient range filtering and sorting. |
class |
Field
Expert: directly create a field for a document.
|
class |
FloatDocValuesField
This class provides a
Field that enables storing
of a per-document float value for scoring, sorting or value retrieval. |
class |
FloatField
This class provides a
Field that enables indexing of float values
for efficient range filtering and sorting. |
class |
IntDocValuesField
This class provides a
Field that enables storing
of a per-document int value for scoring, sorting or value retrieval. |
class |
IntField
This class provides a
Field that enables indexing of integer values
for efficient range filtering and sorting. |
class |
LongDocValuesField
This class provides a
Field that enables storing
of a per-document long value for scoring, sorting or value retrieval. |
class |
LongField
This class provides a
Field that enables indexing of long values
for efficient range filtering and sorting. |
class |
PackedLongDocValuesField
This class provides a
Field that enables storing
of a per-document long value for scoring, sorting or
value retrieval. |
class |
ShortDocValuesField
This class provides a
Field that enables storing
of a per-document short value for scoring, sorting or value retrieval. |
class |
SortedBytesDocValuesField
|
class |
StoredField
A field whose value is stored so that
IndexSearcher.doc(int) and IndexReader.document(int, org.apache.lucene.index.StoredFieldVisitor) will
return the field and its value. |
class |
StraightBytesDocValuesField
|
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 | Method and Description |
|---|---|
IndexableField |
Document.getField(String name)
Returns a field with the given name if any exist in this document, or
null.
|
IndexableField[] |
Document.getFields(String name)
Returns an array of
IndexableFields with the given name. |
| Modifier and Type | Method and Description |
|---|---|
List<IndexableField> |
Document.getFields()
Returns a List of all the fields in a document.
|
Iterator<IndexableField> |
Document.iterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
Document.add(IndexableField field)
Adds a field to a document.
|
| Modifier and Type | Method and Description |
|---|---|
IndexableField |
Norm.field()
Returns the
IndexableField representation for this norm |
| Modifier and Type | Method and Description |
|---|---|
void |
IndexWriter.addDocument(Iterable<? extends IndexableField> doc)
Adds a document to this index.
|
void |
IndexWriter.addDocument(Iterable<? extends IndexableField> doc,
Analyzer analyzer)
Adds a document to this index, using the provided analyzer instead of the
value of
IndexWriter.getAnalyzer(). |
void |
IndexWriter.addDocuments(Iterable<? extends 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.
|
void |
IndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer analyzer)
Atomically adds a block of documents, analyzed using the
provided analyzer, with sequentially assigned document
IDs, such that an external reader will see all or none
of the documents.
|
void |
IndexWriter.updateDocument(Term term,
Iterable<? extends IndexableField> doc)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
void |
IndexWriter.updateDocument(Term term,
Iterable<? extends IndexableField> doc,
Analyzer analyzer)
Updates a document by first deleting the document(s)
containing
term and then adding the new
document. |
void |
IndexWriter.updateDocuments(Term delTerm,
Iterable<? extends 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.
|
void |
IndexWriter.updateDocuments(Term delTerm,
Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer analyzer)
Atomically deletes documents matching the provided
delTerm and adds a block of documents, analyzed using
the provided analyzer, with sequentially
assigned document IDs, such that an external reader
will see all or none of the documents.
|
| Modifier and Type | Method and Description |
|---|---|
long |
NRTManager.TrackingIndexWriter.addDocument(Iterable<? extends IndexableField> d) |
long |
NRTManager.TrackingIndexWriter.addDocument(Iterable<? extends IndexableField> d,
Analyzer a) |
long |
NRTManager.TrackingIndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs) |
long |
NRTManager.TrackingIndexWriter.addDocuments(Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer a) |
long |
NRTManager.TrackingIndexWriter.updateDocument(Term t,
Iterable<? extends IndexableField> d) |
long |
NRTManager.TrackingIndexWriter.updateDocument(Term t,
Iterable<? extends IndexableField> d,
Analyzer a) |
long |
NRTManager.TrackingIndexWriter.updateDocuments(Term t,
Iterable<? extends Iterable<? extends IndexableField>> docs) |
long |
NRTManager.TrackingIndexWriter.updateDocuments(Term t,
Iterable<? extends Iterable<? extends IndexableField>> docs,
Analyzer a) |
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.