I couldn't figure out how to use the PharsePrefixQuery with a phase like "java* developer". It only provides method to add terms. Can a term contain wildcard character in lucene?
PhrasePrefixQuery requires that you write the code to lookup all the matching terms (for java* in your example). It will require a bit of custom coding to be able to parse a query like "java* developer" into a PhrasePrefixQuery. It is not something Lucene currently supports easily.
Erik
Thanks, Terence
On Wednesday 24 November 2004 08:16, Morus Walter wrote:
Lucene itself doesn't handle wildcards within phrases.
This can be added using PhrasePrefixQuery (which is slightly misnamed):
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/ PhrasePrefixQuery.html
Regards Daniel
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------- Get your free email account from http://www.trekspace.com Your Internet Virtual Desktop!
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
