Re: Query Match Count

2010-08-08 Thread Ryan McV
Thank you for your response. Unfortunately, I do need the frequency for all the hits. I downloaded your patch, and ofter applying it, It works! Thank you very much. How ever, I could not apply the patch using the patch command (I am on windows and using UnxUtils, could this be the problem). I had

Re: Query Match Count

2010-08-08 Thread Michael McCandless
Do you need this for a single document, eg for debugging? If so, IndexSearcher.explain can give you these details. If you need it for all hits, then Lucene does not make that easy today, which is somewhat frustrating because this information (freq of occurrence of each clause matching the current

Query Match Count

2010-08-07 Thread Ryan McV
Hello All, Is there a way to count the number of times a query matched in a particular document? For example, say we created a document that had the string "cheese cheese cheese cheese" in the field that is being searched. I would like to know that the query "cheese" matched four times in that pa