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

Facetting with facet value containing a slash returns wrong facet counts #173

Open
mpauly opened this issue Jul 27, 2017 · 0 comments
Open

Comments

@mpauly
Copy link

mpauly commented Jul 27, 2017

Hi,
in one of our projects we are using django haystack alongside xapian-haystack for a paginated search with facetting. We are currently seeing the following problem:

If you facet for a property, where the property value contains a slash (e.g. hamburg/norden), the count of this facet always remains at 20, which is the number of items per page. The same does not happen for facetting values without a slash.

A typical URL that we use to facet would be ...?selected_facets=groups:hamburg/norden, together with a haystack FacetedSearchView.
If I manually check the value of self.queryset.filter(groups__in=['hamburg/norden']).count() in the view I get the correct count (>20).

The expected behavior would be, that the facetting count that I get from Haystack, i.e. the Xapian Backend also displays this number.

I took a look at the xapian-haystack source but was not able yet to track down what goes wrong, so any help is appreciated. We are using 2.1.1. Thanks in advance.

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

No branches or pull requests

1 participant