指定された文書が文書コレクションに含まれるかどうかを示します。
パラメータ | 説明 |
---|---|
noteid | 文書の文書 ID。 |
documents | 種類が NotesDocument、NotesDocumentCollection、NotesViewEntry、NotesViewEntryCollection のオブジェクトです。ビューエントリは文書を指す必要があります。 |
戻り値 | 説明 |
---|---|
boolean | 指定された文書がこの文書コレクションに含まれる場合は true、含まれない場合は false を返します。 |
パラメータが空のコレクションの場合、このメソッドは true を返します。
try {
var noteid:string = currentDocument.getDocument().getNoteID();
var dc:NotesDocumentCollection = database.getAllDocuments();
var query:string = requestScope.query;
if (!query.isEmpty()) {
query = "¥"" + query + "¥"";
database.updateFTIndex(true);
dc.FTSearch(query);
if (dc.contains(noteid)) {
requestScope.status = "Current document contains query";
} else {
requestScope.status = "Current document does not contain query";
}
} else {
requestScope.status = "No query";
}
} catch(e) {
requestScope.status = e.message;
}