IBM Notes FTSearch:搜索多值数字字段

问题描述 投票:1回答:1

是否可以使用包含多个值的数字字段在Notes(LotusScript或Java,或简单地在搜索栏中)中进行全文搜索?例如。

field xyz > 1000 and field xyz < 2000

以便任何可用的值用于测试?

我们在这里看到的是,字段xyz中具有多个值的文档只是从结果中排除。仅显示具有单个值字段xyz的文档。

可以做到,还是只是不可能?

谢谢你的帮助。

full-text-search lotus-notes
1个回答
0
投票

我不认为全文搜索会适用于您的情况。也许你可以尝试普通搜索并将结果放在一个文件夹中。

Dim s As New NotesSession   
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim query As String

Set db = s.Currentdatabase

query = { Field1 > 1000 & Field1 < 2000 }
Set collection = db.Search(query, Nothing, 0)

MsgBox "Documents found: " & collection.Count

Call collection.PutAllInFolder( "MyFolderWithResults" )

您可以对生成的集合collection.FTSearch执行全文搜索,而不是将集合放在文件夹中。

© www.soinside.com 2019 - 2024. All rights reserved.