From 5790802544f00d9ca7d91b497f3a3d09b98945ee Mon Sep 17 00:00:00 2001 From: Elliot Sawyer Date: Tue, 28 Mar 2017 16:12:56 +1300 Subject: [PATCH] Update Solr.md Added documentation for how to search on macrons and other unicode characters. Thanks to @chrispenny for the code sample. --- docs/en/Solr.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/en/Solr.md b/docs/en/Solr.md index 89e22bb..e3ccf2d 100644 --- a/docs/en/Solr.md +++ b/docs/en/Solr.md @@ -192,6 +192,20 @@ from a new file `mysite/solr/templates/types.ss` instead: } } +#### Searching for macrons and other Unicode characters + +The “ASCIIFoldingFilterFactory” filter converts alphabetic, numeric, and symbolic Unicode characters which are not in the Basic Latin Unicode block (the first 127 ASCII characters) to their ASCII equivalents, if one exists. + +Find the fields in your overloaded `types.ss` that you want to enable this behaviour in. EG: + + + +Add the following to both its index analyzer and query analyzer records. + + + +Update your index to point to your overloaded template using the method described above. + ### Spell Checking ("Did you mean...") Solr has various spell checking strategies (see the ["SpellCheckComponent" docs](http://wiki.apache.org/solr/SpellCheckComponent)), all of which are configured through `solrconfig.xml`.