Package | Description |
---|---|
org.apache.lucene.document |
Misc extensions of the Document/Field API.
|
org.apache.lucene.facet |
faceted search
|
org.apache.lucene.index |
Misc index tools and index support.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
The highlight package contains classes to provide "keyword in context" features
typically used to highlight search terms in the text of results pages.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentStoredFieldVisitor.getDocument()
Retrieve the visited document.
|
Modifier and Type | Method and Description |
---|---|
Document |
FacetsConfig.build(Document doc)
Translates any added
FacetField s into normal fields for indexing;
only use this version if you did not add any taxonomy-based fields (
FacetField or AssociationFacetField ). |
Document |
FacetsConfig.build(TaxonomyWriter taxoWriter,
Document doc)
Translates any added
FacetField s into normal fields for indexing. |
Modifier and Type | Method and Description |
---|---|
Document |
FacetsConfig.build(Document doc)
Translates any added
FacetField s into normal fields for indexing;
only use this version if you did not add any taxonomy-based fields (
FacetField or AssociationFacetField ). |
Document |
FacetsConfig.build(TaxonomyWriter taxoWriter,
Document doc)
Translates any added
FacetField s into normal fields for indexing. |
Modifier and Type | Method and Description |
---|---|
Document |
IndexReader.document(int docID)
Returns the stored fields of the
n th
Document in this index. |
Document |
IndexReader.document(int docID,
Set<String> fieldsToLoad)
Like
IndexReader.document(int) but only loads the specified
fields. |
Modifier and Type | Method and Description |
---|---|
Document |
IndexSearcher.doc(int docID)
Sugar for
.getIndexReader().document(docID) |
Document |
IndexSearcher.doc(int docID,
Set<String> fieldsToLoad)
Sugar for
.getIndexReader().document(docID, fieldsToLoad) |
Document |
IndexSearcher.document(int docID,
Set<String> fieldsToLoad)
Deprecated.
Use
IndexSearcher.doc(int, Set) instead. |
Modifier and Type | Method and Description |
---|---|
static TokenStream |
TokenSources.getAnyTokenStream(IndexReader reader,
int docId,
String field,
Document doc,
Analyzer analyzer)
A convenience method that tries to first get a TermPositionVector for the
specified docId, then, falls back to using the passed in
Document to retrieve the TokenStream. |
static TokenStream |
TokenSources.getTokenStream(Document doc,
String field,
Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
protected long |
DocumentDictionary.DocumentInputIterator.getWeight(Document doc,
int docId)
Returns the value of the
weightField for the current document. |
Copyright © 2000-2015 The Apache Software Foundation. All Rights Reserved.