Posted on 05/03/2021 10:44:05
Yes, good point.
Just added a case insensitive whitespace analyzer to our analyzers. Attached find a pirate build of Dynamicweb.Indexing.Lucene that you can add to your project and see if that works for you.
It will be release officially on nuget very soon.
You can always just add any provider based features in a dll and put it into the bin and it will show in the backend. I.e. you can take this analyzer code and put in your own custom dll and then it will show up in the backend.
using Lucene.Net.Analysis;
using Lucene.Net.Analysis.Miscellaneous;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using LuceneNet = Lucene.Net;
namespace Dynamicweb.Indexing.Lucene.Analyzers
{
public class DynamicwebCaseInsensitiveWhitespaceAnalyzer : Analyzer
{
/// <summary>
/// </summary>
public override TokenStream TokenStream(string fieldName, TextReader reader)
{
TokenStream t = null;
t = new WhitespaceTokenizer(reader);
t = new LowerCaseFilter(t);
return t;
}
}
}
BR Nicolai