Package | Description |
---|---|
org.apache.lucene.benchmark.byTask.feeds |
Sources for benchmark inputs: documents and queries.
|
org.apache.lucene.benchmark.byTask.tasks |
Extendable benchmark tasks.
|
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 |
This package contains a single proximity query, TermAutomatonQuery.
|
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
|
org.apache.lucene.util |
General test support.
|
Modifier and Type | Method and Description |
---|---|
Document |
DocMaker.makeDocument()
Creates a
Document object ready for indexing. |
Document |
SpatialDocMaker.makeDocument() |
Document |
DocMaker.makeDocument(int size)
Same as
DocMaker.makeDocument() , only this method creates a document of the
given size input by size . |
Document |
SpatialDocMaker.makeDocument(int size) |
Modifier and Type | Field and Description |
---|---|
protected Document |
AddDocTask.doc
volatile data passed between setup(), doLogic(), tearDown().
|
Modifier and Type | Method and Description |
---|---|
protected Document |
SearchTravRetLoadFieldSelectorTask.retrieveDoc(IndexReader ir,
int id) |
protected Document |
ReadTask.retrieveDoc(IndexReader ir,
int id) |
Modifier and Type | Method and Description |
---|---|
abstract int |
BenchmarkHighlighter.doHighlight(IndexReader reader,
int doc,
String field,
Document document,
Analyzer analyzer,
String text) |
protected Collection<String> |
SearchTravRetVectorHighlightTask.getFieldsToHighlight(Document document) |
protected Collection<String> |
SearchTravRetHighlightTask.getFieldsToHighlight(Document document) |
protected Collection<String> |
ReadTask.getFieldsToHighlight(Document document)
Define the fields to highlight.
|
protected PrintWriter |
WriteLineDocTask.lineFileOut(Document doc)
Selects output line file by written doc.
|
protected PrintWriter |
WriteEnwikiLineDocTask.lineFileOut(Document doc) |
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 |
---|---|
protected Document |
BaseTermVectorsFormatTestCase.addId(Document doc,
String id) |
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. |
Document |
BaseTermVectorsFormatTestCase.RandomDocument.toDocument() |
Modifier and Type | Method and Description |
---|---|
protected Document |
BaseTermVectorsFormatTestCase.addId(Document doc,
String id) |
protected void |
BaseTermVectorsFormatTestCase.addRandomFields(Document doc) |
protected void |
BaseDocValuesFormatTestCase.addRandomFields(Document doc) |
protected void |
BasePostingsFormatTestCase.addRandomFields(Document doc) |
protected void |
BaseStoredFieldsFormatTestCase.addRandomFields(Document d) |
protected void |
BaseNormsFormatTestCase.addRandomFields(Document doc) |
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. |
Modifier and Type | Method and Description |
---|---|
static Document |
TestUtil.cloneDocument(Document doc1) |
Document |
LineFileDocs.nextDoc()
Note: Document instance is re-used per-thread
|
Modifier and Type | Method and Description |
---|---|
static Document |
TestUtil.cloneDocument(Document doc1) |
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.