Re: Analysis Question

2009-08-07 Thread Ian Lea
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.

RE: Analysis Question

2009-08-06 Thread Christopher Condit
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 ---

Re: Analysis Question

2009-08-06 Thread Anshum
Hi Cristopher, You might want to look at writing a custom analyzer or something and add a document boost (while indexing) for documents containing those terms. -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the opinions to me. The distinctio

RE: Analysis Question

2009-08-05 Thread Christopher Condit
Perhaps a better question: let's say I have a few thousand terms or phrases. I want to prefer documents with these phrases in my search results over documents that do not have these terms or phrases. What's the best way to accomplish this? Thanks, -Chris > -Original Message- > From: Chri