You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be more of a feature request than a bug/issue. Please consider:
User.where(country: "Finland").search("... elastic query here ...").records
This query executes fine, but the where condition is not considered.
User.where(country: "Finland").search("... elastic query here ...").records.to_sql
> "select users.* from users where id in (163, 511)"Viewingthesearchresultsconfirmthis -- thecountryconditionis not beingapplied.
I am attempting to understand how the SQL gets built in elasticsearch-model to see if this might be a possibility to implement supporting the scope chaining. It may be worth some mention in the docs about this that the elasticsearch method must come first in the chain and all conditions should be applied on the proxy returned by the records method.
Thanks!
The text was updated successfully, but these errors were encountered:
This may be more of a feature request than a bug/issue. Please consider:
This query executes fine, but the where condition is not considered.
The same thing happens with scopes...
Shows the same result.
I am attempting to understand how the SQL gets built in
elasticsearch-model
to see if this might be a possibility to implement supporting the scope chaining. It may be worth some mention in the docs about this that the elasticsearch method must come first in the chain and all conditions should be applied on the proxy returned by therecords
method.Thanks!
The text was updated successfully, but these errors were encountered: