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() |
getDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocument
public 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 DocumentScore
public boolean isHighlighted()
isHighlighted
in interface DocumentScore
public Iterable<String> getSnippets(String property)
getSnippets
in interface DocumentScore
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.