我需要使用FTSearch进行搜索 - MS004790(419411/10)
。但它thorws NotesException: Notes error: Query is not understandable (MS004790(419411/10))
Lotus Domino数据库FTSearch方法和括号
所以也许有一些技巧,像这样的字符串搜索,或者我需要解析它?
Tnx求助!
我需要使用FTSearch进行搜索 - MS004790(419411/10)
。但它thorws NotesException: Notes error: Query is not understandable (MS004790(419411/10))
Lotus Domino数据库FTSearch方法和括号
所以也许有一些技巧,像这样的字符串搜索,或者我需要解析它?
Tnx求助!
TL; DR:用引号将搜索缩小。
全文搜索有两种模式。网络搜索和笔记搜索。在笔记首选项中,您可以设置它。
网络搜索就像是一个文本搜索。注释搜索尝试解析搜索项。
但是,如果客户端看到第一个字符是大写字母(或大写保留的关键字,如“FIELD”),则可以回退到Notes搜索字词。所以为了防止它被解析,你需要用引号包装它。
例如
(LotusScript中)
searchString = |"MS004790(419411/10)"|
(JAVA)
searchString = "\"MS004790(419411/10)\""
如果之后仍然失败,请尝试手动在FT搜索栏搜索。一旦你有这个工作,代码应该以同样的方式工作。
如果在这一点上仍然失败,它可能与UNK表有关。如果是这样,请看以下内容:
Lotus Domino: After changing TYPE of a field, Full Text Search won't work for this field
Tnx很多!你再次帮助我! – 2013-04-04 10:47:33