Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

facetted search on integer keys #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jdwyah
Copy link

@jdwyah jdwyah commented Dec 22, 2010

I wasn't able to get a facetted search to work on an integer key from one of my indexed objects. It looked like it should be valid to me and indeed, just changing the conditions that raise the error worked for me.

-thanks for the hard work

?> p search_hash = {:query => 'neur', :class_names => 'SearchableCondition', :per_page => 1000, :page =>1, :excerpt => true, :facets => :condition_id }
{:excerpt=>true, :facets=>:condition_id, :per_page=>1000, :page=>1, :class_names=>"SearchableCondition", :query=>"neur"}

=> nil

Ultrasphinx::Search.new(search_hash).run.facets

Ultrasphinx::UsageError: Field condition_id does not exist
from /Users/jdwyah/workspace/plm-website/.bundle/ruby/1.8/gems/ultrasphinx-1.11/lib/ultrasphinx/search/internals.rb:163:in `get_facets'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant