ビューの全文検索フィルタをクリアします。
database.updateFTIndex(true);
var v:NotesView = database.getView("main");
var query:string = requestScope.query;
if (!query.isEmpty()) {
if (v.FTSearch(query) > 0) {
var doc:NotesDocument = v.getFirstDocument();
while (doc != null) {
doc.putInFolder("Search Results", true);
tmpdoc = v.getNextDocument(doc);
doc.recycle();
doc = tmpdoc;
}
}
}
v.clear();
if (!query2.isEmpty()) {
if (v.FTSearch(query2) > 0) {
doc = v.getFirstDocument();
while (doc != null) {
doc.putInFolder("Search Results 2", true);
tmpdoc = v.getNextDocument(doc);
doc.recycle();
doc = tmpdoc;
}
}
}