Developer forum

Forum » Ecommerce - Standard features » Using several Lucene analyzers

Using several Lucene analyzers

Tomas Gomez
Reply

Hi,

I would want to use several Lucene analyzers. But when adding several analyzers in a new field type of an index repository, only one analyzer is kept after saving the index. 

See proof here: https://watch.screencastify.com/v/jvkgTLOEclM9YCgkVlbH

What is the roundabout? I may create several field types (one for each analyzer), create the corresponding index fields, and the a "Summary" field comprising the index fields, but I think is quite intrincated. Is there any simpler solution?

Regards,
Tomas


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Tomas

Yeah - I can see the UI issue. But it does not make sense to have more than one analyzer at a time.... I will create a bug to remove that part of the UI.

BR Nicolai

 
Tomas Gomez
Reply

Hi Nicolai,

Ok with the bug. But then, how to use several analyzers? For instance, I need to use the UnaccentedWordAnalyzers (for Spanish) besides the SnowballAnalizer (for stem words) and SynonymAnalyzer (for synonyms).

Regards,
Tomas

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

You cannot - it does not make sense... An analyser tokenizes and creates terms from the input string - doing that 2 times makes no sense.

What are you trying to achieve?

 
Tomas Gomez
Reply

I need to remove the accents, the plurals and include the synonyms. There are analyzers for each of this task, but no one that includes all.

 

You must be logged in to post in the forum