ChunkFilter: {
    must?: ConditionType[] | null;
    must_not?: ConditionType[] | null;
    should?: ConditionType[] | null;
}

ChunkFilter is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata.

Type declaration

  • Optionalmust?: ConditionType[] | null

    All of these field conditions have to match for the chunk to be included in the result set.

  • Optionalmust_not?: ConditionType[] | null

    None of these field conditions can match for the chunk to be included in the result set.

  • Optionalshould?: ConditionType[] | null

    Only one of these field conditions has to match for the chunk to be included in the result set.