Class MoreLikeThisQueryBuilder.Item

    • Constructor Detail

      • Item

        public Item()
      • Item

        public Item​(@Nullable
                    java.lang.String index,
                    @Nullable
                    java.lang.String type,
                    java.lang.String id)
        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

        public Item​(@Nullable
                    java.lang.String index,
                    @Nullable
                    java.lang.String type,
                    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
        type - the type to be used for parsing the doc
        doc - the document specification