# Searching with improved support for åäö and Scandinavian characters. Analyzer support?

**URL:** <https://forum.litium.com/t/searching-with-improved-support-for-aao-and-scandinavian-characters-analyzer-support/1029>\
**Category:** Questions\
**Tags:** search, litium-7\
**Created:** [August 16, 2019, 7:23am UTC](https://forum.litium.com/t/searching-with-improved-support-for-aao-and-scandinavian-characters-analyzer-support/1029 "2019-08-16T07:23:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rickard.niklasson](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@rickard.niklasson](https://forum.litium.com/u/rickard.niklasson)\
**Post date:** [August 16, 2019, 7:23am UTC](https://forum.litium.com/t/searching-with-improved-support-for-aao-and-scandinavian-characters-analyzer-support/1029/1 "2019-08-16T07:23:49Z")

</div>

We are building a site that uses products and other data with naming using Swedish/Scandinavian characters like åäö but we have an international audience that can not easily type these characters so we require the search functionality to have an understanding of the data so the users can search for “sodermalm” and get results using “södermalm”. This is not currently working for us with a default search configuration.  
What options are available for us to support this? Lucene has filters for “Scandinavian Folding”: [https://lucene.apache.org/core/7\_5\_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html](https://lucene.apache.org/core/7_5_0/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html)  
Can we utilize this in Litium in some way?  
Based on the documentation I can see that we can specify an Analyzer when creating the search queries but I guess we also need to control the analyzer used when indexing to get matching results? Is this possible?  
Should we hook into the indexing process using a IIndexingProviderPreProcessor or something similar to change the results? Or is there a better alternative that I’m not seeing?

Litium version: 7.2.2

---

<div class="post-metadata">

**Author:** ![patric.forsgard](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/patric.forsgard/32/10_2.png) [@patric.forsgard](https://forum.litium.com/u/patric.forsgard)\
**Post date:** [August 16, 2019, 10:59pm UTC](https://forum.litium.com/t/searching-with-improved-support-for-aao-and-scandinavian-characters-analyzer-support/1029/2 "2019-08-16T22:59:41Z")

</div>

You are in the right direction about how you can fine-tune [Lucene.NET](http://Lucene.NET) with better control about how it should behave. Please see [Lucene stemming](https://forum.litium.com/t/lucene-stemming/948/2) where you have example how to change analyzers for index and searching.

_Note_: Litium uses [Lucene.Net](http://Lucene.Net) 3.0.3 that will match Java version of Lucene 3.0.3 and your reference above is for Java Lucene 7.5.0 so it can be some differences in existing functionality.

---

<div class="post-metadata">

**Author:** ![rickard.niklasson](https://avatars.discourse-cdn.com/v4/letter/r/f4b2a3/32.png) [@rickard.niklasson](https://forum.litium.com/u/rickard.niklasson)\
**Post date:** [August 20, 2019, 8:05am UTC](https://forum.litium.com/t/searching-with-improved-support-for-aao-and-scandinavian-characters-analyzer-support/1029/3 "2019-08-20T08:05:05Z")

</div>

Great to hear. We have implemented a custom IIndexingProviderPreProcessor that adds a new field for the products which uses our own Analyzer with the ASCIIFoldingFilter from Lucene. This gives us the desired searching behavior for our use case.

It would be great if the documentation at [https://docs.litium.com/documentation/architecture/search/analyzers](https://docs.litium.com/documentation/architecture/search/analyzers) could be expanded a bit with the information you provided about Analyzers and IIndexingProviderPreProcessor. It’s nice to know that it’s possible to extend the default functionality and see which options are available.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [September 17, 2019, 8:11am UTC](https://forum.litium.com/t/searching-with-improved-support-for-aao-and-scandinavian-characters-analyzer-support/1029/4 "2019-09-17T08:11:42Z")

</div>

Closed on September 17, 2019, 8:11am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
