Uses of Class
org.apache.lucene.document.Document
Packages that use Document
Package
Description
Uses already seen data (the indexed documents) to classify new documents.
Utilities for evaluation, data preparation, etc.
The logical representation of a
Document
for indexing and
searching.Code to maintain and access indices.
Misc extensions of the Document/Field API.
Monitoring framework
Code to search indices.
Highlighting search terms.
This package contains several components useful to build a highlighter on top of the
Matches
API.Suggest alternate spellings for words.
Support for Autocomplete/Autosuggest
Analyzer based autosuggest.
-
Uses of Document in org.apache.lucene.classification.document
Methods in org.apache.lucene.classification.document with parameters of type DocumentModifier and TypeMethodDescriptionprivate void
SimpleNaiveBayesDocumentClassifier.analyzeSeedDocument
(Document inputDocument, Map<String, List<String[]>> fieldName2tokensArray, Map<String, Float> fieldName2boost) This methods performs the analysis for the seed document and extract the boosts if present.DocumentClassifier.assignClass
(Document document) Assign a class (with score) to the givenDocument
KNearestNeighborDocumentClassifier.assignClass
(Document document) SimpleNaiveBayesDocumentClassifier.assignClass
(Document document) private List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier.assignNormClasses
(Document inputDocument) DocumentClassifier.getClasses
(Document document) Get all the classes (sorted by score, descending) assigned to the givenDocument
.DocumentClassifier.getClasses
(Document document, int max) Get the firstmax
classes (sorted by score, descending) assigned to the given text String.KNearestNeighborDocumentClassifier.getClasses
(Document document) KNearestNeighborDocumentClassifier.getClasses
(Document document, int max) SimpleNaiveBayesDocumentClassifier.getClasses
(Document document) SimpleNaiveBayesDocumentClassifier.getClasses
(Document document, int max) private TopDocs
Returns the top k results from a More Like This query based on the input document -
Uses of Document in org.apache.lucene.classification.utils
Methods in org.apache.lucene.classification.utils that return DocumentModifier and TypeMethodDescriptionprivate Document
DatasetSplitter.createNewDoc
(IndexReader originalIndex, FieldType ft, ScoreDoc scoreDoc, String[] fieldNames) -
Uses of Document in org.apache.lucene.document
Fields in org.apache.lucene.document declared as DocumentMethods in org.apache.lucene.document that return DocumentModifier and TypeMethodDescriptionDocumentStoredFieldVisitor.getDocument()
Retrieve the visited document. -
Uses of Document in org.apache.lucene.index
Methods in org.apache.lucene.index that return Document -
Uses of Document in org.apache.lucene.misc.document
Fields in org.apache.lucene.misc.document declared as DocumentMethods in org.apache.lucene.misc.document that return DocumentModifier and TypeMethodDescription(package private) Document
LazyDocument.getDocument()
non-private for test only access -
Uses of Document in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as DocumentModifier and TypeFieldDescription(package private) final Document
WritableQueryIndex.Indexable.document
Methods in org.apache.lucene.monitor that return DocumentModifier and TypeMethodDescriptionMultipassTermFilteredPresearcher.buildQueryDocument
(QueryTree querytree) protected Document
TermFilteredPresearcher.buildQueryDocument
(QueryTree querytree) Builds aDocument
from the terms extracted from a queryabstract Document
Presearcher.indexQuery
(Query query, Map<String, String> metadata) Build a lucene Document to index the query in a Monitor's queryindexfinal Document
TermFilteredPresearcher.indexQuery
(Query query, Map<String, String> metadata) Methods in org.apache.lucene.monitor with parameters of type DocumentModifier and TypeMethodDescriptionprivate LeafReader
DocumentBatch.MultiDocumentBatch.build
(IndexWriter writer, Document... docs) <T extends QueryMatch>
PresearcherMatches<T>Monitor.debug
(Document[] docs, MatcherFactory<T> factory) Match a DocumentBatch against the queries stored in the Monitor, also returning information about which queries were selected by the presearcher, and why.<T extends QueryMatch>
PresearcherMatches<T>Monitor.debug
(Document doc, MatcherFactory<T> factory) Match a singleDocument
against the queries stored in the Monitor, also returning information about which queries were selected by the presearcher, and why.<T extends QueryMatch>
MultiMatchingQueries<T>Monitor.match
(Document[] docs, MatcherFactory<T> factory) Match an array ofDocument
s against the queryindex, calling aCandidateMatcher
produced by the suppliedMatcherFactory
for each possible matching query.<T extends QueryMatch>
MatchingQueries<T>Monitor.match
(Document doc, MatcherFactory<T> factory) Match a singleDocument
against the queryindex, calling aCandidateMatcher
produced by the suppliedMatcherFactory
for each possible matching query.static DocumentBatch
Create a DocumentBatch containing a single InputDocumentstatic DocumentBatch
Create a DocumentBatch containing a set of InputDocumentsConstructors in org.apache.lucene.monitor with parameters of type DocumentModifierConstructorDescriptionprivate
Indexable
(QueryCacheEntry queryCacheEntry, Document document) (package private)
MultiDocumentBatch
(Analyzer analyzer, Document... docs) private
SingletonDocumentBatch
(Analyzer analyzer, Document doc) -
Uses of Document in org.apache.lucene.search
Methods in org.apache.lucene.search that return Document -
Uses of Document in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type DocumentModifier and TypeMethodDescriptionstatic TokenStream
TokenSources.getAnyTokenStream
(IndexReader reader, int docId, String field, Document document, Analyzer analyzer) Deprecated.static TokenStream
TokenSources.getTokenStream
(Document doc, String field, Analyzer analyzer) Deprecated. -
Uses of Document in org.apache.lucene.search.matchhighlight
Fields in org.apache.lucene.search.matchhighlight declared as DocumentModifier and TypeFieldDescriptionprivate Document
MatchRegionRetriever.DocumentFieldValueProvider.doc
Fields in org.apache.lucene.search.matchhighlight with type parameters of type DocumentModifier and TypeFieldDescriptionprivate final IOSupplier<Document>
MatchRegionRetriever.DocumentFieldValueProvider.docSupplier
Methods in org.apache.lucene.search.matchhighlight that return Document -
Uses of Document in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell that return DocumentModifier and TypeMethodDescriptionprivate static Document
SpellChecker.createDocument
(String text, int ng1, int ng2) Methods in org.apache.lucene.search.spell with parameters of type Document -
Uses of Document in org.apache.lucene.search.suggest
Methods in org.apache.lucene.search.suggest with parameters of type DocumentModifier and TypeMethodDescriptionprotected long
Returns the value of theweightField
for the current document.protected long
Returns the weight for the currentdocId
as computed by theweightsValueSource
-
Uses of Document in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing that return Document