This repository has been archived by the owner on Jul 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix facet item counts for facets with exclusive values
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).
- Loading branch information
Nicolas Dietrich
committed
Feb 22, 2013
1 parent
45ac870
commit e70a2ee
Showing
1 changed file
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters