Examples of processDocument()


Examples of org.openntf.domino.helpers.DocumentScanner.processDocument()

  public Map<?, ?> scanDatabase(final org.openntf.domino.Database db) {
    // DocumentScanner looks at values of all string-based items in a document
    DocumentScanner scanner = new DocumentScanner();
    for (org.openntf.domino.Document doc : db.getAllDocuments()) {
      scanner.processDocument(doc);
    }
    // The FieldTokenMap returns a Map with a key of the item name, and a sorted set of the unique strings in each of those items
    // Sample uses: Predictive typeahead, custom indexing, external term matching
    return scanner.getFieldTokenMap();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.