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 aDocumentfor indexing and searching.org.apache.lucene.index Code to maintain and access indices.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.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 voidSimpleNaiveBayesDocumentClassifier. 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 givenDocumentClassificationResult<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 firstmaxclasses (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 TopDocsKNearestNeighborDocumentClassifier. 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 DocumentDatasetSplitter. createNewDoc(IndexReader originalIndex, 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 DocumentDocumentStoredFieldVisitor. docprivate DocumentLazyDocument. docMethods in org.apache.lucene.document that return Document Modifier and Type Method Description DocumentDocumentStoredFieldVisitor. getDocument()Retrieve the visited document.(package private) DocumentLazyDocument. getDocument()non-private for test only access -
Uses of Document in org.apache.lucene.index
Methods in org.apache.lucene.index that return Document Modifier and Type Method Description DocumentIndexReader. document(int docID)Returns the stored fields of thenthDocumentin this index.DocumentIndexReader. document(int docID, java.util.Set<java.lang.String> fieldsToLoad)LikeIndexReader.document(int)but only loads the specified fields. -
Uses of Document in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as Document Modifier and Type Field Description (package private) DocumentQueryIndex.Indexable. documentMethods in org.apache.lucene.monitor that return Document Modifier and Type Method Description DocumentMultipassTermFilteredPresearcher. buildQueryDocument(QueryTree querytree)protected DocumentTermFilteredPresearcher. buildQueryDocument(QueryTree querytree)Builds aDocumentfrom the terms extracted from a queryabstract DocumentPresearcher. 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 queryindexDocumentTermFilteredPresearcher. 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 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 DocumentBatchDocumentBatch. of(Analyzer analyzer, Document doc)Create a DocumentBatch containing a single InputDocumentstatic DocumentBatchDocumentBatch. 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 DocumentIndexSearcher. doc(int docID)Sugar for.getIndexReader().document(docID)DocumentIndexSearcher. doc(int docID, java.util.Set<java.lang.String> fieldsToLoad)Sugar for.getIndexReader().document(docID, fieldsToLoad) -
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, java.lang.String field, Document document, Analyzer analyzer)Deprecated.static TokenStreamTokenSources. getTokenStream(Document doc, java.lang.String field, Analyzer analyzer)Deprecated. -
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 DocumentSpellChecker. 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 voidSpellChecker. 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 longDocumentDictionary.DocumentInputIterator. getWeight(Document doc, int docId)Returns the value of theweightFieldfor the current document.protected longDocumentValueSourceDictionary.DocumentValueSourceInputIterator. getWeight(Document doc, int docId)Returns 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 Modifier and Type Method Description private DocumentAnalyzingInfixSuggester. buildDocument(BytesRef text, java.util.Set<BytesRef> contexts, long weight, BytesRef payload)
-