search - Solr: Apply faceting when query contains particular terms -


i have database of product information indexed name, type, manufacturer, etc. users submit search queries results contained neatly in 1 or more facets. when situation arises, solr parse query , apply relevant facets.

for example, searching shoes should return results in shoe category. more ambitiously, searching plaid shirt should query plaid on items in shirt category.

is possible configure solr this?

thanks in advance.

asking solr want tall order. best bet store categories in field weighted highly. example, if have category field value of "shoes", having hit on field increase relevance of documents on category, having them show first. same goes second example.

as faceting, question not clear on how want apply faceting.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -