Merges two filters into one. If both filters are empty, returns undefined. If one filter is empty or the merge type is 'replace', returns the other filter. If the merge type is 'and' or 'or', returns a new filter with the merged results. Throws an error for unknown merge types.
The default filter to merge.
The generated filter to merge.
The type of merge to perform. Can be 'and', 'or', or 'replace'. Defaults to 'and'.
If true, the default filter is always returned if the generated filter is empty. Defaults to false.
A merged QdrantFilter, or undefined if both filters are empty.
Visits a comparison and returns a QdrantCondition. The value is casted to the correct type. The attribute is prefixed with "metadata.", since metadata is nested in the Qdrant payload.
The comparison to visit.
A QdrantCondition.
Generated using TypeDoc
A class that translates or converts
StructuredQuery
to equivalent Qdrant filters.Example