I would like to use stemming and stopwords, and therefore use the Snowball analyzer in Umbraco.The snowball analyzer is part of the Lucene.Net Contrib project, so I have added the DLL to the project.
In my ExamineSettings I have then tried to do the following, to have the data being indexed with the Snowball analyzer:
Using Examine with Snowball analyzer
Hi,
I would like to use stemming and stopwords, and therefore use the Snowball analyzer in Umbraco.The snowball analyzer is part of the Lucene.Net Contrib project, so I have added the DLL to the project.
In my ExamineSettings I have then tried to do the following, to have the data being indexed with the Snowball analyzer:
<add name="DemoIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine" analyzer="Lucene.Net.Analysis.Snowball.SnowballAnalyzer, Lucene.Net.Contrib.Snowball" indexSet="TestIndexSet">
But I then get the error:
No parameterless constructor defined for this object.
This error occures because the Snowball analyzer takes and argument (language), and I have therefore tried with both
"<add name="DemoIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine" analyzer="Lucene.Net.Analysis.Snowball.SnowballAnalyzer.SnowballAnalyzer("Danish"), Lucene.Net.Contrib.Snowball" indexSet="TestIndexSet">"
and
<add name="DemoIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine" analyzer="Lucene.Net.Analysis.Snowball.SnowballAnalyzer.SnowballAnalyzer("English"), Lucene.Net.Contrib.Snowball" indexSet="TestIndexSet">
But I keep getting the error
Value cannot be null. Parameter name: type.
Has any of you guys tried to work with the Snowball Analyzer and Examine, and can give a few hints on how to accomplish this?
Hi Philip,
I too want to use the Snowball stemmer. Did you ever get it working?
Guys,
See https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/61148-Search-not-returning-expected-results#comment-230133
Someone has done it
Regards
Ismial
Thanks Ismail. It was me who did it! haha. I should have updated this post too!
is working on a reply...