lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottga...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/queryParser QueryParser.jj
Date Wed, 26 Sep 2001 14:38:34 GMT
scottganyo    01/09/26 07:38:34

  Modified:    src/java/org/apache/lucene/queryParser QueryParser.jj
  Log:
  Fix compile error: Was referring to old com.lucene.* packages.
  
  Revision  Changes    Path
  1.3       +7 -7      jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj
  
  Index: QueryParser.jj
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/queryParser/QueryParser.jj,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- QueryParser.jj	2001/09/25 21:54:18	1.2
  +++ QueryParser.jj	2001/09/26 14:38:34	1.3
  @@ -59,13 +59,13 @@
   
   PARSER_BEGIN(QueryParser)
   
  -package com.lucene.queryParser;
  +package org.apache.lucene.queryParser;
   
   import java.util.Vector;
   import java.io.*;
  -import com.lucene.index.Term;
  -import com.lucene.analysis.*;
  -import com.lucene.search.*;
  +import org.apache.lucene.index.Term;
  +import org.apache.lucene.analysis.*;
  +import org.apache.lucene.search.*;
   
   /**
    * This class is generated by JavaCC.  The only method that clients should need
  @@ -170,7 +170,7 @@
       
       TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));
       Vector v = new Vector();
  -    com.lucene.analysis.Token t;
  +    org.apache.lucene.analysis.Token t;
   
       while (true) {
         try {
  @@ -202,7 +202,7 @@
       // Use the analyzer to get all the tokens.  There should be 1 or 2.
       TokenStream source = analyzer.tokenStream(field, new StringReader(queryText));
       Term[] terms = new Term[2];
  -    com.lucene.analysis.Token t;
  +    org.apache.lucene.analysis.Token t;
   
       for (int i = 0; i < 2; i++)
       {
  @@ -228,7 +228,7 @@
   
     public static void main(String[] args) throws Exception {
       QueryParser qp = new QueryParser("field", 
  -                                     new com.lucene.analysis.SimpleAnalyzer());
  +                                     new org.apache.lucene.analysis.SimpleAnalyzer());
       Query q = qp.parse(args[0]);
       System.out.println(q.toString("field"));
     }
  
  
  

Mime
View raw message