Solr中的通配符搜索 [英] Wildcard search in Solr

查看:414
本文介绍了Solr中的通配符搜索的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用edismax处理程序以Lucene语法进行通配符搜索时遇到问题.我有从行李箱每晚构建的Solr 4.0.

I am having a problem doing wildcard searches in lucene syntax using the edismax handler. I have Solr 4.0 nightly build from the trunk.

像计算机"这样的常规搜索会返回结果,但"com er"不会返回任何结果.类似地,类似"co?mput?r"的搜索不会返回任何结果.当前唯一可以使用的通配符搜索类型是带有尾随通配符的搜索(例如,compute?或comput ).

A general search like 'computer' returns results but 'comer' doesn't return any results. Similary, a search like 'co?mput?r' returns no results. The only type of wildcard searches working currrently is ones with trailing wildcards(like compute? or comput).

我希望能够在开头( puter)和中间(com er)之间使用通配符进行搜索.有人可以告诉我我做错了什么以及如何解决.

I want to be able to do searches with wildcards at the beginning (puter) and in between (comer). Could someone please tell me what I am doing wrong and how to fix it.

谢谢.

此致,
伊姆兰.

Regards,
Imran.

推荐答案

使用edismax,领先的通配符没有问题.我只是重新测试了.

With edismax, leading wildcards are no problem. I just retested it.

期中通配符也没问题.

好像还有其他问题.您确定使用的是edismax吗?

Looks like there is something else wrong. Are you sure you are using edismax?

这篇关于Solr中的通配符搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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