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 voidSimpleNaiveBayesDocumentClassifier.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 givenDocumentKNearestNeighborDocumentClassifier.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 firstmaxclasses (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 TopDocsReturns 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 DocumentDatasetSplitter.createNewDoc(StoredFields originalFields, 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 DocumentModifier and TypeMethodDescriptionfinal DocumentIndexReader.document(int docID) Deprecated.final DocumentDeprecated.useIndexReader.storedFields()to retrieve one or more documentsfinal DocumentStoredFields.document(int docID) Returns the stored fields of thenthDocumentin this index.final DocumentLikeStoredFields.document(int)but only loads the specified fields. -
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) DocumentLazyDocument.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 DocumentWritableQueryIndex.Indexable.documentMethods in org.apache.lucene.monitor that return DocumentModifier and TypeMethodDescriptionMultipassTermFilteredPresearcher.buildQueryDocument(QueryTree querytree) protected DocumentTermFilteredPresearcher.buildQueryDocument(QueryTree querytree) Builds aDocumentfrom the terms extracted from a queryabstract DocumentPresearcher.indexQuery(Query query, Map<String, String> metadata) Build a lucene Document to index the query in a Monitor's queryindexfinal DocumentTermFilteredPresearcher.indexQuery(Query query, Map<String, String> metadata) Methods in org.apache.lucene.monitor with parameters of type DocumentModifier and TypeMethodDescriptionprivate LeafReaderDocumentBatch.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 singleDocumentagainst 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 ofDocuments against the queryindex, calling aCandidateMatcherproduced by the suppliedMatcherFactoryfor each possible matching query.<T extends QueryMatch>
MatchingQueries<T> Monitor.match(Document doc, MatcherFactory<T> factory) Match a singleDocumentagainst the queryindex, calling aCandidateMatcherproduced by the suppliedMatcherFactoryfor each possible matching query.static DocumentBatchCreate a DocumentBatch containing a single InputDocumentstatic DocumentBatchCreate a DocumentBatch containing a set of InputDocumentsConstructors in org.apache.lucene.monitor with parameters of type DocumentModifierConstructorDescriptionprivateIndexable(QueryCacheEntry queryCacheEntry, Document document) (package private)MultiDocumentBatch(Analyzer analyzer, Document... docs) privateSingletonDocumentBatch(Analyzer analyzer, Document doc) -
Uses of Document in org.apache.lucene.search
Methods in org.apache.lucene.search that return DocumentModifier and TypeMethodDescriptionIndexSearcher.doc(int docID) Deprecated.UseIndexSearcher.storedFields()to access fields for one or more documentsDeprecated.UseIndexSearcher.storedFields()to access fields for one or more documents -
Uses of Document in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type DocumentModifier and TypeMethodDescriptionstatic TokenStreamTokenSources.getAnyTokenStream(IndexReader reader, int docId, String field, Document document, Analyzer analyzer) Deprecated.static TokenStreamTokenSources.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 DocumentMatchRegionRetriever.DocumentFieldValueProvider.docFields in org.apache.lucene.search.matchhighlight with type parameters of type DocumentModifier and TypeFieldDescriptionprivate final IOSupplier<Document> MatchRegionRetriever.DocumentFieldValueProvider.docSupplierMethods 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 DocumentSpellChecker.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 longReturns the value of theweightFieldfor the current document.protected longReturns the weight for the currentdocIdas computed by theweightsValueSource -
Uses of Document in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing that return Document
IndexReader.storedFields()to retrieve one or more documents