public class ElasticsearchDocumentScore extends ElasticsearchDocumentResult implements DocumentScore
hit| Constructor and Description |
|---|
ElasticsearchDocumentScore(org.elasticsearch.search.SearchHit hit,
com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper) |
| Modifier and Type | Method and Description |
|---|---|
float |
getScore() |
Iterable<String> |
getSnippets(String property) |
boolean |
isHighlighted() |
getDocumentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentpublic ElasticsearchDocumentScore(org.elasticsearch.search.SearchHit hit,
com.google.common.base.Function<? super String,? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)
public float getScore()
getScore in interface DocumentScorepublic boolean isHighlighted()
isHighlighted in interface DocumentScorepublic Iterable<String> getSnippets(String property)
getSnippets in interface DocumentScoreCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.