Hi koji,
please give me an example.  Let me explain what I want to do:
I have indexed some documents. Now I want to update the ranking of the
documents based on following criteria:

1.) The documents which come into search result should get one point
2.) The documents which are viewed by the user should get one point
3.) Boost the document as per the rating (suppose 1-5) given by the user.

I have only one field in my index that is content of the document.

Now how to update the boost factor of the indexed docuements without
deleting them first from the index.

Thanks & Regards,
Rohit


On 8/10/07, Koji Sekiguchi <[EMAIL PROTECTED]> wrote:
>
> Or, you can use FieldNormModifier class to modify existing fieldNorm:
>
> $ java org.apache.lucene.index.FieldNormModifier path-to-index
> your.Similarity field1 [field2 ...]
>
> To do this, you have to write your own Similarity class to adjust boost,
> via lengthNorm().
>
> Thank you,
>
> Koji
>
> rohit saini wrote:
> > Thanks a lot Grant
> > I have been trying to do so....could u please send me example of doing
> the
> > way u r talking .....
> >
> > Again thanks so much...
> > Regards,
> > Rohit
> >
> >
> > On 8/10/07, Grant Ingersoll <[EMAIL PROTECTED]> wrote:
> >
> >> You can't.  You have to delete and reindex the document with the new
> >> boost.
> >>
> >> On Aug 9, 2007, at 11:59 PM, rohit saini wrote:
> >>
> >>
> >>> Hi,
> >>> could u pl. tell me how to update boost factor of already indexed
> >>> document
> >>> using setBoost.
> >>>
> >>> Thanks & regards,
> >>> Rohit
> >>>
> >>> --
> >>> VANDE - MATRAM
> >>>
> >> --------------------------
> >> Grant Ingersoll
> >> http://lucene.grantingersoll.com
> >>
> >> Lucene Helpful Hints:
> >> http://wiki.apache.org/lucene-java/BasicsOfPerformance
> >> http://wiki.apache.org/lucene-java/LuceneFAQ
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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]
>
>


-- 
VANDE - MATRAM

Reply via email to