lavanya ramamoorthy
2014-Mar-19 09:52 UTC
how to avoid the records that are not in database without reindexing solr
i have a model Ticket which has 4 records.. I deleted first 2 records in the database.. search = Sunspot.new_search(Ticket) do paginate(:page => 1, :per_page => 2) end list = search.execute list.results list.results returns [ ] for page 1 and the remaining 2 records for page 2. Ideally it should have been 1 page with 2 records. is it possible to avoid the records that not in database without re-indexing solr? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8f8abd2e-641a-40fe-ad4e-6b6f0c72fdaf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.