Thanks Otis, see attached. The highlighting code is not used in production yet,
but from initial tests, highlighting works ok. Haven't really bothered to check
what changes need to be made to support RangeQuery as well.


On Wed, 10 Sep 2003 03:15:01 -0700 (PDT), Otis Gospodnetic said:
>Kevin,
>
>I think those two changes are okay.  Please submit a patch.  I imagine
>you already made those two changes in your local copy of Lucene and
>have actually been using it with your highlighting code....?
>
>Otis
>
>
>--- Kelvin Tan <[EMAIL PROTECTED]> wrote:
>>
>>
>>On Tue, 9 Sep 2003 15:02:25 -0700 (PDT), Otis Gospodnetic said:
>>>
>>>What do you think about a 1.3 release?
>>>I think we should resolve the JavaCC situation and them make the 1.3
>>>release.  Perhaps it would be best to include JavaCC-generated .java
>>>files in the CVS, as Doug described the other day.
>>
>>What about outstanding issues?
>>
>>I submitted a minor enhancement request at
>>http://issues.apache.org/bugzilla/show_bug.cgi?id=21921.
>>
>>Asking for a getPrefix method to PrefixQuery and to make
>>getEnum(IndexReader
>>reader) in MultiTermQuery a public method. Am happy to submit patch
>>if
>>necessary.
>>
>>Kelvin
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free, easy-to-use web site design software
>http://sitebuilder.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]



Index: src/java/org/apache/lucene/search/MultiTermQuery.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/MultiTermQuery.java,v
retrieving revision 1.9
diff -u -r1.9 MultiTermQuery.java
--- src/java/org/apache/lucene/search/MultiTermQuery.java 29 Jan 2003 17:18:54 -0000  
1.9
+++ src/java/org/apache/lucene/search/MultiTermQuery.java 11 Sep 2003 06:07:53 -0000
@@ -84,7 +84,7 @@
     public Term getTerm() { return term; }
 
     /** Construct the enumeration to be used, expanding the pattern term. */
-    protected abstract FilteredTermEnum getEnum(IndexReader reader)
+    public abstract FilteredTermEnum getEnum(IndexReader reader)
       throws IOException;
     
     public Query rewrite(IndexReader reader) throws IOException {
Index: src/java/org/apache/lucene/search/PrefixQuery.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/search/PrefixQuery.java,v
retrieving revision 1.6
diff -u -r1.6 PrefixQuery.java
--- src/java/org/apache/lucene/search/PrefixQuery.java  29 Jan 2003 17:18:55 -0000  1.6
+++ src/java/org/apache/lucene/search/PrefixQuery.java  11 Sep 2003 06:07:54 -0000
@@ -94,6 +94,11 @@
     return query;
   }
 
+    public Term getPrefix()
+    {
+        return prefix;
+    }
+
   public Query combine(Query[] queries) {
     return Query.mergeBooleanQueries(queries);
   }
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to