想要从客户订单详细信息中搜索地址的字段 type/schema.xml? [英] wants field type/schema.xml for address search from customer order details?

查看:45
本文介绍了想要从客户订单详细信息中搜索地址的字段 type/schema.xml?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在地址内搜索,文本是纽约,我已启用调试日志,下面是调试日志....

i want to search within address and text is new york, i have enabled debug log and below is debug log ....

rawquerystring: "shipment_recepient_name6:New york", 
querystring: "shipment_recepient_name6:New york", 
parsedquery: "+shipment_recepient_name6:New +shipment_recepient_name1:york ",     parsedquery_toString: "+shipment_recepient_name6:New +shipment_recepient_name1:york ",

我的疑问是我在 field6 上搜索以及为什么它在 field1(我的默认搜索字段)上搜索其余的词.你能建议一个模式,我可以在其中搜索地址并根据最高匹配分数返回 res –

My doubt is i am searching on field6 and why its rest of the word search on field1(my default search field) .can you suggest a schema where i can search the address and based on the highest matching score returns res –

我想搜索纽约,因为其中一个字段中的单词包含逗号分隔的地址.

I want to search New York as word in one of the field contains comma separated address.

推荐答案

您是否尝试过对查询进行 url 编码:

Have you tried to url-encode your query:

http://localhost:8080/solr/select?q=shipment_recepient_name6:New%20york

此外,由于您需要精确的短语匹配,请尝试使用引号.

Also, since you need exact phrase match, try using quotes.

你扔给 Solr 的那些句子最终如何查看 solr 的索引也很重要.要检查这一点,您可以使用一个名为 Luke 的出色工具(非常适合初学者了解如何这一切都在后台运行).

It's also very important how those sentences you throw to Solr end up looking inside solr's index. To examine that, you can use a great tool called Luke (ideal for beginners to figure out how it all works in the background).

有关高级查询,请参阅以下资源:
http://www.lucidimagination.com/blog/2010/05/23/whats-a-dismax/http://wiki.apache.org/solr/DisMaxQParserPlugin
http://wiki.apache.org/solr/ExtendedDisMax
http://www.lucidimagination.com/blog/2009/02/22/exploring-query-parsers/
http://www.lucidimagination.com/博客/2011/08/08/solr-powered-isfdb-part-11/

For advanced querying see these resources:
http://www.lucidimagination.com/blog/2010/05/23/whats-a-dismax/ http://wiki.apache.org/solr/DisMaxQParserPlugin
http://wiki.apache.org/solr/ExtendedDisMax
http://www.lucidimagination.com/blog/2009/02/22/exploring-query-parsers/
http://www.lucidimagination.com/blog/2011/08/08/solr-powered-isfdb-part-11/

这篇关于想要从客户订单详细信息中搜索地址的字段 type/schema.xml?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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