Answer the question
In order to leave comments, you need to log in
Active Filtering in an online store using search engines (Spinx, Solr)?
Online stores have product filters. They call it, sort of, Active Filtering.
Let's say we have laptops (products). Notebooks have many filter values (product_filter_values), which in turn are associated with filter types (filter_types) and filter values (filter_values).
НОУТБУКИ (products)
Диагональ экрана (filter_types)
11 (filter_values)
13.3
15.6
Процессор
Intel
AMD
SELECT products.id
FROM products
INNER JOIN
product_filter_values ON product_filter_values.product_id = products.id
WHERE
product_filter_values.filter_value_id IN (1,2)
INTERSECT
SELECT products.id
FROM products
INNER JOIN
product_filter_values ON product_filter_values.product_id = products.id
WHERE
product_filter_values.filter_value_id IN (4)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question