LuceneResultStruct (Apache Geode 1.11.0)
Date: 2019-12-20

org.apache.geode.cache.lucene

## Interface LuceneResultStruct<K,V>

-     public interface LuceneResultStruct<K,V>

  An interface which stores a single result obtained by executing a Lucene query.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `K` | `getKey()` Returns the Apache Geode region key of the result matching the Lucene Query
    `float` | `getScore()` Return score the score of the entry matching the query.
    `V` | `getValue()` Returns the Apache Geode region key of the result matching the Lucene Query

- - ### Method Detail

    - #### getKey

          K getKey()

      Returns the Apache Geode region key of the result matching the Lucene Query
      Returns:
        The region key of the entry matching the query

    - #### getValue

          V getValue()

      Returns the Apache Geode region key of the result matching the Lucene Query
      Returns:
        the region value of the entry matching the query.

    - #### getScore

          float getScore()

      Return score the score of the entry matching the query. Scores are computed by Lucene based on how closely the entry matches the query.
      Returns:
        float value representing the score of the entry obtained as a result of executing the Lucene query.