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.monitor |
Monitoring framework
|
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 |
DocumentStoredFieldVisitor.doc |
private Document |
LazyDocument.doc |
Modifier and Type | Method and Description |
---|---|
Document |
DocumentStoredFieldVisitor.getDocument()
Retrieve the visited document.
|
(package private) Document |
LazyDocument.getDocument()
non-private for test only access
|
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 | Field and Description |
---|---|
(package private) Document |
QueryIndex.Indexable.document |
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) |
abstract 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 queryindex
|
Document |
TermFilteredPresearcher.indexQuery(Query query,
java.util.Map<java.lang.String,java.lang.String> metadata) |
Modifier and Type | Method and Description |
---|---|
private LeafReader |
DocumentBatch.MultiDocumentBatch.build(IndexWriter writer,
Document... docs) |
<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. |
static DocumentBatch |
DocumentBatch.of(Analyzer analyzer,
Document... docs)
Create a DocumentBatch containing a set of InputDocuments
|
static DocumentBatch |
DocumentBatch.of(Analyzer analyzer,
Document doc)
Create a DocumentBatch containing a single InputDocument
|
Constructor and Description |
---|
Indexable(QueryCacheEntry queryCacheEntry,
Document document) |
MultiDocumentBatch(Analyzer analyzer,
Document... docs) |
SingletonDocumentBatch(Analyzer analyzer,
Document doc) |
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 |
DocumentDictionary.DocumentInputIterator.getWeight(Document doc,
int docId)
Returns the value of the
weightField for the current document. |
protected long |
DocumentValueSourceDictionary.DocumentValueSourceInputIterator.getWeight(Document doc,
int docId)
Returns the weight for the current
docId as computed
by the weightsValueSource |
Modifier and Type | Method and Description |
---|---|
private Document |
AnalyzingInfixSuggester.buildDocument(BytesRef text,
java.util.Set<BytesRef> contexts,
long weight,
BytesRef payload) |