org.eclipse.rdf4j.sail.solr

## Class SolrDocumentScore

- java.lang.Object
- - org.eclipse.rdf4j.sail.solr.SolrDocumentResult
  - - org.eclipse.rdf4j.sail.solr.SolrDocumentScore

- All Implemented Interfaces:
    DocumentResult, DocumentScore

      public class SolrDocumentScore
      extends SolrDocumentResult
      implements DocumentScore

- - ### Field Summary

    - ### Fields inherited from class org.eclipse.rdf4j.sail.solr.SolrDocumentResult

      `doc`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SolrDocumentScore(SolrSearchDocument doc, Map<String,List<String>> highlighting)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `float` | `getScore()`
    `Iterable<String>` | `getSnippets(String field)`
    `boolean` | `isHighlighted()`

    - ### Methods inherited from class org.eclipse.rdf4j.sail.solr.SolrDocumentResult

      `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 Detail

    - #### SolrDocumentScore

          public SolrDocumentScore(SolrSearchDocument doc,
                                   Map<String,List<String>> highlighting)

  - ### Method Detail

    - #### getScore

          public float getScore()

      Specified by:
        `getScore` in interface `DocumentScore`

    - #### isHighlighted

          public boolean isHighlighted()

      Specified by:
        `isHighlighted` in interface `DocumentScore`

    - #### getSnippets

          public Iterable<String> getSnippets(String field)

      Specified by:
        `getSnippets` in interface `DocumentScore`

Copyright © 2015-2021 Eclipse Foundation. All Rights Reserved.