How to perform a phrase "begins with" query?

2009-09-17 Thread Paul_Murdoch
Hi all, Since you can't (and it doesn't make sense to) use wildcards in phrase queries, how do you construct a query to get results for phrases that begin with a certain set of terms? Here are some theoretical examples... Example 1 - I have an index where each document contains the content

Re: How to perform a phrase "begins with" query?

2009-09-17 Thread AHMET ARSLAN
> Since you can't (and it doesn't make sense to) use > wildcards in phrase > queries, how do you construct a query to get results for > phrases that begin with a certain set of terms?  > Here are some theoretical examples... > > > Example 1 - I have an index where each document contains > the co

Re: How to perform a phrase "begins with" query?

2009-09-17 Thread Mark Harwood
Since you can't (and it doesn't make sense to) use wildcards in phrase queries, You can with this: http://svn.apache.org/repos/asf/lucene/java/trunk/contrib/misc/src/java/org/apache/lucene/queryParser/complexPhrase/ Discussion here: http://tinyurl.com/lrnage Cheers, Mark