Displaying 20 results from an estimated 10000 matches similar to: "Is it safe to delete ferret-write.lck if it is stale?"
2005 Dec 02
8
Ferret 0.3.0 released
Hi folks,
This latest release of Ferret has a lot of improvements. There have
been substantial improvements to performance. Try it for yourself to
see. I won''t be publishing any numbers just yet. I will say though
that it''s still about 2-4 times slower than Lucene with the extension
installed. There is also some performance improvements in the pure
Ruby version if you
2005 Dec 02
4
How to get the count of matching documents
I''m trying to generate a rails pagination helper for some ferret
search results, and I need to know how many total matches there are to
my search query. I don''t see an obvious way of finding this. Any
help would be appreciated.
Thanks,
Carl Youngblood
2005 Dec 03
3
How to avoid duplicate search results
I seem to be getting the same document multiple times in my search
results. I''m wondering if this is because by default a document is
placed in the search results every time the word you''re looking for
shows up. Is that the way it works?
Thanks,
Carl
2005 Dec 16
5
Ordering results by something other than relevance
Along with the contents of the documents in my index, I have stored
the date they were added. I want to search for keywords in the index
but have the results be sorted by their date rather than their
relevance to the keywords. How would I do this in ferret?
Thanks,
Carl
2005 Dec 14
2
undefined method `add'' for Ferret::Search::BooleanQuery
Up to now in my ferret development I have been using simple
single-word strings as my search queries. I just now am trying to
increase the complexity of my queries. When I was passing a single
word with no spaces in my index searches, like so:
count = index.search_each(''testing'') do |d, s|
...
end
everything worked fine. But now when I do something like this:
count =
2005 Dec 14
5
Query question
I have an index in which I want different records to be accessible to
different users. I think I can do this by adding a "users" field to
each record in the index and narrow down my queries to only those
records matching the current user''s userid. I have the userids
separated by commas. What would be the right way to query for a
certain user? I have to make sure that I
2005 Dec 02
1
Compile error on FreeBSD 4.10 gcc 2.95.4
FYI, I tried installing ferret on my freebsd virtual server and got this:
retango# gem install ferret --include-dependencies
Attempting local installation of ''ferret''
Local gem file not found: ferret*.gem
Attempting remote installation of ''ferret''
Updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
2005 Dec 14
4
Is it possible to highlight search keywords in results?
I''m wondering if ferret has any built-in search/replace mechanism that
I might be able to use to highlight the query data in each search
result. The reason I think this would be a good idea is that I could
end up having to practically duplicate the ferret query parser just to
interpret the query so that I can figure out how to highlight the
keywords in the search results. Just in case
2005 Nov 19
14
FULLTEXT search in MySQL on rails
I tried adding a FULLTEXT search index to a table of mine in MySQL,
only to discover that the InnoDB table format doesn''t seem to support
this feature. Switching to the MyISAM table type seemed to work, but
I seem to have some recollection that ActiveRecord transactions aren''t
fully atomic on MyISAM tables. Is this true or am I just remembering
wrong? If so, does anyone have
2005 Dec 08
2
Confusing lock problem in rails
I have a model class in rails that has a class variable that is a
ferret index. For some reason, the methods in my class that refer to
the class variable are getting lock conflicts. Can anybody see any
obvious reason why? I notice that it keeps leaving a lock file in the
index directory. I thought auto_flush was supposed to remove the lock
automatically after every operation. Is there
2006 Mar 06
1
C version of ferret?
Hey Dave, I understand you''ve been very busy lately, but I was really
excited when you said before Christmas sometime that you were soon to
release a fast C version of ferret. Is that still in the works? Do you
have even a rough ETA? I have a rails site that would greatly benefit from
it.
Thanks,
Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Feb 07
1
setting of :key to :id in cFerret
Hi Dave,
I''ve been reading this post below back in December 2005.
Is it possible to set :key to :id in cFerret like suggested below?
Thanks,
Mac
On 12/3/05, Carl Youngblood <carl at youngbloods.org
<http://rubyforge.org/mailman/listinfo/ferret-talk>> wrote:
>* I seem to be getting the same document multiple times in my search
*>* results. I''m wondering if
2005 Dec 02
1
cFerret ETA?
I''m noticing some long delays when optimizing my index. I know this
is terribly inefficient, but in order to make sure that my
ActiveRecord model is in sync with my index, I''m optimizing after
every new record that I store, like so:
class Resume < ActiveRecord::Base
include Ferret
has_and_belongs_to_many :users
SEARCH_INDEX = File.dirname(__FILE__) +
2005 Dec 09
1
Index returning ids that are one less than they should be
I''m saving records to an index like so:
index << {:id => id, :email => email, :contents => contents, :date => found_on}
In debugging my code, it appears that whatever I set a record''s id to,
when I find that record in a search, it returns the id minus 1, so if
the first record I store in my database has an id of one and I store
its counterpart in my index,
2006 Apr 16
1
Error upgrading to 0.9.1 on freebsd
I got some errors when running gem update to update my version of
ferret on freebsd:
Attempting remote upgrade of ferret
Attempting remote installation of ''ferret''
Building native extensions. This could take a while...
In file included from /usr/include/sys/time.h:40,
from /usr/local/lib/ruby/1.8/i386-freebsd4.10/missing.h:16,
from
2006 Apr 30
3
Locale not set error when trying to use C version in a rails app
I''m getting a locale not set error. Does anyone know how I should set
my locale in my rails environment so that ferret knows what to do?
Why isn''t this a problem in the ruby version of ferret?
Thanks,
Carl
2006 Apr 19
2
How to do case-sensitive searches
Forgive me if this topic has already been discussed on the list. I
googled but couldn''t find much. I''d like to search through text for
US state abbreviations that are written in capitals. What is the best
way to do this? I read somewhere that tokenized fields are stored in
the index in lowercase, so I am concerned that I will lose precision.
What is the best way to store a
2005 Dec 09
1
what exactly does close_dir option do?
I''m trying to figure out if I should be setting close_dir to true or
false when I access my index. It seems like this has something to do
with the state that the index is left in after one process is finished
using it, but it''s not clear exactly what this does. Can anybody
explain further?
Thanks,
Carl
2006 Oct 11
6
Indexing problem 10.9/10.10
Sorry if this is a repost- I wasn''t sure if the www.ruby-forum.com
list works for postings.
I''ve been having trouble with indexing a large amount of documents(2.4M).
Essentially, I have one process that is following the tutorial
dumping documents to an index stored on the file system. If I open the
index with another process, and run the size() method it is stuck at
a number
2006 Jun 11
3
Bus Error with Ferret 0.9.3 using the BooleanQuery api
Hey guys,
I''ve been trying out ferret 0.9.3 on my powerbook this weekend and I''ve
been triggering ''bus errors'' when using the Query API. If I
programmatically build up strings, it works just fine.
There''s some more information available in the trac ticket
http://ferret.davebalmain.com/trac/ticket/62
Is anyone successfully using the Query API on