Aleksei Bochkov
12/05/2024, 9:10 AMfabric_type
. How can I filter my search to return only documents that have fabric_type=null
?
2. I have a string[]
field called certifications
. How can I filter my search to return only documents that do not have empty array as a value (so documents that have some values)?
Thanks!Fanis Tharropoulos
12/05/2024, 9:23 AM<field>_exists
(fabric_type_exists
) and set that to true or false, depending on the document itself. For array types, you could even count the number of certifications
for example and have that as an int32
field, so filter by certifications_count:>0
(useful for boosting documents with more certifications by sorting by that field)Fanis Tharropoulos
12/05/2024, 9:24 AMFanis Tharropoulos
12/05/2024, 9:25 AMAleksei Bochkov
12/05/2024, 9:36 AM