I’ve just released Ferret 0.10.3. It is mostly just a bugfix release.
I’ve also added Ferret::Analysis::HyphenFilter which filters
hyphenated words for better search results. Basically the way it works
is it concatenates a hyphenated word as well as adding the two
separate terms. So “set-up” becomes “setup”, “set”, “up” so searches
for “set-up”, “setup” or just plain “set” will all match. This filter
is also applied to the StandardAnalyzer.
I’ve also made the process_query method in Index::Index public. Before
anyone asks, the reason it is process_query and not parse_query is
that it accepts strings or query objects and may also optimize queries
in future.
Sorry to critize - I know how much it sucks to work your ass of on stuff
and receive bug reports.
-ben
Hi Ben,
I don’t what the problem is and I’m afraid I don’t have time to fix it
right now. I rolled back to the latest stable release of the one-click
installer (1.8.4-20 stable). Sorry about the trouble. Let me know if
this fixes the earlier problem (with the rails view rendering).
On Sun, Sep 10, 2006 at 12:43:23AM +0900, David B. wrote:
[…]
the 0.10.4 installs itself as ferret-0.1.4 on linux, I guess something’s
broken there. 0.10.3 works fine here (Linux).
Jens
Anyone else having this problem? It’s fine here. I have no idea what
might be causing this.
works now. but I swear it didn’t when I first tried
btw, there’s an issue with the (now public) process_query method: It
doesn’t call ensure_reader_open, but it should. The following crashes
things atm:
require ‘rubygems’
require ‘ferret’
i = Ferret::I.new
i << ‘testing’
i.process_query ‘test*’
doing a search before the call to process_query, or invoking
ensure_reader_open via send() helps, but isn’t so nice I think now
that it’s public, the whole process_query has to get it’s own @dir.synchronize block, too…
I’ve worked around this for now in aaf, and will push out the first
stable, 0.10.x compatible version this evening.
cheers,
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
works now. but I swear it didn’t when I first tried
Hey, I know the feeling.
doing a search before the call to process_query, or invoking
ensure_reader_open via send() helps, but isn’t so nice I think now
that it’s public, the whole process_query has to get it’s own @dir.synchronize block, too…
I’ve worked around this for now in aaf, and will push out the first
stable, 0.10.x compatible version this evening.
cheers,
Jens
Right you are. The fix is in subversion. Thanks again Jens.