app/models/simplec/page.rb
def set_query_attributes!
      attr_names = self.class.search_query_attributes.map(&:to_s)
      self.query = attr_names.inject({}) { |memo, attr|
        memo[attr] = self.send(attr)
        memo
      }
    end
def set_query_attributes!
      attr_names = self.class.search_query_attributes.map(&:to_s)
      self.query = attr_names.inject({}) { |memo, attr|
        memo[attr] = self.send(attr)
        memo
      }
    end
Build query attribute hash.

 Internally stored as JSONB.

 @return [Hash] to be set for query attribute