![]() |
|
search box and words with accents - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: search box and words with accents (/thread-7665.html) Pages:
1
2
|
search box and words with accents - Rousset - 2010-09-27 Hello, I cannot find with the search box a word that has accents,like in French, by typing the same word without accent. The contrary doesn't work either. Thank you! ZPhoto 1.3.1.2. / zp-galleriffic theme search box and words with accents - acrylian - 2010-09-27 Accents are a complicated matter as it envolves a lot of encoding. Everything should be UTF8 and probably you need the mbstring package on your sever. Please do a forum search and visit the troubleshooting. search box and words with accents - sbillard - 2010-09-27 Depending on how you got these target accents into Zenphoto it is also possible that the character set of that data was not UTF-8. Since the default for Zenphoto WEB pages is UTF-8, any accent you type into the search box will be in UTF-8 and will not match any stored accent which is not. search box and words with accents - ctdlg - 2018-10-01 Hello, I have the same problem. Suppose I have a picture description "école de ..." Searching "école" gives a result containing this picture. OK. Is it possible to rencode accentuated characters to be searched like Thanks in advance. search box and words with accents - acrylian - 2018-10-01 Well, technically those are not the same character and therefore not found. It will be really complicated. How should we know that a search for "ecole" means "école"? That would imply that the search engine understands the word in French and knows that this word is written with an accent. I would recommend to add tags with and without the accent and turn on the tag suggest plugin. search box and words with accents - vincent3569 - 2018-10-02 I am not an expert in search engine, but I suppose there are different ways to do that:
There is probably other ideas to do this achievment. search box and words with accents - vincent3569 - 2018-10-02 of course, I supose that is not a good idea in this open source project: google search engine is a webservice. other open source search webservices exist, as far I can search (with google, sorry ;-) : https://www.google.com/search?q=open+source+search+engine search box and words with accents - acrylian - 2018-10-02 You in any case need a huge catalog to know what to replace and use as alternatives or additions. "école" > "ecole" is easy but you also need the other way round of courses. This would in any case requires a huge catalog of almost all languages to work as expected. Don't forget Google has this huge catalog because it is a billion dollar heavy company ;-) If you really need this Google provides means to include a site wide limited search into your site via their APIs. There are other search engines (and more privacy friendly ones) that might provide similar. search box and words with accents - vincent3569 - 2018-10-03 @ctdlg
so zenphoto search engine seems to be case insensitive and doesn't care of accentuated characters (in search keywords and in contents) @acrylian
Search engine on tags only seems to be case insensitive but seems to be accentuted characters sensitive. Maybe there is something to do on this way... search box and words with accents - acrylian - 2018-10-03 The case should really not matter on searching because it is really the same work no matter of the case.
Probably because of that. Perhaps you have the word without accents in one other field so the general search covers it. search box and words with accents - ctdlg - 2018-10-03 Thank you for all your comments. There is another way : using the word "ecole" in the file name and the word "école" in the description. And I will also have a look to this kind of info : https://stackoverflow.com/questions/1017599/how-do-i-remove-accents-from-characters-in-a-php-string @ vincent3569 : yes, I'm sure, I triple checked with different french words. Zenphoto 1.5. And why do I want this feature ? search box and words with accents - ctdlg - 2018-10-03 From the above link, the wordpress method is supposed to be the best. I have to understand how the zenphoto search operates to adapt and use this function. Stay tuned. search box and words with accents - acrylian - 2018-10-03 As mentioned we have a plugin with a similar convert function like wp called zenphoto_seo that clears filenames/titlelinks etc if enabled. If that should be used. search box and words with accents - ctdlg - 2018-10-03 I suppose I have to convert both the sql field entries and the search word entered by the visitor : école in the database will be converted to ecole, user can enter école or ecole ! it should work. search box and words with accents - ctdlg - 2018-10-04 @acrylian : seo_zenphoto does not help with search function : "ecole" does not return "école" items. search box and words with accents - acrylian - 2018-10-04
Or you assign two tags in all required writings. Of course for general free text search in the description that will be not usable. But for all that can use tags.
No, of course it does not becuase that is not setup to work like that. I meant if any replacement woud have to be done there is no need to add an additional function that does basically the same. search box and words with accents - vincent3569 - 2018-10-04 @ctdlg: as a french people, of course I am concerned with accentuated characters ;-) @acrylian: I have a test with a new tag "chèvre". there are 3 pictures with "chèvre" in description picture with tag "chèvre" is only found with accentuated keywords "chèvre" and "Chèvres". so search engine seems to have specific behavior with tags. search box and words with accents - acrylian - 2018-10-04 Yes, a direct tag search uses a specific url since you explicitly request that when clicking on the link. This is rather expected behaviour. search box and words with accents - vincent3569 - 2018-10-04 I don't use tag on tag cloud in the end of my page but I use the search input. To be more clear on my scenario:
If I use "chèvre" or "Chèvre" as keyword on all fields, there are 5 items found (including item with tag "chèvre"). so search on tags content seems to be "case insensitive" but "characters sensitive". objectively, i don't see reason to privilege the "case insensitive" and not "characters insensitive" as it is done on the contents of all the fields of the gallery. search box and words with accents - acrylian - 2018-10-04 Did you clear or disable the search cache, too? Jus to be sure nothing interferes. I will try to reproduce this as soon as I get the time. Btw, the next major release planned will see some changes to tags that might impact searching on them so I am not sure I will work on this in 1.5.x anymore to avoid double work. I seriously need to start to be overly picky… |