Uses of Class
org.apache.lucene.document.Document
-
Packages that use Document 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.facet.index Indexing of document categoriesorg.apache.lucene.index Code to maintain and access indices.org.apache.lucene.index.pruning Static Index Pruning Toolsorg.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.store.instantiated InstantiatedIndex, alternative RAM store for small corpora.org.apache.lucene.util Some utility classes. -
-
Uses of Document in org.apache.lucene.benchmark.byTask.feeds
Methods in org.apache.lucene.benchmark.byTask.feeds that return Document Modifier and Type Method Description DocumentDocMaker. makeDocument()Creates aDocumentobject ready for indexing.DocumentDocMaker. makeDocument(int size)Same asDocMaker.makeDocument(), only this method creates a document of the given size input bysize. -
Uses of Document in org.apache.lucene.benchmark.byTask.tasks
Fields in org.apache.lucene.benchmark.byTask.tasks declared as Document Modifier and Type Field Description protected DocumentAddDocTask. docvolatile data passed between setup(), doLogic(), tearDown().Methods in org.apache.lucene.benchmark.byTask.tasks that return Document Modifier and Type Method Description protected DocumentReadTask. retrieveDoc(IndexReader ir, int id)protected DocumentSearchTravRetLoadFieldSelectorTask. retrieveDoc(IndexReader ir, int id)Methods in org.apache.lucene.benchmark.byTask.tasks with parameters of type Document Modifier and Type Method Description abstract intBenchmarkHighlighter. doHighlight(IndexReader reader, int doc, String field, Document document, Analyzer analyzer, String text)protected Collection<String>ReadTask. getFieldsToHighlight(Document document)Define the fields to highlight.protected Collection<String>SearchTravRetHighlightTask. getFieldsToHighlight(Document document)protected Collection<String>SearchTravRetVectorHighlightTask. getFieldsToHighlight(Document document) -
Uses of Document in org.apache.lucene.facet.index
Methods in org.apache.lucene.facet.index that return Document Modifier and Type Method Description DocumentCategoryDocumentBuilder. build(Document doc)Adds the fields created in one of the "set" methods to the documentMethods in org.apache.lucene.facet.index with parameters of type Document Modifier and Type Method Description DocumentCategoryDocumentBuilder. build(Document doc)Adds the fields created in one of the "set" methods to the document -
Uses of Document in org.apache.lucene.index
Methods in org.apache.lucene.index that return Document Modifier and Type Method Description DocumentFilterIndexReader. document(int n, FieldSelector fieldSelector)DocumentIndexReader. document(int n)Returns the stored fields of thenthDocumentin this index.abstract DocumentIndexReader. document(int n, FieldSelector fieldSelector)Get theDocumentat thenth position.DocumentMultiReader. document(int n, FieldSelector fieldSelector)DocumentParallelReader. document(int n, FieldSelector fieldSelector)DocumentPruningReader. document(int n, FieldSelector fieldSelector)Applies aStorePruningPolicyto stored fields of a document.DocumentSegmentReader. document(int n, FieldSelector fieldSelector)Methods in org.apache.lucene.index with parameters of type Document Modifier and Type Method Description voidFieldInfos. add(Document doc)Adds field info for a Document.voidIndexWriter. addDocument(Document doc)Adds a document to this index.voidIndexWriter. addDocument(Document doc, Analyzer analyzer)Adds a document to this index, using the provided analyzer instead of the value ofIndexWriter.getAnalyzer().voidRandomIndexWriter. addDocument(Document doc)Adds a Document.protected voidThreadedIndexingAndSearchingTestCase. addDocument(Term id, Document doc)voidIndexWriter. updateDocument(Term term, Document doc)Updates a document by first deleting the document(s) containingtermand then adding the new document.voidIndexWriter. updateDocument(Term term, Document doc, Analyzer analyzer)Updates a document by first deleting the document(s) containingtermand then adding the new document.voidRandomIndexWriter. updateDocument(Term t, Document doc)Updates a document.protected voidThreadedIndexingAndSearchingTestCase. updateDocument(Term term, Document doc)Method parameters in org.apache.lucene.index with type arguments of type Document Modifier and Type Method Description voidIndexWriter. addDocuments(Collection<Document> 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.voidIndexWriter. addDocuments(Collection<Document> 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.voidRandomIndexWriter. addDocuments(Collection<Document> docs)protected voidThreadedIndexingAndSearchingTestCase. addDocuments(Term id, Collection<Document> docs)voidIndexWriter. updateDocuments(Term delTerm, Collection<Document> 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.voidIndexWriter. updateDocuments(Term delTerm, Collection<Document> 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.voidRandomIndexWriter. updateDocuments(Term delTerm, Collection<Document> docs)protected voidThreadedIndexingAndSearchingTestCase. updateDocuments(Term id, Collection<Document> docs) -
Uses of Document in org.apache.lucene.index.pruning
Methods in org.apache.lucene.index.pruning that return Document Modifier and Type Method Description DocumentStorePruningPolicy. pruneDocument(int doc, FieldSelector parent)Prune stored fields of a document. -
Uses of Document in org.apache.lucene.search
Methods in org.apache.lucene.search that return Document Modifier and Type Method Description DocumentIndexSearcher. doc(int docID)DocumentIndexSearcher. doc(int docID, FieldSelector fieldSelector)DocumentMultiSearcher. doc(int n)Deprecated.DocumentMultiSearcher. doc(int n, FieldSelector fieldSelector)Deprecated.DocumentRemoteSearchable. doc(int i)Deprecated.DocumentRemoteSearchable. doc(int i, FieldSelector fieldSelector)Deprecated.DocumentSearchable. doc(int i)Deprecated.Returns the stored fields of documenti.DocumentSearchable. doc(int n, FieldSelector fieldSelector)Deprecated.Get theDocumentat thenth position.abstract DocumentSearcher. doc(int i)Deprecated.abstract DocumentSearcher. doc(int docid, FieldSelector fieldSelector)Deprecated.Methods in org.apache.lucene.search with parameters of type Document Modifier and Type Method Description longNRTManager.TrackingIndexWriter. addDocument(Document d)longNRTManager.TrackingIndexWriter. addDocument(Document d, Analyzer a)longNRTManager.TrackingIndexWriter. updateDocument(Term t, Document d)longNRTManager.TrackingIndexWriter. updateDocument(Term t, Document d, Analyzer a)Method parameters in org.apache.lucene.search with type arguments of type Document Modifier and Type Method Description longNRTManager.TrackingIndexWriter. addDocuments(Collection<Document> docs)longNRTManager.TrackingIndexWriter. addDocuments(Collection<Document> docs, Analyzer a)longNRTManager.TrackingIndexWriter. updateDocuments(Term t, Collection<Document> docs)longNRTManager.TrackingIndexWriter. updateDocuments(Term t, Collection<Document> docs, Analyzer a) -
Uses of Document in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type Document Modifier and Type Method Description static TokenStreamTokenSources. 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 inDocumentto retrieve the TokenStream.static TokenStreamTokenSources. getTokenStream(Document doc, String field, Analyzer analyzer) -
Uses of Document in org.apache.lucene.store.instantiated
Methods in org.apache.lucene.store.instantiated that return Document Modifier and Type Method Description DocumentInstantiatedIndexReader. document(int n, FieldSelector fieldSelector)Deprecated.Return theDocumentat thenth position.DocumentInstantiatedDocument. getDocument()Methods in org.apache.lucene.store.instantiated with parameters of type Document Modifier and Type Method Description voidInstantiatedIndexWriter. addDocument(Document doc)Deprecated.Adds a document to this index.voidInstantiatedIndexWriter. addDocument(Document doc, Analyzer analyzer)Deprecated.Adds a document to this index, using the provided analyzer instead of the value ofInstantiatedIndexWriter.getAnalyzer().voidInstantiatedIndexWriter. updateDocument(Term term, Document doc)Deprecated.voidInstantiatedIndexWriter. updateDocument(Term term, Document doc, Analyzer analyzer)Deprecated.Constructors in org.apache.lucene.store.instantiated with parameters of type Document Constructor Description InstantiatedDocument(Document document) -
Uses of Document in org.apache.lucene.util
Methods in org.apache.lucene.util that return Document Modifier and Type Method Description static Document_TestUtil. cloneDocument(Document doc1)DocumentLineFileDocs. nextDoc()Note: Document instance is re-used per-threadMethods in org.apache.lucene.util with parameters of type Document Modifier and Type Method Description static Document_TestUtil. cloneDocument(Document doc1)
-