注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

mylotustips的博客

IBM Lotus协作产品家族经验分享

 
 
 

日志

 
 
关于我

欢迎大家使用SR向IBM800提交问题http://www.ibm.com/support/servicerequest 可以随时查看问题状态,上传文件

网易考拉推荐

Connections搜索是否支持通配符?  

2015-10-14 22:40:06|  分类: SocialBusiness |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

问题:在 Connections 里尝试搜索*1234* 找不到 ABC-L1234

原因:

Connections采用基于 Lucene 开源项目的搜索引擎,Lucene禁用了 *开头的模糊搜索,仅支持*结尾的模糊搜索。

因此,您搜索 ABC* 应该能找到 ABC-L1234 ,但是搜索 *1234* 找不到 ABC-L1234

 

详情见后附:What wildcard search support is available from Lucene?

 

解答:在 Connections 4.5 及以上版本是一个已知的限制。

目前有一项功能改进请求,名为:支持*开头的模糊搜索。

如果日后大量客户反映同样的问题并为其投票,在产品经理规划下一个版本时,才可能会被纳入计划。

 

In 3.0.1 the customer was able to search with a leading asterisk (*).

This is no longer allowed in 4.5.

Customer would like the ability to search with a leading * asterisk in Advanced or ATOM searches.

It could be disabled by default since the operation is an expensive one on memory.

But the customer would like the ability to enable this and search with leading * asterisk.

 

相关链接:

Advanced search options

http://www-01.ibm.com/support/knowledgecenter/SSYGQH_5.0.0/user/eucommon/r_eucommon_advanced_search_options.dita?lang=en

 

What wildcard search support is available from Lucene?

http://wiki.apache.org/lucene-java/LuceneFAQ#What_wildcard_search_support_is_available_from_Lucene.3F

 

Lucene supports wild card queries which allow you to perform searches

such as book*, which will find documents containing terms such as book,

bookstore, booklet, etc. Lucene refers to this type of a query as a

'prefix query'.

 

Lucene also supports wild card queries which allow you to place a wild

card in the middle of the query term. For instance, you could make

searches like: mi*pelling. That will match both misspelling, which is

the correct way to spell this word, as well as mispelling, which is a Page 6 of 8

common spelling mistake.

 

Another wild card character that you can use is '?', a question mark.

The ? will match a single character. This allows you to perform queries

such as Bra?il. Such a query will match both Brasil and Brazil. Lucene

refers to this type of a query as a 'wildcard query'.

 

Leading wildcards (e.g. *ook) are not supported by the QueryParser by

default.

  评论这张
 
阅读(149)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017