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() |
getDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocument
public LuceneDocumentScore(org.apache.lucene.search.ScoreDoc doc, org.apache.lucene.search.highlight.Highlighter highlighter, LuceneIndex index)
public float getScore()
getScore
in interface DocumentScore
public boolean isHighlighted()
isHighlighted
in interface DocumentScore
public Iterable<String> getSnippets(String field)
getSnippets
in interface DocumentScore
Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.