I'm currently using Mongoid/MongoDB for my database with Tire/ElasticSearch. I want to filter my results based on an array of _id
's. Here is some pseudo-code similar to what I'm attempting:
search = Tire::Search::Search.new()
search.filter :terms, :_id => [array_of_ids]
When I swap out the :_id
attribute and attempt to use another indexed attribute, it works fine. However, with :_id
, it returns no results.