Uses of Class
org.apache.lucene.document.Document
-
Packages that use Document Package Description org.apache.lucene.classification.document Uses already seen data (the indexed documents) to classify new documents.org.apache.lucene.classification.utils Utilities for evaluation, data preparation, etc.org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.misc.document Misc extensions of the Document/Field API.org.apache.lucene.monitor Monitoring frameworkorg.apache.lucene.search Code to search indices.org.apache.lucene.search.highlight Highlighting search terms.org.apache.lucene.search.matchhighlight This package contains several components useful to build a highlighter on top of theMatches
API.org.apache.lucene.search.spell Suggest alternate spellings for words.org.apache.lucene.search.suggest Support for Autocomplete/Autosuggestorg.apache.lucene.search.suggest.analyzing Analyzer based autosuggest. -
-
Uses of Document in org.apache.lucene.classification.document
Methods in org.apache.lucene.classification.document with parameters of type Document Modifier and Type Method Description private void
SimpleNaiveBayesDocumentClassifier. analyzeSeedDocument(Document inputDocument, java.util.Map<java.lang.String,java.util.List<java.lang.String[]>> fieldName2tokensArray, java.util.Map<java.lang.String,java.lang.Float> fieldName2boost)
This methods performs the analysis for the seed document and extract the boosts if present.ClassificationResult<T>
DocumentClassifier. assignClass(Document document)
Assign a class (with score) to the givenDocument
ClassificationResult<BytesRef>
KNearestNeighborDocumentClassifier. assignClass(Document document)
ClassificationResult<BytesRef>
SimpleNaiveBayesDocumentClassifier. assignClass(Document document)
private java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier. assignNormClasses(Document inputDocument)
java.util.List<ClassificationResult<T>>
DocumentClassifier. getClasses(Document document)
Get all the classes (sorted by score, descending) assigned to the givenDocument
.java.util.List<ClassificationResult<T>>
DocumentClassifier. getClasses(Document document, int max)
Get the firstmax
classes (sorted by score, descending) assigned to the given text String.java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborDocumentClassifier. getClasses(Document document)
java.util.List<ClassificationResult<BytesRef>>
KNearestNeighborDocumentClassifier. getClasses(Document document, int max)
java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier. getClasses(Document document)
java.util.List<ClassificationResult<BytesRef>>
SimpleNaiveBayesDocumentClassifier. getClasses(Document document, int max)
private TopDocs
KNearestNeighborDocumentClassifier. knnSearch(Document document)
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 Document Modifier and Type Method Description private Document
DatasetSplitter. createNewDoc(StoredFields originalFields, FieldType ft, ScoreDoc scoreDoc, java.lang.String[] fieldNames)
-
Uses of Document in org.apache.lucene.document
Fields in org.apache.lucene.document declared as Document Modifier and Type Field Description private Document
DocumentStoredFieldVisitor. doc
Methods in org.apache.lucene.document that return Document Modifier and Type Method Description Document
DocumentStoredFieldVisitor. getDocument()
Retrieve the visited document. -
Uses of Document in org.apache.lucene.index
Methods in org.apache.lucene.index that return Document Modifier and Type Method Description Document
IndexReader. document(int docID)
Deprecated.useIndexReader.storedFields()
to retrieve one or more documentsDocument
IndexReader. document(int docID, java.util.Set<java.lang.String> fieldsToLoad)
Deprecated.useIndexReader.storedFields()
to retrieve one or more documentsDocument
StoredFields. document(int docID)
Returns the stored fields of then
thDocument
in this index.Document
StoredFields. document(int docID, java.util.Set<java.lang.String> fieldsToLoad)
LikeStoredFields.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 Document Modifier and Type Field Description private Document
LazyDocument. doc
Methods in org.apache.lucene.misc.document that return Document Modifier and Type Method Description (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 Document Modifier and Type Field Description (package private) Document
WritableQueryIndex.Indexable. document
Methods in org.apache.lucene.monitor that return Document Modifier and Type Method Description Document
MultipassTermFilteredPresearcher. buildQueryDocument(QueryTree querytree)
protected Document
TermFilteredPresearcher. buildQueryDocument(QueryTree querytree)
Builds aDocument
from the terms extracted from a queryabstract Document
Presearcher. indexQuery(Query query, java.util.Map<java.lang.String,java.lang.String> metadata)
Build a lucene Document to index the query in a Monitor's queryindexDocument
TermFilteredPresearcher. indexQuery(Query query, java.util.Map<java.lang.String,java.lang.String> metadata)
Methods in org.apache.lucene.monitor with parameters of type Document Modifier and Type Method Description private 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
DocumentBatch. of(Analyzer analyzer, Document doc)
Create a DocumentBatch containing a single InputDocumentstatic DocumentBatch
DocumentBatch. of(Analyzer analyzer, Document... docs)
Create a DocumentBatch containing a set of InputDocumentsConstructors in org.apache.lucene.monitor with parameters of type Document Constructor Description Indexable(QueryCacheEntry queryCacheEntry, Document document)
MultiDocumentBatch(Analyzer analyzer, Document... docs)
SingletonDocumentBatch(Analyzer analyzer, Document doc)
-
Uses of Document in org.apache.lucene.search
Methods in org.apache.lucene.search that return Document Modifier and Type Method Description Document
IndexSearcher. doc(int docID)
Deprecated.UseIndexSearcher.storedFields()
to access fields for one or more documentsDocument
IndexSearcher. doc(int docID, java.util.Set<java.lang.String> fieldsToLoad)
Deprecated.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 Document Modifier and Type Method Description static TokenStream
TokenSources. getAnyTokenStream(IndexReader reader, int docId, java.lang.String field, Document document, Analyzer analyzer)
Deprecated.static TokenStream
TokenSources. getTokenStream(Document doc, java.lang.String field, Analyzer analyzer)
Deprecated. -
Uses of Document in org.apache.lucene.search.matchhighlight
Fields in org.apache.lucene.search.matchhighlight declared as Document Modifier and Type Field Description private Document
MatchRegionRetriever.DocumentFieldValueProvider. doc
Fields in org.apache.lucene.search.matchhighlight with type parameters of type Document Modifier and Type Field Description private IOSupplier<Document>
MatchRegionRetriever.DocumentFieldValueProvider. docSupplier
Methods in org.apache.lucene.search.matchhighlight that return Document Modifier and Type Method Description (package private) Document
MatchHighlighter.DocHit. document(java.util.function.Predicate<java.lang.String> needsField)
-
Uses of Document in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell that return Document Modifier and Type Method Description private static Document
SpellChecker. createDocument(java.lang.String text, int ng1, int ng2)
Methods in org.apache.lucene.search.spell with parameters of type Document Modifier and Type Method Description private static void
SpellChecker. addGram(java.lang.String text, Document doc, int ng1, int ng2)
-
Uses of Document in org.apache.lucene.search.suggest
Methods in org.apache.lucene.search.suggest with parameters of type Document Modifier and Type Method Description protected long
DocumentDictionary.DocumentInputIterator. getWeight(Document doc, int docId)
Returns the value of theweightField
for the current document.protected long
DocumentValueSourceDictionary.DocumentValueSourceInputIterator. getWeight(Document doc, int docId)
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 Modifier and Type Method Description private Document
AnalyzingInfixSuggester. buildDocument(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)
-