-
Notifications
You must be signed in to change notification settings - Fork 86
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
LocalParams syntax #6
Comments
nidico
pushed a commit
to liqd/adhocracy
that referenced
this issue
Feb 8, 2013
The solution to calculate facet item counts for facets with exclusive values in 9e7c7c4 was wrong and only worked for simple cases. The general solution in this commit instead does the following: For each facet with exclusive values, create another solr query, which is the same as the current main query (facet_query), but without the filter on that same facet. This would normally be done in solr with `LocalParams`, but this isn't yet implemented in sunburnt (see tow/sunburnt#6). A workaround (as described in the latter issue) would be possible if sunburnt would allow to create multiple filter query parts instead of putting them together in one filter query with `AND` constructs (see tow/sunburnt#37).
nidico
pushed a commit
to liqd/adhocracy
that referenced
this issue
Feb 22, 2013
The solution to calculate facet item counts for facets with exclusive values in 9e7c7c4 was wrong and only worked for simple cases. The general solution in this commit instead does the following: For each facet with exclusive values, create another solr query, which is the same as the current main query (facet_query), but without the filter on that same facet. This would normally be done in solr with `LocalParams`, but this isn't yet implemented in sunburnt (see tow/sunburnt#6). A workaround (as described in the latter issue) would be possible if sunburnt would allow to create multiple filter query parts instead of putting them together in one filter query with `AND` constructs (see tow/sunburnt#37).
nidico
pushed a commit
to liqd/adhocracy
that referenced
this issue
Mar 10, 2013
The solution to calculate facet item counts for facets with exclusive values in 9e7c7c4 was wrong and only worked for simple cases. The general solution in this commit instead does the following: For each facet with exclusive values, create another solr query, which is the same as the current main query (facet_query), but without the filter on that same facet. This would normally be done in solr with `LocalParams`, but this isn't yet implemented in sunburnt (see tow/sunburnt#6). A workaround (as described in the latter issue) would be possible if sunburnt would allow to create multiple filter query parts instead of putting them together in one filter query with `AND` constructs (see tow/sunburnt#37).
nidico
pushed a commit
to liqd/adhocracy
that referenced
this issue
Mar 10, 2013
The solution to calculate facet item counts for facets with exclusive values in 3b27c3a was wrong and only worked for simple cases. The general solution in this commit instead does the following: For each facet with exclusive values, create another solr query, which is the same as the current main query (facet_query), but without the filter on that same facet. This would normally be done in solr with `LocalParams`, but this isn't yet implemented in sunburnt (see tow/sunburnt#6). A workaround (as described in the latter issue) would be possible if sunburnt would allow to create multiple filter query parts instead of putting them together in one filter query with `AND` constructs (see tow/sunburnt#37).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi !
I was wondering if it would be easy to add support for localparams syntax, especially when dealing with facetting (multi-select facets as described in solr docs: http://wiki.apache.org/solr/SimpleFacetParameters#Multi-Select_Faceting_and_LocalParams )
Something like this should work to retrieve doctype facets without taking doctype:pdf filter into account:
but currently it won't work because sunburnt will try to get the "{!ex=dt}doctype" field in the schema which obviously doesn't exist.
One workaround is to monkey patch the schema.match_field method to strip the localparam tag but i have no idea if this is a good or bad thing :)
How would you do it ?
The text was updated successfully, but these errors were encountered: