LuceneResultStruct (Apache Geode 2.0.2)
Description: declaration: package: org.apache.geode.cache.lucene, interface: LuceneResultStruct

Package 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

  Modifier and Type
  Method
  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 Details

  - ### 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.