You can add phrase on the writer field.

I.e. with high boost of 3 and low boost of 2,
writing 'h' for 'heading' and 'w' for 'writer',
try this query:

h:sachin^3  d:tendulkar^3  w:sachin^2  w:tendulkar^2  w:"h:Sachin
Tendulkar"^6

On Jan 29, 2008 9:23 AM, Sure <[EMAIL PROTECTED]> wrote:

>
> Hi All,
> We are having an index with the fields, HEADING and WRITER.
> HEADING is having the high boost factor and WRITER is having a low boost.
>
> Let the data is as follows:
>
> HEADING                                          WRITER
>
> Sachin Tendulkar scored century           XYZ
> Australia won the series                      Sachin Tendulkar
>
> Here if we search for "Sachin Tendulkar" in the index, as HEADING is
> having
> high boost, that will be displayed first. But here we want to display the
> document with WRITER as "Sachin Tendulkar", if it exact match. If we
> search
> for the word "Sachin", what is working now should remain.
>
> How can we do this?
>
> Regards,
> Suresh N.
> --
> View this message in context:
> http://www.nabble.com/Some-Help-needed-in-search.-tp15153692p15153692.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to