Class RatedDocument

  • All Implemented Interfaces:
    Writeable, ToXContent, ToXContentObject

    public class RatedDocument
    extends Object
    implements Writeable, ToXContentObject
    Represents a document (specified by its _index/_id) and its corresponding rating with respect to a specific search query.

    The json structure of this element in a request:

     {
       "_index": "my_index",
       "_id": "doc1",
       "rating": 0
     }