D
D
driverx182018-12-07 13:19:30
Solr
driverx18, 2018-12-07 13:19:30

What is facet?

Can someone explain in a clear language what is a facet / facet search in Solr?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
al_gon, 2018-12-07
@al_gon

It happens by adding parameters to the main message request
facet=true
facet.field={field}
{field} the actual field on which it is faceted.
Example:
Query in an online store for a keyword.
Answer products, one of the attributes is the category of the product, for example product_cat .
When added to the query
facet=true&facet.field=product_cat
we get facets key/value=product_cat/count
Where count is the number of products found in this category.
Faceted search in a broad sense is described here
My statement is here How a set of filters for various categories is implemented...

S
Stalker_RED, 2018-12-07
@Stalker_RED

The "faceted search" itself is here: https://ru.wikipedia.org/wiki/%D0%A4%D0%B0%D1%81%D...
A common example for everyone is a product filter in the Yandex market, and others similar sites, where there are just a bunch of different parameters and you can set the "price from X to Y", the manufacturer CompanyName, the amount of memory is more than 42GB, for example.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question