Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

how does facets work

$
0
0
Dear Readers

I have a question about facets and doing some filtering based on facets.

In the moment I am using hibernate search in combination with bobobrowse
for facetting and I am thinking about switching to ES. But before that I
would like to check whether I can still get the same functionality.

lets asume that I have an index about cars and some facets -- eg. model and
color.

color
[ ] red (10)
[ ] blue (5)
[ ] green (2)

model
[ ] bmw (4)
[ ] vw (5)
[ ] ford (8)

if I select a model I would like to get only color facets for that model,
but I still would like to get facets for all models. eg:

color
[ ] red (2)
[ ] blue (2)
[ ] green (1)

model
[ ] bmw (4)
[x] vw (5)
[ ] ford (8)

I have searched I did not find an example about this usecase. Is this
possible and if yes, how do I filter a query to get these results?

Kind regards

Viewing all articles
Browse latest Browse all 6551

Trending Articles