Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: sah62 - maaliskuu 03, 2020, 09:12:32 AP

Otsikko: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: sah62 - maaliskuu 03, 2020, 09:12:32 AP
I'm running SMF 2.0.17 with PHP 7.2 (7.2.24-0ubuntu0.18.04.3) and Ubuntu 18.04.4 LTS.

When I search my forum's topics for a phrase like "transmission fluid" (in quotes) from a Windows 10 PC using Firefox 68.5.0esr, I get results as expected. Topics are found, and the phrase is highlighted in the found topics. When I do the same search on an iPhone XR running iOS 13.3.1 and Safari 13, I get no results at all. I also get no results using Edge 44.13.3 on the same iPhone. Can someone help me figure out why I'm getting no search results when searching from an iPhone?
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: Kindred - maaliskuu 03, 2020, 09:33:59 AP
bet you it's the quotes....

are you using UTF8 on your site or still on ISO?
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: sah62 - maaliskuu 03, 2020, 10:04:28 AP
My smf_topics table uses the InnoDB engine type with utf8_general_ci collation.
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: Kindred - maaliskuu 03, 2020, 03:18:54 IP
but is your SMF ALSO UTF8?
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: shawnb61 - maaliskuu 03, 2020, 04:07:08 IP
Do you see the same behavior on this site?
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: sah62 - maaliskuu 03, 2020, 05:02:17 IP
Lainaus käyttäjältä: Kindred - maaliskuu 03, 2020, 03:18:54 IP
but is your SMF ALSO UTF8?

The current language setting is English, ISO-8859-1. Should it be English UTF-8?
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: sah62 - maaliskuu 03, 2020, 05:08:53 IP
Lainaus käyttäjältä: shawnb61 - maaliskuu 03, 2020, 04:07:08 IP
Do you see the same behavior on this site?

I get results when I search from the iPhone, but they're not the same results as found when searching from a PC. I just tried a search for "language setting". On the phone, I get a list of topic titles without highlighted hits. On the PC, I get a different list of topics and hits are highlighted.
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: sah62 - maaliskuu 06, 2020, 09:22:04 AP
Since I'm seeing the same basic behavior here, should I assume that this is a feature and not a bug?
Otsikko: Re: Search Produces Different Results Based on User's Device and Browser?
Kirjoitti: Kindred - maaliskuu 06, 2020, 02:07:49 IP
regarding the different result -- I don't know.

Regarding the highlighting...   yes, I expect that is browser specific -- so, using a mobile browser will ahve different effects from using a desktop browser