Displaying 20 results from an estimated 1000 matches similar to: ""Illegal state of TermDocEnum" error"
2006 Oct 12
3
Ferret::StateError while using acts_as_ferret
I''m fairly new to ferret / aaf and finding it much easier to use than
HyperEstraier (which I migrated from). However, I am getting a few
errors and I need to figure out if they''re problems with my usage of
ferret or a bug I should report. I''m currently running Ferret 0.10.11
with acts_as_ferret (latest via svn external) and 3 times today I''ve
seen the
2007 Jan 27
0
concurrency errors adding to a keyed index
Hi,
I''m adding some news articles to a keyed Ferret 0.10.14 index and
encountering quite serious instability when concurrently reading and
writing to the index, even though with just 1 writer and 1 reader
process.
If I recreate the index without a key, concurrent reading and writing
seem to work fine (and indexing is about 10 times quicker :)
I''m testing by running my indexing
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
2007 Jan 28
1
test/functional/thread_safety_index_test.rb failures - segfaults too
Hi,
I just checked out ferret 0.10.14 from subversion and am getting
intermittent failures from the thread_safety_index_test.rb script.
Sometimes it runs through to the end with no errors, but other times I
get errors, including segfaults.
I reported the bug here: http://ferret.davebalmain.com/trac/ticket/153
Can anyone else reproduce this?
svn co
2007 Mar 06
2
ferret 0.11.3 - File Not Found
Hi,
I noticed a 0.11.3 release and gave it a whirl. I''ve so far not been
able to reproduce any segfaults with my ferret_killer[1] script, though
I do get some errors.
when the searching process is running and I start the indexing process,
I immediately get:
/usr/lib/ruby/gems/1.8/gems/ferret-0.11.3/lib/ferret/index.rb:692:in `latest?'': File Not Found Error occured at
2007 Mar 19
3
Concurrency Problem in 0.11.3
Hi,
I''m having some strange/random crashes with ferret when using different
programs on the same index.
I created a script to reproduce the errors:
http://www.sig11.org/~seb/ferret_crash.rb
Usage:
In one terminal run: ruby ferret_crash.rb first
In another terminal: ruby ferret_crash.rb
Errors I usually get are but it is really random:
2006 Nov 24
2
Strange error. Index corrupt on production server
We''ve been running Ferret for a few months on our site with great
result. But, just a monent ago the index suddenly became corrupt.
It all started with this error message:
:108250 is out of range [0..108183] for IndexWriter#[]
/usr/local/lib/ruby/gems/1.8/gems/ferret-0.10.9/lib/ferret/index.rb:382:in
`[]''
And after that every search resulted in this error:
A IOError
2007 Jun 28
0
Is anyone using ferret on Solaris/SPARC?
Ferret throws a bus error in the unit tests under Solaris, sun4u architecture.
http://ferret.davebalmain.com/trac/ticket/272
Bug reporter appears to be on Solaris 8 with Ruby 1.8.4. I''ve tried
on Solaris 10 (first release and 10/06, first without and then with
the most recent patch set), both with Ruby 1.8.6, and get exactly the
same error in the same spot. Tried with 0.11.4 and also
2006 Oct 17
9
Error : End-of-File Error occured at <except.c>
Everything was working fine till last night. This morning I have many
errors.
I am using acts_as_ferret. Last updated around a month ago on linux.
There are two different type of exceptions. I have over 12 exception
emails but these are the two distince types.
First exception:
A EOFError occurred in home#event_info:
End-of-File Error occured at <except.c>:79 in xraise
Error occured in
2005 Nov 26
3
Get number of found documents
Hi David again.
I would say that Ferret works great with Rails.
And now I am trying to create pagination. Because site could have millions
of documents I need to create on page link something like
"Page #100". Rather usual situation.
But to create this links I need to know how many documents Ferret found in
index.
For now I am doing it with following code
index =
2007 Mar 09
1
script to reproduce segfaults in 0.11.3
Hi,
I''ve adapted my ferret_killer1.rb script to reproduce the segfaults I''m
still having in my app with Ferret 0.11.3.
ferret_killer1 didn''t reproduce these - I had to add code to retrieve
the documents from the index after searching (and fixed the index
creation bug Dave spotted).
http://johnleach.co.uk/downloads/ruby/ferret/ferret_killer3.rb
To use, in one terminal
2007 Sep 09
1
MultiTerm query segfault - remote denial of service
Hi ferreteers,
I came across a segfault in the query parser. It had already been
reported[1] and fixed[2], but it can lead to a denial of service.
If you use Ferret anywhere that you allow users to execute queries,
those users can crash your Ruby process with a specially crafted
query.
I''m sure you''re all using Monit or something for your Rails or drb
processes, so
2007 Jan 21
14
[ActsAsFerret] OpenSolaris (TextDrive) indexing issues
Gents,
I successfully installed AAF on my TextDrive OpenSolaris Container, but
I''m having some issues with indexing.
I have a model called Blogs which has AAF enabled.
The first time I tried to find_by_contents for a ''word'' I know was on
the Database I got now results. Apparently the index was not ready yet.
Then I waited a few hours and checked that the /index
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 Aug 24
1
[0.10.0] Random error when big import
In a rails script (something in the "script" dir with the good require)
I added many document (around 4000) to an index globaly instanciate (and
build if not present) in config/environment.rb.
I ran 3 three times my script (I deleted my index every time before),
and only the third was successful. That was STRANGE ! :)
These are the errors :
2006 Oct 19
2
problem with queries
Hello,
I upgraded to ferret 0.10.10 and I noticed a strange behaviour with queries.
Now the queries return strange results. For example, the two following
queries return the same results:
familynames|firstnames:andre
familynames|firstnames:andr
Another example, the first query returns a correct result + incoherent
results, the second query returns only the correct result:
2006 Sep 27
2
Seg Fault - crashed our server
We were using ferret (with acts_as_ferret) on our production boxes.
Everything was going OK for a few days then we got a seg fault from it
that brought down the box.
The specs:
* Rails 1.1.6
* Ruby 1.8.4
* Ferret 0.10.6
* RedHat ES 3
* Apache
* Pound
* 5 instances of Mongrel
Can ferret handle multiple processes accessing it''s files at the same
time?
Not that we were doing this (but
2007 Apr 14
3
Error on optimize leads to corrupt index?
The following exception occurred while trying optimize a large index:
vendor/gems/rdig-0.3.4/lib/rdig/index.rb:46:in `optimize'': End-of-
File Error occured at <except.c>:93 in xraise (EOFError)
Error occured in store.c:216 - is_refill
current pos = 0, file length = 0
Now, I get the following error any time I try to create a new index
on the directory that I was trying
2006 Nov 20
0
End-of-File Error occured at <except.c>:79 in xraise
On an average I get this error twice or thrice a week. After I rebuild
the index Event.rebuild_index it works fine.
I''m a bit puzzled by this behavior. Why does this happen? I am using
AAF.
End-of-File Error occured at <except.c>:79 in xraise
Error occured in store.c:216 - is_refill
current pos = 301, file length = 301
/usr/local/lib/ruby/site_ruby/1.8/ferret/index.rb:517:in