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