Re: Facets aren't working

2014-06-18 Thread Misha Tatinets
you don't seem to be passing just `params[:query]` in your controller: > Company.search > params[:query] > > Karel > > What I mean by "facets aren't working", that I can't to filter my results. >>>> >>>> But when I try filter resul

Re: Facets aren't working

2014-06-11 Thread Karel Minařík
So, are you actually passing the `c` URL parameter to the search method? Notice the code: `if options[:categories]` in your search method. But you don't seem to be passing just `params[:query]` in your controller: Company.search params[:query] Karel What I mean by "facets aren

Re: Facets aren't working

2014-06-11 Thread Misha Tatinets
n Wed, Jun 11, 2014 at 2:31 PM, Misha Tatinets > wrote: > >> Hi Karel, >> Thanks for replying. >> >> What I mean by "facets aren't working", that I can't to filter my results. >> >> When I submit query I see in my log next : >

Re: Facets aren't working

2014-06-11 Thread Ivan Brusic
g/guide/en/elasticsearch/reference/current/search-request-post-filter.html#search-request-post-filter -- Ivan On Wed, Jun 11, 2014 at 2:31 PM, Misha Tatinets wrote: > Hi Karel, > Thanks for replying. > > What I mean by "facets aren't working", that I can't to filter my

Re: Facets aren't working

2014-06-11 Thread Misha Tatinets
Hi Karel, Thanks for replying. What I mean by "facets aren't working", that I can't to filter my results. When I submit query I see in my log next : curl -X GET 'http://localhost:9200/companies/company/_search?pretty' -d '{"query":{"boo

Re: Facets aren't working

2014-06-11 Thread Karel Minařík
> I'm getting results but facets aren't working > Can you specify in a bit more detail how facet's "aren't working" (i.e. what do you want to achieve, what is expected, etc)? Since you base your code on the provided Rails templates, the code should be e

Facets aren't working

2014-06-09 Thread Misha Tatinets
I have rails app where I try to use both elasticsearch-rails and elasticsearch-model gems. I'm getting results but facets aren't working. I wondering if anyone can pinpoint on what I am doing wrong. Here is my code that is written but example from elasticsearch team https://