public class LuceneDocumentResult extends Object implements DocumentResult
Modifier and Type | Field and Description |
---|---|
protected LuceneIndex |
index |
protected org.apache.lucene.search.ScoreDoc |
scoreDoc |
Constructor and Description |
---|
LuceneDocumentResult(org.apache.lucene.search.ScoreDoc doc,
LuceneIndex index,
Set<String> fields) |
Modifier and Type | Method and Description |
---|---|
SearchDocument |
getDocument()
Returns null if the document no longer exists.
|
protected final org.apache.lucene.search.ScoreDoc scoreDoc
protected final LuceneIndex index
public LuceneDocumentResult(org.apache.lucene.search.ScoreDoc doc, LuceneIndex index, Set<String> fields)
public SearchDocument getDocument()
DocumentResult
getDocument
in interface DocumentResult
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.