[EMAIL PROTECTED] wrote:
Thanks for the post. BoostingQuery looks to be cleaner, faster and more generally useful than my implementation :-)

Great! Glad to hear it was useful.


BTW, I've had a thought about your suggestion for making the highlighter use some form of RAMindex of sentence fragments
and then querying it to get the best fragments. This is nice in theory but could fail to find anything if the query is of these forms:
a AND b "a b" When the code that breaks a doc into "sentence docs" splits co-occuring "a" and "b" terms into seperate docs
this would produce no match. I dont think there's an easy way round that so I'll stick to the current approach of scoring
fragments simply based on terms found in the query.

You could, if you fail to find any fragments that match the entire query, re-query the fragments with a flattened query containing just an OR of all of the original query terms.


Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to