Displaying 14 results from an estimated 14 matches for "nappin713".
2006 Dec 06
1
AAF - Stem Analyzer
I''m not on AAF. Can someone else help Raymond with an example?
On 12/6/06, Raymond O''connor <nappin713 at yahoo.com> wrote:
>
> Matt Schnitz wrote:
> > You also need to stem-analyze the incoming query.
> >
> > I had this same problem. :^>
> >
> >
> > Schnitz
>
> Do you have an example of how to do this? I''m using AAF.
> Thanks,
> R...
2007 Feb 27
3
segfault in ferret 0.11.0
Hi,
Just downloaded the new ferret 0.11. I''m on OSX btw. I get this error
everytime I run my unit tests:
Loaded suite ferret_updater_unit_test
Started
E/usr/local/lib/ruby/1.8/erb.rb:504: [BUG] Segmentation fault
ruby 1.8.4 (2005-12-24) [i686-darwin8.7.1]
Abort trap
When I revert back to 10.14 I dont get this error. When I comment out
the line:
Ferret::Index::Index.new({:path =>
2007 Mar 09
0
Fwd: Mocha raise exception first call, return value second call
---------- Forwarded message ----------
From: James Mead <jamesmead44 at gmail.com>
Date: 07-Mar-2007 10:04
Subject: Re: Mocha raise exception first call, return value second call
To: ruby-talk at ruby-lang.org
On 07/03/07, Raymond O''Connor <nappin713 at yahoo.com> wrote:
>
> Is there a way to have mocha raise an exception the first time an stub
> is called, and then return a value the second time it is called?
>
> First example, I''m trying to connect to a server and test the case where
> my first attempt raises a &...
2007 Feb 23
0
Fwd: Mocha test retry to connect up to 10 times
---------- Forwarded message ----------
From: Raymond O''connor <nappin713 at yahoo.com>
Date: 23-Feb-2007 08:20
Subject: Re: Mocha test retry to connect up to 10 times
To: ruby-talk ML <ruby-talk at ruby-lang.org>
Hemant Kumar wrote:
> On Fri, 2007-02-23 at 14:57 +0900, Raymond O''connor wrote:
>>
>> Any help would be greatly appreciated,...
2006 Sep 22
4
IOError on clearing locks
Hi all,
I''ve got a slight problem with using Ferret in unit tests. In order to
create as little cross-contamination between test suites as possible,
some of my tests are creating a fresh index per test case, and then
calling Index#close and deleting the containing dir during the teardown.
The problem comes when GC.start kicks in after the deleting the directory:
IOError: IO Error
2006 Dec 06
10
Stem Analyzer
Hi all,
I am trying to implement a search that will use the Stem Analyzer. I
added the Stem Anaylzer from the examples shown in another post
http://ruby-forum.com/topic/80178#147014
module Ferret::Analysis
class StemmingAnalyzer
def token_stream(field, text)
StemFilter.new(StandardTokenizer.new(text))
end
end
end
The problem with the Stem analyzer is that when I search for a
2007 Jul 26
0
Fuzzy Searches with Multiple Terms
I''m having trouble getting fuzzy searches to work with multiple search
terms.
Let''s say searching ''foo'' returns results, ''bar'' returns results and
''foo bar'' returns results. When I do this
fou~ bar~
it returns nothing. This, however, works fine:
fou~ bar
I want the fuzzy search to apply to each word, and this seems to
2006 Dec 05
1
Store Compressed Option
I noticed that store has a ''compressed'' option, but was unsure what
advantages/disadvantages are associated with it versus using the normal
or ''yes'' option. Does anyone know?
Cheers!
--
Posted via http://www.ruby-forum.com/.
2006 Dec 11
1
exact searches
Is there a way to search a ferret index and have it only display exact
matches?
I read in other posts that you should have an untokenized field for the
exact matches, but I also use the same field for doing unexact matches
too (with the stemming analyzer). Would I need a copy of this field in
the index untokenized to do an exact match or is there any sort of flag
or something I could pass to
2006 Nov 28
4
Update/Create record only if field is true
I have a sellable flag in my database. I''m trying to have ferret only
add/update records where sellable == true. What is the best way to do
this? I''ve tried editing instance_methods.rb in the AAF, but I still
can''t get it to work.
Thanks for the help
--
Posted via http://www.ruby-forum.com/.
2007 Jan 22
7
memcache
Just curious, is there anyway to use memcache with a ferret index?
Thanks,
Ray
--
Posted via http://www.ruby-forum.com/.
2006 Dec 08
4
Using custom stem analyzer giving mongrel errors
I''m using the custom stem analyzer:
require ''rubygems''
require ''ferret''
include Ferret
module Ferret::Analysis
class FerretAnalyzer
def initialize(stop_words = FULL_ENGLISH_STOP_WORDS)
@stop_words = stop_words
end
def token_stream(field, text)
StemFilter.new(StopFilter.new(LowerCaseFilter.new(StandardTokenizer.new(text)),
2007 Jan 11
5
stop words in query
Hello all,
Quick question, I''m using AAF and the following custom analyzer:
class StemmedAnalyzer < Ferret::Analysis::Analyzer
include Ferret::Analysis
def initialize(stop_words = ENGLISH_STOP_WORDS)
@stop_words = stop_words
end
def token_stream(field, str)
StemFilter.new(StopFilter.new(LowerCaseFilter.new(StandardTokenizer.new(str)),
@stop_words))
end
However when
2007 Aug 23
7
custom sort routine
is it possible to write a custom sort routine for ferret?
I use ferret right now to index all my products. One of the variables
in these product documents is the product popularity, where 1 = best
selling production, 2 = 2nd best, etc..
Right now, I''m just sorting by the popularity column in my search
results, although this doesn''t always provide "good" results,