Quantcast
Channel: Weaviate Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 3898

Using like filter on text array

$
0
0

Hey, was wondering if it is possible to apply a like filter to match any text from a property that is a text array?

For example, here we filter so that the “answer” (text type) must match *inter*.

jeopardy = client.collections.get(“JeopardyQuestion”)
response = jeopardy.query.fetch_objects(
filters=Filter.by_property(“answer”).like(“*inter*”),
limit=3
)
But say that each object had multiple answers, stored in in a TEXT ARRAY called “answers”. How could we then filter to only include objects where any of the texts in “answers” match like *inter*?

So what I’m asking, is it possible use a like filter to match any in strings from a TEXT ARRAY property?


Viewing all articles
Browse latest Browse all 3898

Latest Images

Trending Articles



Latest Images