Package | Description |
---|---|
org.apache.lucene.classification.document |
Uses already seen data (the indexed documents) to classify new documents.
|
org.apache.lucene.document |
The logical representation of a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.monitor |
Monitoring framework
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.suggest |
Support for Autocomplete/Autosuggest
|
Modifier and Type | Method and Description |
---|---|
ClassificationResult<BytesRef> |
SimpleNaiveBayesDocumentClassifier.assignClass(Document document) |
ClassificationResult<BytesRef> |
KNearestNeighborDocumentClassifier.assignClass(Document document) |
ClassificationResult<T> |
DocumentClassifier.assignClass(Document document)
Assign a class (with score) to the given
Document |
List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document) |
List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document) |
List<ClassificationResult<T>> |
DocumentClassifier.getClasses(Document document)
Get all the classes (sorted by score, descending) assigned to the given
Document . |
List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document,
int max) |
List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document,
int max) |
List<ClassificationResult<T>> |
DocumentClassifier.getClasses(Document document,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
Modifier and Type | Method and Description |
---|---|
Document |
DocumentStoredFieldVisitor.getDocument()
Retrieve the visited document.
|
Modifier and Type | Method and Description |
---|---|
Document |
IndexReader.document(int docID)
Returns the stored fields of the
n th
Document in this index. |
Document |
IndexReader.document(int docID,
Set<String> fieldsToLoad)
Like
IndexReader.document(int) but only loads the specified
fields. |
Modifier and Type | Method and Description |
---|---|
protected Document |
TermFilteredPresearcher.buildQueryDocument(QueryTree querytree)
Builds a
Document from the terms extracted from a query |
Document |
MultipassTermFilteredPresearcher.buildQueryDocument(QueryTree querytree) |
Document |
TermFilteredPresearcher.indexQuery(Query query,
Map<String,String> metadata) |
abstract Document |
Presearcher.indexQuery(Query query,
Map<String,String> metadata)
Build a lucene Document to index the query in a Monitor's queryindex
|
Modifier and Type | Method and Description |
---|---|
<T extends QueryMatch> |
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> |
Monitor.debug(Document doc,
MatcherFactory<T> factory)
Match a single
Document against the queries stored in the Monitor, also returning information
about which queries were selected by the presearcher, and why. |
<T extends QueryMatch> |
Monitor.match(Document[] docs,
MatcherFactory<T> factory)
Match an array of
Document s against the queryindex, calling a CandidateMatcher produced by the
supplied MatcherFactory for each possible matching query. |
<T extends QueryMatch> |
Monitor.match(Document doc,
MatcherFactory<T> factory)
Match a single
Document against the queryindex, calling a CandidateMatcher produced by the
supplied MatcherFactory for each possible matching query. |
Modifier and Type | Method and Description |
---|---|
Document |
IndexSearcher.doc(int docID)
Sugar for
.getIndexReader().document(docID) |
Document |
IndexSearcher.doc(int docID,
Set<String> fieldsToLoad)
Sugar for
.getIndexReader().document(docID, fieldsToLoad) |
Modifier and Type | Method and Description |
---|---|
static 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.
|
Modifier and Type | Method and Description |
---|---|
protected long |
DocumentDictionary.DocumentInputIterator.getWeight(Document doc,
int docId)
Returns the value of the
weightField for the current document. |
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.