Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的搜索框由两部分组成:
使用 Solr 的建议组件实现的自动完成部分。
第二部分应显示“顶级品牌”。
例如,如果用户在搜索框中键入“笔记本电脑”,自动建议将显示“Apple”、“Dell”等字样,“顶级品牌”部分应显示品牌(例如徽标)。
如何实施这个“顶级品牌”部分?
是否有单独的品牌字段?如果是这样,您可以在该字段上分面并按计数排序。看看 wiki 上的 faceting:
http://wiki.apache.org/solr/SimpleFacetParameters