public class LuceneDocumentScore extends LuceneDocumentResult implements DocumentScore
index, scoreDoc| Constructor and Description |
|---|
LuceneDocumentScore(org.apache.lucene.search.ScoreDoc doc,
org.apache.lucene.search.highlight.Highlighter highlighter,
LuceneIndex index) |
| Modifier and Type | Method and Description |
|---|---|
float |
getScore() |
Iterable<String> |
getSnippets(String field) |
boolean |
isHighlighted() |
getDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentpublic LuceneDocumentScore(org.apache.lucene.search.ScoreDoc doc,
org.apache.lucene.search.highlight.Highlighter highlighter,
LuceneIndex index)
public float getScore()
getScore in interface DocumentScorepublic boolean isHighlighted()
isHighlighted in interface DocumentScorepublic Iterable<String> getSnippets(String field)
getSnippets in interface DocumentScoreCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.