Reputation: 1282
I'm attempting a rather simple query.
To show the data is actually in:
SearchService::Models::Message.search("393664355505").each {|m| puts m.author.inspect}
# "393664355505"
# "393664355505"
# "393664355505"
# "393664355505"
# "393664355505"
# "393664355505"
If I attempt a query with a where:
SearchService::Models::Message.search(where: {author: ["393664355505", "7143920115690860", "7714575665265533"]})
#=> #<Searchkick::Relation []>
I really don't understand how this is supposed to work honestly. I'm only trying to have the "author" field used to filter out the results that don't have an author with those ids.
What am I doing wrong?
Upvotes: 0
Views: 36