Is there a way to query elastic search for all documents that contain the value of one property in the multivalued field; i.e.:
I have a list of property values in field COLORS: Red, Blue, Black, Green another property has a single value in field PREFERENCE : Red
is there a way to select all documents that contain value found in field PREFERENCE within the multi valued field COLORS?
SQL equivalent would be something of this sort:
SELECT * FROM index WHERE COLORS LIKE CONCAT('%', PREFERENCE, '%')