When developing, it can sometimes be difficult to figure out why a particular query isn't working. Often the reason is that the indexed terms for a particular field are different from you think.
Add terms_indexed_for_field() to Elastic::Model::Role::Doc to aid debugging.
When developing, it can sometimes be difficult to figure out why a particular query isn't working. Often the reason is that the indexed terms for a particular field are different from you think.
Add
terms_indexed_for_field()
to Elastic::Model::Role::Doc to aid debugging.