Ruby on Rails
Tuesday, March 24, 2015
On Tuesday, March 24, 2015 at 4:35:10 PM UTC, Андрей Молчанов wrote:
BusinessCenter.search(:load => { :include => 'offices' }) doquery { string '*' }filter :term, "offices.retail" => trueendand its get empty array=> #<Tire::Results::Collection:0x0000000641fa90 @response={"took"=>4, "timed_out"=>false, "_shards"=>{"total"=>5, "successful"=>5, "failed"=>0}, "hits"=>{"total"=>0, "max_score"=>nil, "hits"=>[]}}, @options={:load=>{:include=>" offices"}, :size=>10}, @time=4, @total=0, @facets=nil, @max_score=0.0, @wrapper=Tire::Results::Item> Where I make mistake? How filtered request with attribute in has_many model (in my case its the Office)?
Have you checked what data was actually indexed? Also you may wish to note that tire is no longer supported
Fred
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f5fc0591-0229-470f-a7ba-54c7b083a0af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment