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 a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.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/Autosuggest
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
Modifier and Type | Method and 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 given
Document |
ClassificationResult<BytesRef> |
SimpleNaiveBayesDocumentClassifier.assignClass(Document document) |
ClassificationResult<BytesRef> |
KNearestNeighborDocumentClassifier.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 given
Document . |
java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.getClasses(Document document) |
java.util.List<ClassificationResult<T>> |
DocumentClassifier.getClasses(Document document,
int max)
Get the first
max classes (sorted by score, descending) assigned to the given text String. |
java.util.List<ClassificationResult<BytesRef>> |
SimpleNaiveBayesDocumentClassifier.getClasses(Document document,
int max) |
java.util.List<ClassificationResult<BytesRef>> |
KNearestNeighborDocumentClassifier.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
|
Modifier and Type | Method and Description |
---|---|
private Document |
DatasetSplitter.createNewDoc(IndexReader originalIndex,
FieldType ft,
ScoreDoc scoreDoc,
java.lang.String[] fieldNames) |
Modifier and Type | Field and Description |
---|---|
private Document |
LazyDocument.doc |
private Document |
DocumentStoredFieldVisitor.doc |
Modifier and Type | Method and Description |
---|---|
(package private) Document |
LazyDocument.getDocument()
non-private for test only access
|
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,
java.util.Set<java.lang.String> fieldsToLoad)
Like
IndexReader.document(int) but only loads the specified
fields. |
Modifier and Type | Method and Description |
---|---|
Document |
IndexSearcher.doc(int docID)
Sugar for
.getIndexReader().document(docID) |
Document |
IndexSearcher.doc(int docID,
java.util.Set<java.lang.String> fieldsToLoad)
Sugar for
.getIndexReader().document(docID, fieldsToLoad) |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
private static Document |
SpellChecker.createDocument(java.lang.String text,
int ng1,
int ng2) |
Modifier and Type | Method and Description |
---|---|
private static void |
SpellChecker.addGram(java.lang.String text,
Document doc,
int ng1,
int ng2) |
Modifier and Type | Method and Description |
---|---|
protected long |
DocumentValueSourceDictionary.DocumentValueSourceInputIterator.getWeight(Document doc,
int docId)
Returns the weight for the current
docId as computed
by the weightsValueSource |
protected long |
DocumentDictionary.DocumentInputIterator.getWeight(Document doc,
int docId)
Returns the value of the
weightField for the current document. |
Modifier and Type | Method and Description |
---|---|
private Document |
AnalyzingInfixSuggester.buildDocument(BytesRef text,
java.util.Set<BytesRef> contexts,
long weight,
BytesRef payload) |