JAVA/CORBA CLASSES
import lotus.domino.*; public class JavaAgent extends AgentBase { public void NotesMain() { try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); // (Your code goes here) Database db = agentContext.getCurrentDatabase(); db.updateFTIndex(true); View view = db.getView("By Category"); view.setAutoUpdate(false); ViewEntryCollection vec = view.getAllEntries(); vec.FTSearch("Spanish leather"); System.out.println("Query: \"" + vec.getQuery() + "\""); System.out.println("Number of entries = " + vec.getCount()); ViewEntry entry = vec.getFirstEntry(); while (entry != null) { System.out.println("Entry is at position " + entry.getPosition('.') + " - relevance score is " + entry.getFTSearchScore()); entry = vec.getNextEntry(); } } catch(Exception e) { e.printStackTrace(); } } }
See Also