Class VectorSearchOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • withVectorSearchFilter

        public VectorSearchOptions.Builder withVectorSearchFilter​(VectorSearchFilter vectorSearchFilter)
        Sets the vector search filter.
        Parameters:
        vectorSearchFilter - the vector search filter
        Returns:
        this builder
      • withVectorFieldName

        public VectorSearchOptions.Builder withVectorFieldName​(String vectorFieldName)
        Sets the name of the vector field.
        Parameters:
        vectorFieldName - the name of the vector field
        Returns:
        this builder
      • withTop

        public VectorSearchOptions.Builder withTop​(int top)
        Sets the limit of the number of results to return.
        Parameters:
        top - the limit of the number of results to return
        Returns:
        this builder
      • withSkip

        public VectorSearchOptions.Builder withSkip​(int skip)
        Sets the offset of the results to return.
        Parameters:
        skip - the offset of the results to return
        Returns:
        this builder
      • withIncludeVectors

        public VectorSearchOptions.Builder withIncludeVectors​(boolean includeVectors)
        Sets a value indicating whether to include vectors in the results.
        Parameters:
        includeVectors - a value indicating whether to include vectors in the results
        Returns:
        this builder
      • withIncludeTotalCount

        public VectorSearchOptions.Builder withIncludeTotalCount​(boolean includeTotalCount)
        Sets a value indicating whether to include the total count of the results.
        Parameters:
        includeTotalCount - a value indicating whether to include the total count of the results
        Returns:
        this builder