Filter items which array contains any of given values

前端 未结 5 1093
萌比男神i
萌比男神i 2020-12-12 15:45

I have a set of documents like

{
    tags:[\'a\',\'b\',\'c\']
    // ... a bunch properties
}

As stated in the title: Is there a way to fil

5条回答
  •  春和景丽
    2020-12-12 16:17

    For those looking at this in 2020, you may notice that accepted answer is deprecated in 2020, but there is a similar approach available using terms_set and minimum_should_match_script combination.

    Please see the detailed answer here in the SO thread

提交回复
热议问题