Displaying 20 results from an estimated 4000 matches similar to: "searching with chinese chars"
2007 Mar 18
3
"ö" causes find_by_contents not to return
I''ve installed ferret 0.10.9 together with the latest acts_as_ferret
using Windows XP and indexed a location database (geonames.org) with
Location.rebuild_index. The data is in utf-8.
Now calling Location.find_by_contents "?" does not return a result,
causes a lot of CPU load, and finally exits with an error "index.rb:702:
in ''parse'': failed to allocate
2007 Mar 13
2
index returns all results for specific queries
Hey all,
I''m getting some really weird results when searching documents. It
*seems* to be somehow related to the document format I''m using.
I wrote a small script to replicate it:
################
#!/usr/bin/ruby
require ''rubygems''
require ''ferret''
include Ferret
index = Index::Index.new(:path => ''/tmp/fooindex'', :key
2007 Apr 08
10
Ferret and non latin characters support
I''ve successfully installed ferret and acts_as_ferret and have no
problem with utf-8 for accented characters. It returns correct results
fot e.g. fran?ais. My problem is with non latin characters (Persian
indeed). I have tested different locales with no success both on Debian
and Mac. Any idea?
(ferret 0.11.4, acts_as_ferret 0.4.0, rails 1.1.6)
--
Posted via http://www.ruby-forum.com/.
2006 Jul 11
5
Ferret Wiki Spam - Solutions Anyone?
Hi All,
As some of you may have noticed, the Ferret Wiki has been getting
spammed like crazy. And I haven''t been able to do anything about it
because I just don''t have the time. I''m getting pretty close to
releasing 0.10.0 which has been the major draw on my time for the last
couple of months so I''m going to have some time to look into this
soon. I was
2006 Jul 12
9
ferret using UTF-8
Hey all,
I went through the docs in Ferret''s page, plus a quick search through
the email list (thread titles), and I couldn''t find any info on how to
have Ferret storing it''s data using UTF-8.
In the scenario I would use it, nothing''s being stored outside (like
external databases). So it''s just how Ferret would do it that I''m
interesting in
2004 Sep 18
9
No sound
Hello,
I have just set up an asterisk box (Debian unstable) and I would like
to test it with a H.323 application (gnomemeeting). When I call the
demo voice menu, I can't hear any sound. asterisk says that the
soundfile is played:
-- Executing BackGround("H323/ip$212.9.189.172:30005/29597", "demo-congrats") in new stack
-- Playing 'demo-congrats' (language
2007 Mar 12
5
index.rb:384 [BUG]
Hi folks,
I''ve working and playing with acts_as_ferret and follow this fantastic
tutorial:
http://www.railsenvy.com/2007/2/19/acts-as-ferret-tutorial
When I try to implement the field storage tip, it crash. So, I try to
make it via script/console:
1. I have a simple model called Articles:
class Article < ActiveRecord::Base
acts_as_ferret :fields =>
2007 Feb 15
1
wildcard fields
Hey all,
is there a way to wildcard field searches? As in:
- a document like {:title => ''foo'', :description1 => ''bar'',
:description2 => ''bar2''}
I''d search:
index.search("description*: search query")
I understand the example above is silly, but it''s enough to make the
question understandable :-)
2005 Jul 11
1
Rating application for Asterisk
Does anyone knows a working FOSS rating application for Asterisk? I
tried CDRTool, but since it's free for non commercial use, it won't
suit me. Also I gave a shot at Trabas (the one everybody says it
sucks), but I couldn't understand how does it pull records from
Asterisk's CDR table.
The rate-engine addon
(http://www.voip-info.org/tiki-index.php?page=Asterisk+addon+rate-engine)
2006 Sep 04
7
0.10.2 release with win32 gem
Hey all,
I''ve just released Ferret version 0.10.2. It is mostly just a bug fix
release. The only change is that a highlight method has been added to
Ferret::Index::Index. Please try it out and let me know what you
think.
The big news for this release is that there is also a binary win32 gem
included. This is the first time I''ve build a gem like this so please
let me know if
2006 Jul 07
4
How to add Asia token analyzer to ferret simply?
Hi,David
Can you give me an example of how to add analyzer to ferret to Asian
languages?
My web application will have to support multi language search,which
means,for example,both Chinese and English will be searched through the
form.
Currently,I have decided to use the simple token principles,which means
that every Chinese character will be a token,although this is not so
well in some
2007 Jan 24
7
Ferret problems with Rails 1.2.1
Hi, I''ve just updated rails from 1.1.6 to 1.2.1 and I''m getting the
following errors whenever I load a page that uses a class that uses
ferret. I have ferret 0.10.13 and acts_as_ferret. They were working
fine before the upgrade.
#<NameError: cannot remove Object::WildcardQuery>
2007 Jan 21
14
[ActsAsFerret] OpenSolaris (TextDrive) indexing issues
Gents,
I successfully installed AAF on my TextDrive OpenSolaris Container, but
I''m having some issues with indexing.
I have a model called Blogs which has AAF enabled.
The first time I tried to find_by_contents for a ''word'' I know was on
the Database I got now results. Apparently the index was not ready yet.
Then I waited a few hours and checked that the /index
2006 Sep 03
9
using highlight from aaf
Hi,
I''m trying to use highlight ferret method with trunk aaf and 0.10.1
ferret.
In my search display I use:
Myindexedclass.ferret_index.searcher.highlight(@query, result_line.id,
:content)
* searcher is a protected method; how can I access to the searcher from
aaf ?
* is the doc id in aaf the same as my model id ?
* is the first param, query, the string query or the query object ?
2006 Sep 05
4
No matches
The following script creates a search index and then searches it. I get
no results? Where am I going wrong?
Thanks.
-----------BEGIN SCRIPT----------------
require ''rubygems''
require ''ferret''
include Ferret
path = ''/tmp/myindex''
field_infos = Ferret::Index::FieldInfos.new()
field_infos.add_field(:name, :store => :yes, :index => :yes)
2006 Sep 06
9
Which analyzer to use
Lucene''s standard analyzer splits words separater with underscores.
Ferret doesn''t do this. For example, if I create an index with only
document ''test_case'' and search for ''case'' it doesn''t find anything.
Lucene on the other hand finds it. The same story goes for words
separated by colons.
Which analyzer should I use to emulate
2006 Sep 01
2
Excluding a term on a search
Hi there,
I have a model with indexed fields (F1, F2, F3...).
I have a field-based search (+F1:..., +F2:...), and a global search
(which queries all fields with the given terms). Both of them works ok,
but I would like to exclude a term from the global search (though it
should remain indexed to support the field-based search), is it
possible?
Thanks in advance.
--
Posted via
2006 Sep 05
15
ferret finds ''tests'' but not ''test''
Hello all,
Quick question (possibly!) - I''ve got a few records indexed and doing a
search for ''test'' reports in no hits even though I know the word ''tests''
exists in the indexed field. Doing a search for ''tests'' produces a
result. I would have thought that ''test'' would match ''tests'' but no such
2006 Sep 15
1
Custom analyzer not invoked?
Hello,
I''m trying to define my own analyzer by doing something like:
#-----------------------------------------------------
require ''ferret''
include Ferret
class MyAnalyzer < Analysis::Analyzer
def token_stream(field, str)
# Display results of analysis
puts ''Analyzing: field:%s str:%s'' % [field, str]
t =
2008 Jun 11
5
Similar words
Is there a way to get a list of similar words to the ones a user has
searched for?
So if they search for (in my case) transferaze which has no matches I
can get back an array like this [''transferase''] ?
I know I can just add ~ on the end to make it fuzzy, but what I''d like
is to be able to say "Sorry, no matches for ''transferaze''. Did you