lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doron Cohen <DOR...@il.ibm.com>
Subject Re: Searching with "1"
Date Mon, 25 Sep 2006 18:01:56 GMT

> My QueryParser looks like this:
> query = QueryParser.parse("1*","allText",analyzer);
>
> analyzer is predetermited for this class.  Is there something special I
> should be setting in this to allow for this search string?

Is it a custom analyzer or one of Lucene's analyzers?
Examining the result query will tell if the used analyzer is causing you
trouble: what would be printed by adding the following lines just after you
create the query?

  System.out.println("For qtxt 1* the result query is" + query);
  System.out.println("The analyzer in use is:
"+analyzer.getClass().getName() + " - " + analyzer);



---------------------------------------------------------------------
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