如何在Solr中获取两个或两个以上单词的通用产品详细信息 [英] How to get the common products details of two or more words in Solr

查看:76
本文介绍了如何在Solr中获取两个或两个以上单词的通用产品详细信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了无法解决的问题.部分原因是我无法用正确的术语来解释它.我是新来的,对这个笨拙的问题感到抱歉.

I've got this problem that I can't solve. Partly because I can't explain it with the right terms. I'm new to this so sorry for this clumsy question.

下面您可以看到我的目标概述.

Below you can see an overview of my goal.

我正在使用Magento CE 1.7.0.2& Solr 4.6.0.

I'm using Magento CE 1.7.0.2 & Solr 4.6.0.

在这里您可以看到我的目标.

Here you can see my goal..

我正在搜索单词adidas black

在这里我可以看到我的结果

Here i can see my results

http://127.0.0.1:8080/solr/collection1/select?q=adidas+black

我大约有600种产品,但是我发现它在搜索 adidas black adidas black 的产品.

i got around 600 products but i found its searching for the products of adidas and black and adidas black.

它提供了所有这些结果,但我只想要 adidas black .

its giving these all results but i want only adidas black.

我如何直接从Solr获得这些产品.

How can i get these products directly from Solr.

有什么想法吗?

推荐答案

在我看来,它可以正常工作...

In my case its working fine...

http://127.0.0.1:8080/solr/collection1/select?q="adidas+black"&indent=true&defType=dismax&pf=YourFieldName&qs=2

这篇关于如何在Solr中获取两个或两个以上单词的通用产品详细信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆