Should + vector search

Suppose my index has:

  • A vector field called “text_encoded”
  • A field called “field1”, that can contain one or more of the following classes: “A”, “B”, “C” as list (ex. “field1” : [“A”], or “field1” : [“A”, “C”])

I would like to write an OpenSearch query that can:

  • select the samples with field1 classes containing either “A” OR “C”
  • return similarity scores only

If I use the “should” instruction, it returns relevance scores instead.
How can I only make it return cosine similarity scores?

Thank you