Problems filtering by metadata

Hello guys,

I have created a namespace “Test Vector”. In this namespace there are some vectors with various metadata.
Now when I search for metadata, I have the following problem:
My search string looks like this:
{“Item name”:{“$in”:[“This is an item name for the item 0815”]}}
If I enter the string like this, I get the correct article.

If I create the filter like this:
{“Artikelbezeichnung”:{“$in”:[“Artikel 0815”]}}
I get NO result.

I thought “$in” means that the string occurs in the metadata. in the first case it would be the same, i.e. $eq.

Does anyone of you have any idea how I have to apply the filter so that I can also search for fragments?

Thank you very much!

@info10 ,

Welcome to the community forum!

The $in filter matches vectors with metadata values that are in a specified array (see Metadata query language).

{“Artikelbezeichnung”:{“$in”:[“Artikel 0815”]}} matches vectors with the metadata value "Artikel 0815", since that is the only item in the array.

We do not currently support metadata filtering by a substring, only the exact string ($eq) or one of many strings in an array ($in).

Best,

Evan

ah ok - got it. Thanks