Updates the full-text index of a database.
Parameter | Description |
---|---|
create | Specify true if you want to create an index if none exists (valid only for local databases). Otherwise, specify false. |
if (database.isFTIndexed()) {
database.updateFTIndex(false)
} else {
database.createFTIndex(0, true)
}
var list = "";
var dc = database.FTSearch("new");
var doc = dc.getFirstDocument();
while (doc != null) {
list = list + doc.getItemValueString("Subject") + "\n";
doc = dc.getNextDocument();
}
return list
database.updateFTIndex(true);
var list = "";
var dc = database.FTSearch("new");
var doc = dc.getFirstDocument();
while (doc != null) {
list = list + doc.getItemValueString("Subject") + "\n";
doc = dc.getNextDocument();
}
return list
UpdateFTIndex method in LotusScript® NotesDatabase class
updateFTIndex method in Java™ Database class