Hello,

This is pretty easy to achieve: All content by default is analyzed with the 
analyzer defined in your dasl-indexer.xml. By default it says:

<analyzer class="nl.hippo.slide.index.analysis.SimpleStandardAnalyzer"/>

Now, you can replace this one with your own analyzer which you have in your own 
analyzers.jar, and you just make sure that this analyzer analyses the way you 
want. For example,

package my.analyzers;

public class FrenchContentAnalyzer extends Analyzer {
  public FrenchContentAnalyzer() {
  }

  public TokenStream tokenStream(String fieldName, Reader reader) {
    return new ApostrpheFilter(
         new LowerCaseFilter(
                new StandardFilter(new StandardTokenizer(reader))
                )
         )
  }
}

That is about it. You can check with luke how the index looks, and wether "'" 
are removed. Also notice, that above explains you how to configure it for 
content only. For text properties, you have to configure it for each text 
property. 

Regards Ard


> 
> Hi all,
> 
> We want to remove apostrophes from our french content in the 
> index... I found an ApostrpheFilter that seems to do what we 
> want but I can't find the way to ask to slide to use this 
> filter before indexing the content.
> 
> Can you tell me if it is possible ? Or does someone already 
> implement it ?
> 
> Thanks,
> 
> .....
> Alaric HENIN
> Smals -  TO&P - F. Manini - Web Content Management 
> [EMAIL PROTECTED] [EMAIL PROTECTED]
> CH-113 - 02 / 787 5291
> .....
> http://www.smals.be
> ______________________________________________________________
> ________________________________
> 
> Smals sluit elke aansprakelijkheid uit in verband met de 
> juistheid, de volledigheid of het tijdig toekomen van de 
> informatie in deze e-mail. Aan deze e-mail kunnen geen 
> rechten worden ontleend en deze e-mail houdt in geen geval 
> een erkenning van welkdanige aansprakelijkheid in.
> Dit bericht is alleen bestemd voor de geadresseerde. Indien 
> dit bericht niet voor u bestemd is, verzoeken wij u dit 
> onmiddellijk aan ons te melden en het bericht te vernietigen.
> 
> Smals décline toute responsabilité quant à l'exactitude, à 
> l'exhaustivité et au délai de transmission des informations 
> contenues dans cet e-mail.
> Aucun droit ne peut être revendiqué sur cet e-mail et cet 
> e-mail n'implique en aucun cas une reconnaissance de 
> responsabilité, quelle qu'elle soit.
> Ce message s'adresse uniquement au destinataire. Si ce 
> message ne vous est pas destiné, nous vous prions de nous le 
> signaler immédiatement et de détruire le message.
> 
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to