I'm using Compass/Lucene to search and index my database. I want diacritics and character case to be ignore when I search, such that the query "foo" would match both "Fóo" and "foo" and a query for "fóó" would match "fóo" and "fOO".
Based on what I've read it seems that I need to change the default analyzer that Compass uses both when indexing and searching my context. I've found out where I specify the analyzer to use, but I can't seem to find an analyzer implementation that meets my requirements. Does there already exist an analyzer that ignores diacritics and character case, or do I need to write my own?