[jsword-svn] jsword/java/jsword/org/crosswire/jsword/examples s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Sat Oct 9 14:45:07 MST 2004


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/examples
In directory www.crosswire.org:/tmp/cvs-serv30045/java/jsword/org/crosswire/jsword/examples

Modified Files:
	APIExamples.java 
Log Message:
indexing updates

Index: APIExamples.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/examples/APIExamples.java,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** APIExamples.java	5 Oct 2004 22:03:09 -0000	1.18
--- APIExamples.java	9 Oct 2004 21:45:05 -0000	1.19
***************
*** 17,21 ****
  import org.crosswire.jsword.book.BooksEvent;
  import org.crosswire.jsword.book.BooksListener;
- import org.crosswire.jsword.book.Search;
  import org.crosswire.jsword.passage.Key;
  import org.crosswire.jsword.passage.NoSuchKeyException;
--- 17,20 ----
***************
*** 124,128 ****
      /**
       * An example of how to search for various bits of data.
-      * @see Search
       */
      public void search() throws BookException
--- 123,126 ----
***************
*** 132,143 ****
          // This does a standard operator search. See the search documentation
          // for more examples of how to search
!         Search search = new Search("moses + aaron", false); //$NON-NLS-1$
!         Key key = bible.find(search);
  
          System.out.println("The following verses contain both moses and aaron: " + key.getName()); //$NON-NLS-1$
  
!         // Or you can do a best match search ...
!         search = new Search("for god so loves the world", true); //$NON-NLS-1$
!         key = bible.find(search);
  
          System.out.println("Trying to find verses like John 3:16: " + key.getName()); //$NON-NLS-1$
--- 130,139 ----
          // This does a standard operator search. See the search documentation
          // for more examples of how to search
!         Key key = bible.find("moses + aaron"); //$NON-NLS-1$
  
          System.out.println("The following verses contain both moses and aaron: " + key.getName()); //$NON-NLS-1$
  
!         // Or you can do a best match search, by enclosing the string in quotes ...
!         key = bible.find("\"for god so loves the world\""); //$NON-NLS-1$
  
          System.out.println("Trying to find verses like John 3:16: " + key.getName()); //$NON-NLS-1$



More information about the jsword-svn mailing list