例: FTSearch method (NotesViewEntryCollection - LotusScript®)

次のスクリプトは、ビューエントリコレクションのすべてのエントリを全文検索し、検索結果を [Search Results] フォルダに入れます。

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim vc As NotesViewEntryCollection
Set db = session.CurrentDatabase
Set view = db.GetView("By Category")
view.AutoUpdate = False
Set vc = view.GetAllEntriesByKey("Books")
Call vc.FTSearch("Best Sellers", 10)
Call vc.PutAllInFolder("Search Results")