New Discussion

Notifications

You’re not receiving notifications from this thread.

Searchkick/ElasticSearch not accepting Rails/Ruby booleans?

0
General

Hey everyone! I'm trying to get elastic search to work with a checkbox, but as they return a 0 or 1 as booleans, elastic search doesn't accept these params. Does anyone know how to get elastic search to work with a 0 or 1? At the moment, I've found a solution by converting the data-types of my 'paid' column to strings which are validated to require 'true' or 'false', but that's obviously not ideal.

Join the discussion
Create an account Log in

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.