RE: Multi Phrase Search at the Beginning of a field

2008-09-03 Thread ext-vinay.thota
Excellent, it worked :) Thank you Tori!! Regards, Vinay >-Original Message- >From: ext Andraz Tori [mailto:[EMAIL PROTECTED] >Sent: 01 September, 2008 16:39 >To: java-dev@lucene.apache.org >Subject: Re: Multi Phrase Search at the Beginning of a field > >You c

Re: Multi Phrase Search at the Beginning of a field

2008-09-01 Thread Andraz Tori
You can use standard trick. Insert a special token at the beginning of every field you are indexing, and add that special token to beginning of every query. Since this token will not occur anywhere else in the field, you will know that your queries match only beginnings of fields bye andraz On

Multi Phrase Search at the Beginning of a field

2008-09-01 Thread ext-vinay.thota
Hi, Can some one please help me in providing a solution for my problem: I have a single field defined in my document. Now I want to do a MultiPhraseQuery - but at the beginning of the field. For e.g: If there are 3 documents with single field ( say 'title' ) has the values -> "Hello Love you",