• If a user enters a city with a space in it such as New York, Recontre won’t be able to find it using search.

    I suspect Rencontre is stripping all spaces from city names such as “New York”. So Rencontre will search for “NewYork” if the user tries to search for “New York”.

    That is why if the user enters “NewYork” for his/her city, Rencontre will successfully return it if the search has “New York”.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Marisa

    (@marisa2023)

    If someone enters New York as their city, it cannot be found be searching for New York.

    It can be found be searching for NewYork.

    Therefore the city in the MySQL database is stripped of internal spaces before being compared with the string entered by search which is not stripped of spaces.

    So we need things to be equally stripped of internal white spaces.

    I think. I’ve only done very quick testing.

    Thread Starter Marisa

    (@marisa2023)

    OK. The problem is that is array of replacements for the city entered for searching just misses out ‘ ‘ for the list of things to replace by the empty string ”. I’ve only rushing looking at this, but it looks like the problem can be fixed easily.

    Thread Starter Marisa

    (@marisa2023)

    This is a very low priority issue. I have found a workaround.

    Plugin Author Jacques Malgrange

    (@sojahu)

    Done! V3.9.2

    Thread Starter Marisa

    (@marisa2023)

    Thank you. I’m sure anybody in New York or San Franciso will thank you one day. Or even High Wycombe for those not in the USA.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘problem searching for cities with a space in them’ is closed to new replies.