#community-help

Querying Documents Using Wildcards and Array Lengths

TLDR Orion asks about querying documents with wildcards or array lengths. Jason requests clarification and examples from Orion to better understand the question.

Powered by Struct AI
May 21, 2022 (17 months ago)
Orion
Photo of md5-8e802b48c0369226a7b50a22ab6e9e0c
Orion
09:23 PM
Can’t find info on this after browsing the docs and GitHub so asking here. Is there some way to use wildcards when querying by a specific field? As in, any document with some value for the field I’m querying will match. My use case here is a knowledgebase where some documents are tagged, and I need to search for (all or some of) those documents.

Another solution would be a way to filter by array length, or something to that effect.
May 22, 2022 (17 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:21 PM
I don't fully understand the question. Could you share a few sample documents along with an example of a query (pseudo code) you'd want to use to fetch them?