Support of HAVING for Sphinx running in Heroku -


i have following query:

  search(params[:query],     with: { tag_id: params[:filter].values.flatten },     group_by: :technology_id,     having: "count(*)=#{params[:filter].size}"   ) 

this working locally, when deploy heroku throws:

actionview::template::error (sphinxql: syntax error, unexpected ident, expecting $end  near 'having count(*)=1 limit 0, 20; show meta' - select *, groupby()  sphinx_internal_group, id sphinx_document_id, count(distinct sphinx_document_id)  sphinx_internal_count `technology_core` match('cancer') , `tag_id` in (1) ,  `sphinx_deleted` = 0 group `technology_id` having count(*)=1 limit 0, 20; show meta): 

the sphinx version specified follows:

# config/thinking_sphinx.yml test:   mysql41: 9307 production:   version: '2.2.6' 

anyone knows else be?

at point in time, latest sphinx version available on flying sphinx servers 2.2.3 - can change version in thinking_sphinx.yml, deploy , run rebuild/regenerate, , see if having works?


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -