Class ElasticsearchDocumentScore
java.lang.Object
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentResult
org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentScore
- All Implemented Interfaces:
DocumentResult
,DocumentScore
public class ElasticsearchDocumentScore
extends ElasticsearchDocumentResult
implements DocumentScore
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentResult
hit
-
Constructor Summary
ConstructorDescriptionElasticsearchDocumentScore
(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String, ? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper) -
Method Summary
Methods inherited from class org.eclipse.rdf4j.sail.elasticsearch.ElasticsearchDocumentResult
getDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.sail.lucene.DocumentResult
getDocument
-
Constructor Details
-
ElasticsearchDocumentScore
public ElasticsearchDocumentScore(org.elasticsearch.search.SearchHit hit, com.google.common.base.Function<? super String, ? extends org.locationtech.spatial4j.context.SpatialContext> geoContextMapper)
-
-
Method Details
-
getScore
public float getScore()- Specified by:
getScore
in interfaceDocumentScore
-
isHighlighted
public boolean isHighlighted()- Specified by:
isHighlighted
in interfaceDocumentScore
-
getSnippets
- Specified by:
getSnippets
in interfaceDocumentScore
-