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 ==========-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ferret-talk/attachments/20080928/1aa23ea5/attachment.html>
Hi! have a look at the PerFieldAnalyzer: http://ferret.davebalmain.com/api/classes/Ferret/Analysis/PerFieldAnalyzer.html cheers, Jens On 28.09.2008, at 12:20, Lyes Amazouz wrote:> 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 > ==========> _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > 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 at webit.de | www.webit.de Amtsgericht Dresden | HRB 15422 GF Sven Haubold
Ok thank you, it was what I looked for On Wed, Oct 1, 2008 at 8:54 PM, Jens Kr?mer <kraemer at webit.de> wrote:> Hi! > > have a look at the PerFieldAnalyzer: > > http://ferret.davebalmain.com/api/classes/Ferret/Analysis/PerFieldAnalyzer.html > > cheers, > Jens > > > >-- ========== | Lyes Amazouz | USTHB, Algiers ==========-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ferret-talk/attachments/20081002/e6030f97/attachment.html>