Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim doc As NotesDocument
Dim score As Integer
Set db = session.CurrentDatabase
Set view = db.GetView( "By Category" )
Call view.FTSearch( "blue", 0 )
Set doc = view.GetFirstDocument
score = doc.FTSearchScore
Dim session As New NotesSession
Dim db As NotesDatabase
Dim collection As NotesDocumentCollection
Dim doc As NotesDocument
Set db = session.CurrentDatabase
Set collection = db.FTSearch( "blue", 0 )
Set doc = collection.GetFirstDocument()
While Not(doc Is Nothing)
If ( doc.FTSearchScore > 90 ) Then
Call doc.PutInFolder( "Blue documents" )
Set doc = collection.GetNextDocument(doc)
End If
Wend