Developer forum

Forum » CMS - Standard features » Snowball analyzer

Snowball analyzer

Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi,

 

I was trying to implement a Snowball analyzer to take advantage of the stemming (as primitive as it may be) but I am getting an error. Can anyone tell me if there's anything I can do?

https://www.screencast.com/t/xshhzOU4hXiF

 

Best Regards,

Nuno Aguiar


Replies

 
Steffen Kruse Hansen Dynamicweb Employee
Steffen Kruse Hansen
Reply

Hi Nuno,

Apperently it's because the SnowballAnalyzer doesn't have a parameterless constructor, so we don't know what to put into the parameters.

What you can do is to create your own parameterless Analyzer by inheriting from Lucene.Net.Analysis.Analyzer, and then within that call the SnowballAnalyzer with the parameters you need. When you copy your Analyzer dll to the bin folder, your Analyzer should show up in the list

I hope this helps.

 

Best regards,

Steffen

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Steffen,

 

We'll look into that. Thank you. In the meanwhile it's probably better not to offer that as an analyzer, since it could be perceived as a bug (much like I thought it might) if it's really something DW cannot assume / have deafult values for.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum