lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "pratik shinghal" <pratikshing...@gmail.com>
Subject code
Date Thu, 28 Jun 2007 07:43:48 GMT
i m using lucene(org.apache.lucene) and i want the java code for parsing
single character string..

my code is :

QueryParser qp  = new QueryParser("",analyser);
String  str = " track 9";
Query que =  qp.parse(str);
System.out.println(que);

and i want the answer as  :    track ,  9


but i m getting only "track"  and not getting  "9" .
so tell me which analyser & queryparser i should use and kindly give me the
 java code for the same , as i m new to
lucene.


-- 
Pratik Shinghal

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message