简体   繁体   English

Solr-根据构面计数对搜索结果进行排序

[英]Solr - Sort search result based on facet count

I have information of products in Solr and each product is under a category. 我有Solr产品的信息,每个产品都在一个类别下。 I would like to sort product search result based on facet count on Category. 我想根据类别中的构面计数对产品搜索结果进行排序。 So if there are 100 products matching criteria under Electronics category and 50 products under Books, I would like to sort the result(or boost) the way that I see first 100 electronics and then 50 books. 因此,如果在“电子产品”类别下有100个产品符合条件,在“书籍”下有50个产品符合条件,那么我想对结果进行排序(或提升),即我看到的是前100种电子产品,然后是50本书。

Is it possible with one query? 一个查询有可能吗?

Thanks. 谢谢。

I don't think this is possible; 我认为这不可能。 faceting does not influence search results. 方面不会影响搜索结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM