ビューエントリコレクションに、まだ存在しない指定文書を追加します。
パラメータ | 説明 |
---|---|
noteid | 文書の文書 ID。 |
documents | 種類が NotesDocument、NotesDocumentCollection、NotesViewEntry、NotesViewEntryCollection のオブジェクトです。ビューエントリは文書を指す必要があります。 |
このメソッドが正常に実行されると、元の文書コレクションには、そのコレクションの文書に加えて、パラメータで指定した文書が含まれます。
if (requestScope.query.isEmpty()) return;
if (requestScope.query2.isEmpty()) return;
if (!database.isFTIndexed()) database.createFTIndex(0, false);
var vec1:NotesViewEntryCollection = database.getView("main").getAllEntries();
var vec2:NotesViewEntryCollection = vec1.cloneCollection();
vec1.FTSearch(requestScope.query);
vec2.FTSearch(requestScope.query2);
vec1.merge(vec2);
if (vec1.getCount() > 0) {
var entry:NotesViewEntry = vec1.getFirstEntry();
while (entry != null) {
requestScope.status += "¥n" +
entry.getDocument().getItemValueString("subject");
entry = vec1.getNextEntry(entry);
}
} else {
requestScope.status = "No match";
}