Getting this error using sphinx 2
sphinxql: syntax error, unexpected IDENT, expecting CONST_INT or CONST_FLOAT or '-' near 'WI AND published = 1 AND sphinx_deleted = 0 LIMIT 0, 10; SHOW META'
index.html.erb
an error occurs in the template in the partial collection line: @posts_by_state, but two other instances of the same particle work fine. State sorting is what discards it.
posts_controller.rb
@posts_by_state = Post.search(params[:search], with: { state: current_user.state, published: true }, :page => params[:page], :per_page => 10)
post_index.rb
ThinkingSphinx::Index.define :post, :with => :active_record do indexes :title, as: :post_title indexes :desc, as: :description indexes tags(:name), as: :tag_name
source share