public class LuceneDocumentScore extends Object implements DocumentScore
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 |
---|---|
SearchDocument |
getDocument()
Returns null if the document no longer exists.
|
float |
getScore() |
Iterable<String> |
getSnippets(String field) |
boolean |
isHighlighted() |
public LuceneDocumentScore(org.apache.lucene.search.ScoreDoc doc, org.apache.lucene.search.highlight.Highlighter highlighter, LuceneIndex index)
public SearchDocument getDocument()
DocumentScore
getDocument
in interface DocumentScore
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 © 2001-2016 Aduna. All Rights Reserved.