Interface SearchMatchTerms

Specifies which terms must be present in the text of each search hit based on the specified strategy. The match is performed against the text field specified in the integrated index field_map configuration.

Terms are normalized and tokenized into single tokens before matching, and order does not matter.

Example:

"match_terms": {"terms": ["animal", "CHARACTER", "donald Duck"], "strategy": "all"} will tokenize to ["animal", "character", "donald", "duck"], and would match "Donald F. Duck is a funny animal character" but would not match "A duck is a funny animal".

Match terms filtering is supported only for sparse indexes with integrated embedding configured to use the pinecone-sparse-english-v0 model.

SearchMatchTerms

interface SearchMatchTerms {
    strategy?: string;
    terms?: string[];
}

Properties

Properties

strategy?: string

The strategy for matching terms in the text. Currently, only all is supported, which means all specified terms must be present.

SearchMatchTerms

terms?: string[]

A list of terms that must be present in the text of each search hit based on the specified strategy.

SearchMatchTerms