[jsword-svn] jsword/java/jsword/org/crosswire/jsword/book/search/lucene s

jswordcvs at crosswire.org jswordcvs at crosswire.org
Thu Mar 3 21:04:49 MST 2005


Update of /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/lucene
In directory www.crosswire.org:/tmp/cvs-serv25762/java/jsword/org/crosswire/jsword/book/search/lucene

Modified Files:
	LuceneIndex.java 
Log Message:
Added Sapphire to decrypt NASB.
Modified lots of code to use it.
Changed OSIS seg to hi for italic, bold and underline.

Index: LuceneIndex.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/lucene/LuceneIndex.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** LuceneIndex.java	15 Feb 2005 02:09:06 -0000	1.4
--- LuceneIndex.java	4 Mar 2005 04:04:47 -0000	1.5
***************
*** 8,12 ****
  
  import org.apache.lucene.analysis.Analyzer;
! import org.apache.lucene.analysis.standard.StandardAnalyzer;
  import org.apache.lucene.document.Document;
  import org.apache.lucene.document.Field;
--- 8,12 ----
  
  import org.apache.lucene.analysis.Analyzer;
! import org.apache.lucene.analysis.SimpleAnalyzer;
  import org.apache.lucene.document.Document;
  import org.apache.lucene.document.Field;
***************
*** 107,111 ****
                  // An index is created by opening an IndexWriter with the
                  // create argument set to true.
!                 IndexWriter writer = new IndexWriter(NetUtil.getAsFile(storage).getCanonicalPath(), new StandardAnalyzer(), true);
  
                  generateSearchIndexImpl(job, writer, book.getGlobalKeyList());
--- 107,111 ----
                  // An index is created by opening an IndexWriter with the
                  // create argument set to true.
!                 IndexWriter writer = new IndexWriter(NetUtil.getAsFile(storage).getCanonicalPath(), new SimpleAnalyzer(), true);
  
                  generateSearchIndexImpl(job, writer, book.getGlobalKeyList());
***************
*** 148,152 ****
                  try
                  {
!                     Analyzer analyzer = new StandardAnalyzer();
                      Query query = QueryParser.parse(search, LuceneIndex.FIELD_BODY, analyzer);
                      Hits hits = searcher.search(query);
--- 148,152 ----
                  try
                  {
!                     Analyzer analyzer = new SimpleAnalyzer();
                      Query query = QueryParser.parse(search, LuceneIndex.FIELD_BODY, analyzer);
                      Hits hits = searcher.search(query);



More information about the jsword-svn mailing list