Posted on 11/08/2015 12:42:28
There are a few ways to handle that issue.
The best way -- I think -- is to check the "Analyzed" checkbox on the field definition in the index schema. Doing this will set the Tokenized flags in Lucene and will use the StandardAnalyzer to tokenize the value. In Dynamicweb 8.7, we'll be adding the option of specifying a separate analyzer for each field. This allows for more granular control over tokenization.
You can also implement a IIndexBuilderExtender and convert the values to lowercase. You would also have to convert all search inputs to lowercase for that to work. I do not recommend this solution as it requires a lot of maintenance on your part.
One thing to note though, creating an IIndexBuilderExtender and adding a new lowercase entry can be good for sorting if you want lexical sorting instead of ordinal sorting. You can create a new thread if you want to know more about this.
- Jeppe