You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Algolia rails gem provides the ability to search activemodel records like this:
Person.search('some query')
The way this works is, when the hits come back, it gets an array of all the IDs and then passes them to a call to .where(id: array_of_ids). Our ActiveRecordShim passes this through to find_all, which via the CDNAdapter results in this error:
WCC::Contentful::SimpleClient::ApiError
AlgoliaSyncJob@default
The query you sent included duplicate URI query parameters. Please specify each URI query parameter only once and separate multiple values with a comma, e.g. "order=foo,bar".
Duplicates were: sys.id[]
Oct 18th, 2019, 14:02:15 UTC
STACKTRACE
vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/simple_client/response.rb:68:in `assert_ok!': The query you sent included duplicate URI query parameters. Please specify each URI query parameter only once and separate multiple values with a comma, e.g. "order=foo,bar".
Duplicates were: sys.id[] (WCC::Contentful::SimpleClient::ApiError)
from vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/simple_client.rb:170:in `entries'
from vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/store/cdn_adapter.rb:108:in `response'
from vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/store/cdn_adapter.rb:56:in `to_enum'
from vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/store/base.rb:112:in `map'
from vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/model_singleton_methods.rb:36:in `find_all'
from vendor/bundle/ruby/2.5.0/bundler/gems/wcc-contentful-bcf4a6c6cc88/wcc-contentful/lib/wcc/contentful/active_record_shim.rb:69:in `where'
from vendor/bundle/ruby/2.5.0/gems/algoliasearch-rails-1.23.2/lib/algoliasearch-rails.rb:715:in `algolia_search'
The text was updated successfully, but these errors were encountered:
Algolia rails gem provides the ability to search activemodel records like this:
Person.search('some query')
The way this works is, when the hits come back, it gets an array of all the IDs and then passes them to a call to
.where(id: array_of_ids)
. Our ActiveRecordShim passes this through tofind_all
, which via the CDNAdapter results in this error:The text was updated successfully, but these errors were encountered: