Class MtermvectorsRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • fieldStatistics

        public final MtermvectorsRequest.Builder fieldStatistics​(@Nullable
                                                                 java.lang.Boolean value)
        Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: field_statistics

      • fields

        public final MtermvectorsRequest.Builder fields​(java.util.List<java.lang.String> list)
        A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: fields

        Adds all elements of list to fields.

      • fields

        public final MtermvectorsRequest.Builder fields​(java.lang.String value,
                                                        java.lang.String... values)
        A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: fields

        Adds one or more values to fields.

      • ids

        public final MtermvectorsRequest.Builder ids​(java.util.List<java.lang.String> list)
        API name: ids

        Adds all elements of list to ids.

      • ids

        public final MtermvectorsRequest.Builder ids​(java.lang.String value,
                                                     java.lang.String... values)
        API name: ids

        Adds one or more values to ids.

      • index

        public final MtermvectorsRequest.Builder index​(@Nullable
                                                       java.lang.String value)
        The index in which the document resides.

        API name: index

      • offsets

        public final MtermvectorsRequest.Builder offsets​(@Nullable
                                                         java.lang.Boolean value)
        Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: offsets

      • payloads

        public final MtermvectorsRequest.Builder payloads​(@Nullable
                                                          java.lang.Boolean value)
        Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: payloads

      • positions

        public final MtermvectorsRequest.Builder positions​(@Nullable
                                                           java.lang.Boolean value)
        Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: positions

      • preference

        public final MtermvectorsRequest.Builder preference​(@Nullable
                                                            java.lang.String value)
        Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: preference

      • realtime

        public final MtermvectorsRequest.Builder realtime​(@Nullable
                                                          java.lang.Boolean value)
        Specifies if requests are real-time as opposed to near-real-time (default: true).

        API name: realtime

      • routing

        public final MtermvectorsRequest.Builder routing​(@Nullable
                                                         java.lang.String value)
        Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: routing

      • termStatistics

        public final MtermvectorsRequest.Builder termStatistics​(@Nullable
                                                                java.lang.Boolean value)
        Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".

        API name: term_statistics

      • version

        public final MtermvectorsRequest.Builder version​(@Nullable
                                                         java.lang.Long value)
        Explicit version number for concurrency control

        API name: version