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<[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
