James Kim wrote:
> Is there a way to count frequencies of terms in a document on Ferret?
> I know that Ferret has IndexReader#terms_docs_for method which counts
> all documents.
> I need to count frequencies of terms in a specific document.

I believe that IndexReader#term_vector is the method that you're looking 
for. This gives you some information about each term in one document... 
If you stored of positions when you indexed, the individual terms will 
have a list of positions associated. The size of that list is the term 
frequency.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to