Class ExistsSourceRequest.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • sourceExcludes

        public final ExistsSourceRequest.Builder sourceExcludes​(java.util.List<java.lang.String> list)
        A list of fields to exclude from the returned _source field

        API name: _source_excludes

        Adds all elements of list to sourceExcludes.

      • sourceExcludes

        public final ExistsSourceRequest.Builder sourceExcludes​(java.lang.String value,
                                                                java.lang.String... values)
        A list of fields to exclude from the returned _source field

        API name: _source_excludes

        Adds one or more values to sourceExcludes.

      • sourceIncludes

        public final ExistsSourceRequest.Builder sourceIncludes​(java.util.List<java.lang.String> list)
        A list of fields to extract and return from the _source field

        API name: _source_includes

        Adds all elements of list to sourceIncludes.

      • sourceIncludes

        public final ExistsSourceRequest.Builder sourceIncludes​(java.lang.String value,
                                                                java.lang.String... values)
        A list of fields to extract and return from the _source field

        API name: _source_includes

        Adds one or more values to sourceIncludes.

      • preference

        public final ExistsSourceRequest.Builder preference​(@Nullable
                                                            java.lang.String value)
        Specify the node or shard the operation should be performed on (default: random)

        API name: preference

      • realtime

        public final ExistsSourceRequest.Builder realtime​(@Nullable
                                                          java.lang.Boolean value)
        Specify whether to perform the operation in realtime or search mode

        API name: realtime

      • refresh

        public final ExistsSourceRequest.Builder refresh​(@Nullable
                                                         java.lang.Boolean value)
        Refresh the shard containing the document before performing the operation

        API name: refresh

      • routing

        public final ExistsSourceRequest.Builder routing​(@Nullable
                                                         java.lang.String value)
        Specific routing value

        API name: routing

      • version

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

        API name: version