make it not case sensitive (or make that a possibility)
| Project: | Search config |
| Version: | HEAD |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Using Drupal (4.7.2) with a non English language makes the search ability of Drupal very lame as many Latin languages (French or Spanish, for instance) do use a lot of diacritics, not to speak of case-sensitivity of the search option.
People using those languages tend to forget diacritics when searching the net. Google, for example, makes a good job at there making no distinction between "crítico" (Spanish for "critical"), "Crítico", "Critico", "CRITICO" and so on...
This ability of filtering the search input would skyrocket the value of search in those languages. And English speaker would benefit from that as well.
A tick box in the general options for a site could be an option to enable-disable case/diacritics sensitivity.
Thank you :)

#1
I see now Drupal 4.7 is not case sensitive (I had'nt reindexed my site, sorry).
But the issue for Search ignoring diacritics or reagruping may stand alive...
If somebody with enough knowledge could care (a module as somebody hinted in a forum thread?).
Thank you :)
#2
I really don't know a lot of when it comes to i18n but if it's as simple as stated in the link you provided I wouldn't mind doing a simple module. I may actually have to use it for a site that I currently working on.
Do you know where I can find a list of 'diacritics' and their English equivalent? By the way have you checked if this functionality is not provided by another module?
Thanks.
#3
Found this function from wordpress. Seems to do what is required. I would just make a direct copy if doing a module.
#4
OK. It seemed simple enough so I did a module. Tell me if it works for you.I did a basic test here and it seems to work.
If it is useful I can create a project for it. I didn't do much work on this that Stephen for the link above and the Wordpress guys.
#5
Oh, you'll need to re-index your search.
#6
canen,
Thanks a lot!! I'll take a look today to see if it works ok.
As for he requested list. I think it 'should/could' be summed up with two simple rules:
So, comes again the possibility of making an option of an "ignore diacritics when searching" tickbox. But I guess that is much heavier work than just the first option that is extremely important by itself and, as a speaker of a diacritic-loaded language, is extremely helpful.
A happy Gustavo :)
Ps. If we are talking about diacritics in utf-8, I guess the canonical source is Unicode.org perhaps?
#7
It works. After loading it I reindexed and cronned and now "imagenes", "Imágenes" and "imágenes", etc. (Spanish for images in all its variants) give back the same results.
That's (from the usability point of view) absolutelly splendid.
Thanks. IOW a pint (or 2... ) ;)
PS. I guess this would be of interest for other Spanish, French, Portuguese, etc... users.
#8
please do not change issue titles - thanks!
#9
Created a project here http://drupal.org/project/accents. It may take awhile to show up.