Thank you. So, mb_strpos() seems to be a more sensitive choice, but the server where the search engine is hosted for testings doesn't have the multi-byte functions set on, so I can't check it :-(
But if the dictionary is made correctly, there shouldn't be any problem when using non multi-byte functions.
If i use my previous example, it should index all the word from the dictionnary found in the string and take them out of it. At the end, "NASAannouncedyesterdayitiscancellingallspaceshuttleservicingmissionstotheH ubbleSpaceTelescope." would become"itis all tothe".
The string of unfound word can also be used to define common words or to expand the dictionnary.
What is the quickest and smartest way to achieve this?
|