lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Analysis Question
Date Fri, 07 Aug 2009 09:26:02 GMT
You could write your own analyzer that worked out a boost as it
analyzed the document fields and had a getBoost() method that you
would call to get the value to add to the document as a separate
field.  If you write your own you can pass it what you like and it can
do whatever you want.


--
Ian.

On Thu, Aug 6, 2009 at 8:37 PM, Christopher Condit<condit@sdsc.edu> wrote:
> Hi Anshum-
>> You might want to look at writing a custom analyzer or something and
>> add a
>> document boost (while indexing) for documents containing those terms.
>
> Do you know how to access the document from an analyzer? It seems to only have access
to the field...
>
> Thanks,
> -Chris
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message