lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tirupathi reddy <>
Subject Re: Small problem in searching
Date Fri, 16 Sep 2005 22:02:11 GMT
     I read the following statement :
Note: You cannot use a * or ? symbol as the first character of a search.

in this page:

So that's why I thought of that. And at present I am using QueryParser. So it is giving error
for *reddy*. I am very new to this. And I have to submit my application by next week. So please
help me how can I use WildcardQuery method instead of QueryParser.
At this time I have query like:  id:manyam* AND author:*reddy* OR title:"measurement procedure".
and I am passing it to QueryParser as follows
query = QueryParser.parse(query1,"ALL",analyzer);
and calling the search method of Searcher class as follows
Hits hits =;
So can u please help me to modify this code to use WildcardQuery so that I can use *reddy*.

Tirupati Reddy Manyam 
79110 Freiburg 

Phone: 00497618811257 
cell : 004917624649007

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message