mirror of
https://github.com/apache/lucene.git
synced 2025-02-21 17:46:28 +00:00
Fix compile error: Was referring to old com.lucene.* packages.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@149594 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
891209bfd3
commit
9bd3152b06
@ -59,13 +59,13 @@ options {
|
||||
|
||||
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 @@ public class QueryParser {
|
||||
|
||||
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 @@ public class QueryParser {
|
||||
// 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 class QueryParser {
|
||||
|
||||
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"));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user