lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <karl.wet...@gmail.com>
Subject Re: [jira] Commented: (LUCENE-550) InstanciatedIndex - faster but memory consuming index
Date Wed, 26 Jul 2006 21:10:22 GMT
On Wed, 2006-07-26 at 13:56 -0700, Otis Gospodnetic wrote:
> 
> I haven't exactly looked at the source code in your branch, but I
> always wondered how changes in your personal branch off of Lucene 2
> will ever get into the main trunk, since your efforts are, I think,
> omstly out of sync with patches and changes people are making in HEAD.


It's quite up to date with the head now. Required changes are:

Index: org/apache/lucene/index/IndexWriter.java
===================================================================
--- org/apache/lucene/index/IndexWriter.java	(revision 424734)
+++ org/apache/lucene/index/IndexWriter.java	(working copy)
@@ -56,7 +56,7 @@
   @see IndexModifier IndexModifier supports the important methods of
IndexWriter plus deletion
   */
 
-public class IndexWriter {
+public class IndexWriter implements InterfaceIndexWriter {
 
   /**
    * Default value for the write lock timeout (1,000).
Index: org/apache/lucene/index/Term.java
===================================================================
--- org/apache/lucene/index/Term.java	(revision 424734)
+++ org/apache/lucene/index/Term.java	(working copy)
@@ -24,7 +24,8 @@
   Note that terms may represent more than words from text fields, but
also
   things like dates, email addresses, urls, etc.  */
 
-public final class Term implements Comparable, java.io.Serializable {
+public class Term implements Comparable, java.io.Serializable {
+  private static final long serialVersionUID = 1l;  
   String field;
   String text;
 
Index: org/apache/lucene/document/Document.java
===================================================================
--- org/apache/lucene/document/Document.java	(revision 424734)
+++ org/apache/lucene/document/Document.java	(working copy)
@@ -36,7 +36,8 @@
  * IndexReader#document(int)}.
  */
 
-public final class Document implements java.io.Serializable {
+public class Document implements java.io.Serializable {
+  private static final long serialVersionUID = 1l;  
   List fields = new Vector();
   private float boost = 1.0f;
 



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message