You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing things like facet navigation, sometimes only the hits are needed to be filtered by the chosen facet, and all the facets should continue to be calculated based on the original query. The new filter element within the search request can be used to accomplish it.
For example, lets create two tweets, with two different tags:
We get two hits, and the relevant facets with a count of 1 for both green and blue. Now, lets say the green facet is chosen, we can simply add a filter for it:
When doing things like facet navigation, sometimes only the hits are needed to be filtered by the chosen facet, and all the facets should continue to be calculated based on the original query. The new
filter
element within the search request can be used to accomplish it.For example, lets create two tweets, with two different tags:
We can now search for
something
, and have aterms
facet.We get two hits, and the relevant facets with a count of
1
for bothgreen
andblue
. Now, lets say thegreen
facet is chosen, we can simply add a filter for it:And now, we get only 1 hit back, but the facets remain the same.
Note, if additional filters is required on specific facets, they can be added as a
facet_filter
to the relevant facets.The text was updated successfully, but these errors were encountered: