public class ElasticsearchDocumentScore extends Object implements DocumentScore
Constructor and Description |
---|
ElasticsearchDocumentScore(org.elasticsearch.search.SearchHit hit) |
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 ElasticsearchDocumentScore(org.elasticsearch.search.SearchHit hit)
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.