Displaying 8 results from an estimated 8 matches for "mappingfilt".
Did you mean:
mappingfile
2006 Oct 20
0
Ferret 0.10.13 released
..._filter
mf[:country] = country_filter
# run the query with the filter
index.search(query, :filter => mf)
# filters can be changed and deleted
mf[:category] = new_category_filter
mf.delete(:country)
index.search(query, :filter => mf)
The other major addition is a MappingFilter (< TokenFilter). This can
be used to transform your code from UTF-8 to ascii for example. I
posted an example of how to do this earlier today. However, using the
mapping filter you can apply a list of mappings string mappings rather
than just character mappings. Obviously you could acheive thi...
2007 Mar 23
5
Any chance to get 0.11.3 on windows soon ?
Hi,
I''m working on a Ferret-based application which indexes content in all
European languages. Thus, I have to deal with those funny European
characters.
After googling a bit, I decided to move on with a custom European
analyzer based on MappingFilter, as suggested in the Ferret rdoc.
Everything works fine with Ferret 0.11.3 on Mac OS X.
But this application needs to run on both Windows and Mac OS X. Since
there''s no mswin32 gem for 0.11.3, I decided to downgrade to 0.10.9 and
replace MappingFilter with a custom-made filter as sugges...
2007 Sep 20
5
Ferret DRB, UTF-8, Mongrel
...:db_state => {:index =>
:untokenized_omit_norms, :term_vector => :no}},
:remote => true}, {:analyzer => UtfAnalyzer.new})
Here''s the analyzer I''m using... pretty much taken from from here:
http://ferret.davebalmain.com/api/classes/Ferret/Analysis/MappingFilter.html
-----
class UtfAnalyzer < Ferret::Analysis::Analyzer
include Ferret::Analysis
CHARACTER_MAPPINGS = {
[''?'',''?'',''?'',''?'',''?'',''?'',''?'',''?'']...
2007 Aug 14
3
Should "a" match "ä" in ferret?
Hi all,
I have indexed a huge amount of data with text from several european
languages. In the index are values like Georg Friedrich H?ndel.
I would like a search phrase like "Georg Friedrich Handel" to find
records with the real spelling of H?ndel but it doesn''t seem to work.
Can anyone give me an idea of what I need to do to make this happen. A
bit lost here and
2007 May 23
6
Accented characters
...9;',''?'',''?''] => ''y'',
[''?'',''?'',''?''] => ''z''
}
def token_stream(field, string)
return MappingFilter.new(StandardTokenizer.new(string), MAPPING)
end
end
And inserted this code at the end of environment.rb.
Im my model:
acts_as_ferret({ :fields => [ ''name'' ] }, :analyzer =>
PortugueseAnalyzer.new)
But this did not work....
Can someone tell me what I did wrong ?...
2007 Jan 19
3
How to have 'o' == 'ö'
Greetings,
(using acts_as_ferret)
So I have a book title "M?ngrel ?Horsemen?" in my index.
Searching for "M?ngrel" retrieves the document.
But I would like searching for "Mongrel" to also retrieve the document.
Which it does not currently.
Anyone have any good solutions to this problem?
I suppose I could filter the documents and queries first which something
2006 Jul 26
13
tweaking minimum word length?
Hi,
Can Ferret be configured to change the minimum word length of what it
indexes? Right now it seems to drop words 3 characters or less, but
I''d like to include words going down to 2 characters. How would I do
that?
Francis
2007 Mar 01
4
Need help creating my own Filter in Ruby
...icket about it, but I thought I''d ask the mailing
list to reach more people.
I''m using these filters together in my analyzer (with acts_as_ferret
+ Ferret 0.11.1).
HyphenFilter.new(
StopFilter.new(
LowerCaseFilter.new(
MappingFilter.new(
StandardTokenizer.new(str),
mapping)),
FULL_FRENCH_STOP_WORDS + FULL_ENGLISH_STOP_WORDS)
)
The mapping filter maps pretty much all the french accents to the
letter without the accent. So far so good.
Only thing...