Home how to use searchkick to index according to some conditions
Reply: 0

how to use searchkick to index according to some conditions

user302
1#
user302 Published in July 19, 2018, 3:12 pm

I am using searchkick and rails4.

I have an activerecord People, with attributes a,b,c. How can I do indexing only when b equals "type1", not indexing otherwise?

Currently what I know is

def search_data
  {
    a:a,
    b:b,
    c:c,
  }
end
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.636223 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO