Home > Ask the Domino Experts > Questions & Answers > Can LotusScript update a database's index?
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Can LotusScript update a database's index?

Brian Mahoney EXPERT RESPONSE FROM: Brian Mahoney

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site
>
QUESTION POSED ON: 08 March 2004
Is it possible to update a database's index via LotusScript instead of manually updating it via the database properties tab? The index is already created, but I would like a user to update documents that are not indexed manually.

>
To update the full text index, you need to have at least Designer access to the database. You can set the full text indexing to Immediate, and the server will reindex the database shortly after documents are created or modified, depending on the indexing load on the server. You can update the full text index using LotusScript. The following example comes from the help document entitled "LastFTIndexed property."

This script checks if the current database has been modified since the time it was last full-text indexed. If so, it updates the index.

Dim session As New NotesSession
Dim db As NotesDatabase
Set db = session.CurrentDatabase
If ( db.LastModified > db.LastFTIndexed ) 
Then
  Call db.UpdateFTIndex( False )
End If

Do you have comments on this Ask the Expert Q&A? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts