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

Facet Query problem #90

Closed
GoogleCodeExporter opened this issue Jun 9, 2015 · 1 comment
Closed

Facet Query problem #90

GoogleCodeExporter opened this issue Jun 9, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Giving the facet.query in array of $additionalParameters 
2. format : 'facet.query' => 
array('price'=>array('[*+TO+5000]',[5000+TO+10000]))

What is the expected output? What do you see instead?

I expect for output to be an array of facet.query object, but response is is 
empty (stdClass Object ( [facet_queries] => stdClass Object ( ) ....) 

What version of the product are you using? On what operating system?
stable @version $Id: Service.php 59 2011-02-08 20:38:59Z donovan.jimenez $


Original issue reported on code.google.com by ghogi...@gmail.com on 16 Jan 2013 at 2:24

@GoogleCodeExporter
Copy link
Author

why did you make facet.query into a complicated array? the client doesn't do 
anything special with your additional parameters except http_build_query... 

I expect your intention was two separate faceted queries for each range, which 
you'd do like this:

$params = array(
    'facet' => 'true',
    'facet.query' => array(
        // use an array only because i have multiple facet queries,
        // the queries themselves are just the lucene query syntax
        'price:[* TO 5000]',
        'price:[5000 TO 10000]'
    )
);

which then looks like this in the GET / POST:

facet=true&facet.query%5B0%5D=price%3A%5B%2A+TO+5000%5D&facet.query%5B1%5D=price
%3A%5B5000+TO+10000%5D

If you have further problems with usage, try the mailing list first.

Original comment by donovan....@gmail.com on 16 Jan 2013 at 3:53

  • Changed state: Done
  • Added labels: Type-Other
  • Removed labels: Type-Defect

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

No branches or pull requests

1 participant