Displaying 20 results from an estimated 33 matches for "johnleach".
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 Mar 09
1
script to reproduce segfaults in 0.11.3
...dapted 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 run: ./ferret_killer3.rb index
In another terminal: ./ferret_killer3.rb search
the search process will segfault after a couple of searches or so:
ferret_killer3.rb:64: [BUG] Segmentation fault
ruby 1.8.5 (2006-08-25) [i486-lin...
2007 Jan 28
1
test/functional/thread_safety_index_test.rb failures - segfaults too
...dditionally, I encountered problems running "rake ext" on a box that
already has Ferret 0.10.14 installed as a gem. You may need to do this
on a box without Ferret already installed (or figure out why it fails to
build and fix it :)
I''m on Ubuntu Edgy.
Thanks,
John.
--
http://johnleach.co.uk
2007 Sep 09
1
MultiTerm query segfault - remote denial of service
...tes (not to mention slowing
development of a current app) so I applied the fix to the released
0.11.4 source and repackaged it as 0.11.4.1.
Obviously this isn''t in any way official, but it works for me and I''m
sharing here for anyone else affected. Gem, tgz and zip here:
http://johnleach.co.uk/downloads/ruby/ferret/ferret-0.11.4.1/
and just the patch (derived from Dave''s changeset to trunk) here:
http://johnleach.co.uk/downloads/ruby/ferret/ferret-0.11.4-fix-multiterm-segfault.patch
The patch is against the release source, as the subversion repository
seems to be down a...
2007 Feb 28
4
Ferret 0.11.2-rc3 released
Hey guys,
I''ve just removed the -fno-stack-protector flag from the release so
those who had trouble because of this should now be able to install
0.11.2-rc3. If you have any problems with this release, please let me
ASAP.
Cheers,
Dave
--
Dave Balmain
http://www.davebalmain.com/
2006 Jan 04
4
many to many link table compound primary key explosion
...for a workaround? I currently add answers to questions like
this: @question.answers << @answer. Should I just implement an
push_unique_answer method to the questions model and check for existing
links there first? Or override the @question.answers method?
Thanks in advance,
John.
http://johnleach.co.uk
create table answers_questions (
question_id int unsigned not null,
answer_id int unsigned not null,
constraint fk_qid foreign key (question_id) references questions(id),
constraint fk_aid foreign key (answer_id) references answers(id),
primary key (question_id, answer_id)
) ENGINE...
2007 Feb 22
4
Ferret progress update
Hi folks,
Just thought I better let you all know that I''m still working on the
next release of Ferret. I''ve been working the last 7 days doing
nothing but Ferret development. The last iteration generated a diff of
almost 5000 lines so there are some pretty major changes. Most people
won''t notice these changes however as the API remains unchanged. But
if you were having
2007 Apr 19
7
Lock errors and segfaults
Greetings,
I''ve been using ferret with great results now for a while, but in the last week, I''ve
been running into some issues.
I will occasionally see this message:
Exception Message: Lock Error occured at <except.c>:103 in xpop_context
Error occured in index.c:5368 - iw_open
Couldn''t obtain write lock when opening IndexWriter
Which is accompanied by
2006 Mar 29
3
tagtools vs acts_as_taggable
tagtools and acts_as_taggable are both folksonomy tools for rails,any
one who has used them both and can give a compare between them?
Grateful!
--
Posted via http://www.ruby-forum.com/.
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:
2005 May 23
2
VPN
...while on the second location we have a Centos3
box Natting via iptables the internal 192.168.10.x netowrk. My goal is
to connect this 2 over the internet via IPsec. I created the IPsec
Net2Net via the network configuration graphic tool, and I configured the
cisco following the howto
http://www.johnleach.co.uk/documents/freeswan-pix/freeswan-pix.html .
From my understanding, I should have an ipsec0 network device showing
up, so that I could route all traffic from 192.168.10.x directed to
192.168.100.x through it. The thing is that when I try to ifup ipsec0 I
get the following errors:
modprobe...
2007 Feb 19
2
Ferret seg-faulting during search
Hi,
I''m using ferret and running into troubles with it seg faulting during
searches. The index I''m searching is static and is only updated in an
offline way once every couple weeks.
The segfault isn''t deterministically reproducible, but if I hammer
ferret hard enough I can reliably get it to crash. The problem seems to
have something to do with how memory is shared
2007 Mar 06
2
ferret 0.11.3 - File Not Found
...nchronize''
from /usr/lib/ruby/gems/1.8/gems/ferret-0.11.3/lib/ferret/index.rb:8:in `synchrolock''
from /usr/lib/ruby/gems/1.8/gems/ferret-0.11.3/lib/ferret/index.rb:267:in `<<''
from ferret_killer1.rb:50
Hope this is useful,
John.
[1] http://johnleach.co.uk/downloads/ruby/ferret/ferret_killer1.rb
2007 Jun 04
2
Memory concerns ferret 11.4.
Hi list,
We just built our own ferret drb server (mostly because we don''t do
an indexing from within rails).
The ferret drb server only handles index inserts and some deletes.
Usually we make batch inserts were we retrieve a couple of hundred or
thousands of documents from a database and then inserts them inte
ferret one by one.
We call flush every 50th file. We are very impressed
2008 Jan 25
4
ferret success stories?
Hi all,
there was a recent thread[1] on rails-deploy about Ferret in which a lot
of people complained of problems using it in production.
I''ve been using Ferret (with DRb) for many months now with no serious
issues. I''m assuming the posters know what they''re doing so I''m
guessing they''re just using Ferret in higher-scale environments than me.
I
2007 Jun 15
2
Ferret and capistrano, how to keep the indexes?
Hi, i''m using capistrano to deploy the application, but every time i
deploy it change all the directory, so i lost also the ferret''s indexes.
Is it possible to keep them in order to prevent the reindex on each
deploy?
--
Posted via http://www.ruby-forum.com/.
2007 May 14
3
How to make a Tag cloud with Ferret ?
Hello,
I want to make a TAG CLOUD using ferret.
How can i do so ?
I would need to know the amount of keyword for every each words in the
index.
Thank you
--
Posted via http://www.ruby-forum.com/.
2007 May 31
2
Ferret.donate(Money.aus_dollar(200))
...e him
in the street buy him lunch[1]. He looks like this:
http://www.xing.com/profile/Jens_Kraemer2
Keep a close eye out for him.
Happy Ferreting,
John[2].
[1] Check his dietary requirements first.
[2] Random disinterested third party - not involved in the consumption
of donations.
--
http://johnleach.co.uk
2007 Apr 19
0
Time and DateTime default precision :day not :second ?
Hi all,
according to the docs, the default precision for the Ferret Time
to_s_lex function is :day. Should this not be :second?
This is the same on DateTime. (Same on Date too, but that seems ok)
http://ferret.davebalmain.com/api/classes/Time.html
John.
--
http://johnleach.co.uk
2007 Apr 20
1
Launching DRb server on reboot
I''m hoping for a little insight. We''re using ferret with DRb server
and having a hard time getting it to come back up on reboot of the
machine.
In our RAILS_ROOT directory, we''ve got a script named start_ferret.
Here''s the content:
#!/bin/bash
FERRET_USE_LOCAL_INDEX=1 script/runner -e production
vendor/plugins/acts_as_ferret/script/ferret_start