RE: Small problem in searching

2005-09-16 Thread tirupathi reddy
Hello Luc, You are correct in that case. But if I have a string like manyamreddyvenkat. If I want to search for reddy, then I can't get that though I index all the entries in the reverse order. Is there any other way. Thanx, MTREDDY Tirupati Reddy Manyam 24-06-08, Sundugaullee-24, 791

Re: Small problem in searching

2005-09-16 Thread tirupathi reddy
Hello, I read the following statement : Note: You cannot use a * or ? symbol as the first character of a search. in this page: http://lucene.apache.org/java/docs/queryparsersyntax.html So that's why I thought of that. And at present I am using QueryParser. So it is giving error for *redd

Re: Small problem in searching

2005-09-16 Thread Erik Hatcher
Lucene's WildcardQuery *does* support "postfix" queries - however QueryParser does not allow such an expression to pass through. You can create a WildcardQuery with a Term("field", "*whatever") and search with that. All caveats about WildcardQuery, performance, and maximum number of boole

RE: Small problem in searching

2005-09-16 Thread Vanlerberghe, Luc
ike "*reddy", transform it into a prefix query like "ydder*" on the reversed field. Luc -Original Message- From: jian chen [mailto:[EMAIL PROTECTED] Sent: donderdag 15 september 2005 18:22 To: java-user@lucene.apache.org Subject: Re: Small problem in searching Hi, I

Re: Small problem in searching

2005-09-15 Thread jian chen
Hi, I think Lucene transforms the prefix match query into all sub queries where the searching for a prefix could result into search for all terms that begin with that prefix. For "postfix" match, I think you need to do more work than relying on Lucene's query parser. You can iterate over the

Small problem in searching

2005-09-15 Thread tirupathi reddy
Hi guys, I have some problem while searching using Lucene. Say I have some thing like "tirupathireddy" or "venkatreddy" in the index. When i search for string "reddy" I have to get those things (i.e. "tirupathireddy" and "venkatreddy"). I have read in Query syntax of Lucene that * wil