search for: termdocenum

Displaying 6 results from an estimated 6 matches for "termdocenum".

2007 Feb 07
0
"Illegal state of TermDocEnum" error
Hi, I''ve upset Ferret (again). When searching for: "us military" -bomb I get the following exception: State Error occured at <except.c>:79 in xraise Error occured in index.c:2089 - stde_doc_num Illegal state of TermDocEnum. You must call #next before you call #doc_num If I drop the quotes around "us military", or drop "-bomb", it works fine. I can search for -bomb on it''s own, and other variations successfully. I''ve tried recreating the index from scratch too. The only way I&...
2007 Apr 28
6
Determine how many documents a term occurs in
Is there a fast way to determine how many documents a term occurs in, besides iterating through every document with TermDocEnum? -- Best regards, Stian Gryt?yr
2006 Oct 12
3
Ferret::StateError while using acts_as_ferret
...1 with acts_as_ferret (latest via svn external) and 3 times today I''ve seen the following error in production: A Ferret::StateError occurred in directory#search: State Error occurred at <except.c>:79 in xraise Error occurred in index.c:2098 - stde_doc_num Illegal state of TermDocEnum. You must call #next before you call #doc_num /usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.11/lib/ferret/index.rb:370:in `search.each'' The index in question is on a single model and contains about 330K items. I''m not doing anything unusual as far as I know -- just a call...
2007 Apr 06
3
Count frequency of term in a specific document?
Is there any way to count the frequency of specific term in one document? I can''t find any method... Do you? -- Posted via http://www.ruby-forum.com/.
2007 Apr 03
2
How can I count frequency of terms in a document?
Hi, there. I need some help. 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. Some way?? -- Posted via http://www.ruby-forum.com/.
2006 Jul 04
3
Recalculating the score
Hey .. I''m using ferret to index various objects and i''m create a Ferret::Document for each of these objects. Indexing and searching is working fine. Each of these Ferret::Documents has a ''relevance'' field, storing an integer, how relevant this object is for the search. The ''relevance'' is in the range of 1..10 Now i would like to