Closed (fixed)
Project:
Search API
Version:
7.x-1.20
Component:
General code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Sep 2016 at 10:55 UTC
Updated:
1 Nov 2016 at 09:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
sajalsoni commentedComment #3
drunken monkeyThis still works fine for me with the latest module version, and no-one else has complained either (as far as I know). It probably has something to do with your setup.
The first thing I notice is that the facet filter value is very weird – not just the taxonomy term ID, but a concatenation of (I guess) vocabulary, term ID and term name. Where does that come from? Does it work without that?
You can also try just re-saving the facet display configuration form and see whether that helps.
Otherwise, try newly setting up the search (on a test copy of the site, of course) and see whether you can reproduce the error that way.
But my current best tip is that it has got something to do with that custom facet filter value.
Comment #4
sajalsoni commentedAh Thanks for the reply.
But, I got it fixed anyways, and the issue was the re-ordering of elements when it's passed to 'hierarchy callback'.
In the newer version, the active facet is the first element in array, while in the older version it was not. And my custom hierarchy callback was assuming that the children elements will always follows the parent element in array. In newer version, it's moved to top, so I had to change the logic a bit in my callback code.
Comment #5
drunken monkeyOK, good to hear. Thanks for reporting back!