Discussion:
using tokenizers ?
Lyes Amazouz
2008-09-28 10:20:32 UTC
Permalink
Hi lis

I using Ferret to index some files for a specific usage.

I want to know how can I set a tokenizer for some of my index fields and if
I can choose a different tokenizer for each field. For example:

If in my document I have two fields :F1 and :F2. What I have to do if I want
that the field :F1 will be tokenized with a StandardTokenizer and :F2 with
the WhiteSpaceTokenizer??

thank you
--
===========
| Lyes Amazouz
| USTHB, Algiers
===========
Jens Krämer
2008-10-01 19:54:51 UTC
Permalink
Hi!

have a look at the PerFieldAnalyzer:
http://ferret.davebalmain.com/api/classes/Ferret/Analysis/PerFieldAnalyzer.html

cheers,
Jens
Post by Lyes Amazouz
Hi lis
I using Ferret to index some files for a specific usage.
I want to know how can I set a tokenizer for some of my index fields
If in my document I have two fields :F1 and :F2. What I have to do
if I want that the field :F1 will be tokenized with a
StandardTokenizer and :F2 with the WhiteSpaceTokenizer??
thank you
--
===========
| Lyes Amazouz
| USTHB, Algiers
===========
_______________________________________________
Ferret-talk mailing list
http://rubyforge.org/mailman/listinfo/ferret-talk
--
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49351467660 | Telefax +493514676666
kraemer-jv+***@public.gmane.org | www.webit.de

Amtsgericht Dresden | HRB 15422
GF Sven Haubold
Lyes Amazouz
2008-10-02 09:58:28 UTC
Permalink
Ok thank you, it was what I looked for
Post by Jens Krämer
Hi!
http://ferret.davebalmain.com/api/classes/Ferret/Analysis/PerFieldAnalyzer.html
cheers,
Jens
--
===========
| Lyes Amazouz
| USTHB, Algiers
===========
Loading...