Class MoreLikeThisQueryBuilder.Item

java.lang.Object
org.elasticsearch.index.query.MoreLikeThisQueryBuilder.Item
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Enclosing class:
MoreLikeThisQueryBuilder

public static final class MoreLikeThisQueryBuilder.Item
extends java.lang.Object
implements org.elasticsearch.common.xcontent.ToXContentObject, Writeable
A single item to be used for a MoreLikeThisQueryBuilder.
  • Field Details

  • Constructor Details

    • Item

      public Item()
    • Item

      public Item​(@Nullable java.lang.String index, java.lang.String id)
      Constructor for a given item / document request
      Parameters:
      index - the index where the document is located
      id - and its id
    • Item

      public Item​(@Nullable java.lang.String index, org.elasticsearch.common.xcontent.XContentBuilder doc)
      Constructor for an artificial document request, that is not present in the index.
      Parameters:
      index - the index to be used for parsing the doc
      doc - the document specification
    • Item

      @Deprecated public Item​(@Nullable java.lang.String index, @Nullable java.lang.String type, java.lang.String id)
      Deprecated.
      Types are in the process of being removed, use Item(java.lang.String,java.lang.String) instead.
      Constructor for a given item / document request
      Parameters:
      index - the index where the document is located
      type - the type of the document
      id - and its id
    • Item

      @Deprecated public Item​(@Nullable java.lang.String index, @Nullable java.lang.String type, org.elasticsearch.common.xcontent.XContentBuilder doc)
      Deprecated.
      Types are in the process of being removed, use Item(java.lang.String,org.elasticsearch.common.xcontent.XContentBuilder) instead.
      Constructor for an artificial document request, that is not present in the index.
      Parameters:
      index - the index to be used for parsing the doc
      type - the type to be used for parsing the doc
      doc - the document specification
  • Method Details