On Sat, Feb 10, 2007 at 06:03:47AM +0100, Sam wrote:
> Our ferret 0.10.13 index has been slowly growing on our debian server
> and has just got up over 14,000 records. Yesterday I randomly noticed
> that one search I did was suddenly giving whack, unexpected results. I
> have spent much time trying to track the problem.
>
> Tried ferret 0.10.9 - no change.
> Tried on a windows machine - where it works fine, and doesn't give weird
> results (which just adds to the strangeness - anyway I need it to work
> on the debian server)
could you try Ferret 0.10.14?
> narrowed it down to one single entry that when you add or delete from
> the index completely changes results in unrelated searches.
> a little console output shows this best.
>
> index = Ferret::Index::Index.new(FerretConfig::INDEXOPTIONS)
>
> puts index.search("westpac").total_hits
> 286
> puts index.search("westpac branch").total_hits
> 277
>
> doc = Entry.find(1094481).make_entry_ferret_doc
> => {:latitude1d=>"36.9", :address=>"61 Remuera Rd, Newmarket",
> :longitude1d=>"174.8", :name=>"Spiro's Florists", :precision=>"1
> number", :tags=>"Flowers, bouquets, gift baskets, permanent floral
> arrangements, inter-flora", :zid=>1094481}
> index << doc
> index.flush
> index.optimize
>
> puts index.search("westpac").total_hits
> 286
> puts index.search("westpac branch").total_hits
> 3
really strange. To further track this down I'd try with variations of
this record, i.e. leave one field empty, then the other to find out
which field's value is causing this problem. btw, what number of hits
does
index.search("branch").total_hits
yield with/without that record?
Jens
--
webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk