使用 Solr 自动检测和应用约束
我想为我的用户实现更智能的搜索解决方案,但分面搜索和过滤查询缺少一些东西。
让我们看一下用例。有多个汽车品牌和型号,可以说还有颜色参数。 我想要做的是,如果用户在文本框中输入“bmw m5 black”,我希望 solr 将品牌类别捕获为“bmw”,型号类别捕获为“m5”,颜色类别捕获为“黑色”,并将它们应用为过滤器查询。 当我看到谷歌产品搜索时,这个想法就来自于搜索技术。 感谢您的回复。
I want to implement smarter search solution for my users but there is something missing with faceted search and filter queries.
Lets take a look at use case. There are several car brands and models and lets say there is also color parameter.
What I want to do is, if user enters "bmw m5 black" to a textbox I want solr to catch brand category as "bmw", model category as "m5" and color category as "black" and apply those as filter query.
The idea come up from search technique when I saw google product search.
Thanks for reply.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Solr 不会为你做这种“猜测”。您必须在客户端实现它。
Solr won't do this "guessing" for you. You have to implement it client-side.