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

jswordcvs at crosswire.org jswordcvs at crosswire.org
Mon Feb 14 19:09:08 MST 2005


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

Modified Files:
	LuceneIndex.java 
Log Message:
Refactored the installer to a new package.
Fixed a bug in the indexer to use OSIS names.
Fixed a bug in the English names.
Did some optimizing.

Index: LuceneIndex.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/book/search/lucene/LuceneIndex.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** LuceneIndex.java	27 Jan 2005 02:18:34 -0000	1.3
--- LuceneIndex.java	15 Feb 2005 02:09:06 -0000	1.4
***************
*** 248,252 ****
  
                  Document doc = new Document();
!                 doc.add(Field.UnIndexed(FIELD_NAME, subkey.getName()));
                  doc.add(Field.Text(FIELD_BODY, reader));
  
--- 248,252 ----
  
                  Document doc = new Document();
!                 doc.add(Field.UnIndexed(FIELD_NAME, subkey.getOSISName()));
                  doc.add(Field.Text(FIELD_BODY, reader));
  
***************
*** 296,308 ****
      private static final Logger log = Logger.getLogger(LuceneIndex.class);
  
      /**
       * The Lucene field for the verse name
       */
!     protected static final String FIELD_NAME = "name"; //$NON-NLS-1$
  
      /**
       * The Lucene field for the verse contents
       */
!     protected static final String FIELD_BODY = "body"; //$NON-NLS-1$
  
      /**
--- 296,316 ----
      private static final Logger log = Logger.getLogger(LuceneIndex.class);
  
+     /* The following fields are named the same as Sword in the hopes of
+      * sharing indexes.
+      */
      /**
       * The Lucene field for the verse name
       */
!     protected static final String FIELD_NAME = "key"; //$NON-NLS-1$
  
      /**
       * The Lucene field for the verse contents
       */
!     protected static final String FIELD_BODY = "content"; //$NON-NLS-1$
! 
!     /**
!      * The Lucene field for the strong numbers
!      */
!     protected static final String FIELD_STRONG = "strong"; //$NON-NLS-1$
  
      /**



More information about the jsword-svn mailing list