Lotus Notes Adapter 6.0 | webMethods Lotus Notes Adapter Documentation | webMethods Lotus Notes Adapter Installation and User’s Documentation | Built-In Services Reference | Built-In Services Reference | wm.ln.db:FTSearch
 
wm.ln.db:FTSearch
This flow service conducts a full-text search of all the documents in a database. If the database is not full-text indexed, this method works, but less efficiently.
To test for an index, use the IsFTIndexed property. To create an index on a local database, use the updateFTIndex method.
FTSearch searches all documents in a database. To search only documents found in a particular view, use the FTSearch method in View. To search only documents found in a particular document collection, use the FTSearch method in DocumentCollection.
If you do not specify any sort options, you get the documents sorted by relevance score. If you sort by date, you do not get relevance scores.
A Newsletter object formats its doclink report with either the document creation date or the relevance score, depending on the sort options you use in the document collection. If the database has a multi-database index, you get a multi-database search. Navigation through the resulting document collection may be slow, but you can create a newsletter from the collection.
Input Parameters
query
String The full-text query.
max
String Optional.The maximum number of results you want returned from the query. Set this parameter to 0 to receive all matching results.
sortopt
String Optional. If used, otheropt must also be used. Use one of the following constants to specify a sorting option:
*FT_SCORES - (default) sorts by relevance score. When the collection is sorted by relevance, the highest relevance appears first. To access the relevance score of each document in the collection, use the FTSearchScore property in returned Documents.
*FT_DATE_DES - sorts by document creation date in descending order.
*FT_DATE_ASC - sorts by document creation date in ascending order.
otheropt
String Use the following constants to specify additional search options. To specify more than one option, use a logical or operation: #
*FT_DATABASE - includes Domino databases in the search scope.
*FT_FILESYSTEM - includes files other than Domino databases in the search scope.
*FT_FUZZY - specifies a fuzzy search.
*FT_STEMS - uses stem words as the basis of the search.
Output Parameters
documentCollection
DocumentCollection A collection of documents that match the full-text query, sorted by the selected option. If no matches are found, the collection has a count of 0.