Is it possible to change search order (B->P->F) to (B->F->P)

deals with geocoding and reverse geocoding in the context of PTV Geocoding&Places, PTV Geocoding&Places OSM and PTV xLocate 1 and 2
Post Reply
metin.kahraman
Posts: 11
Joined: Tue May 13, 2014 12:32 pm

Is it possible to change search order (B->P->F) to (B->F->P)

Post by metin.kahraman »

Hello everybody,

I learned from another post, that it might be advisable to switch of phonetic search entirely, because since the search order is Binary->Phonetic->Fuzzy it happens that xLocate finds bad matching in phonetic search whereas fuzzy search would find a better one.

Examples

Searching for: houseNumber="3" street="ROTHSCHILDALLEE" postCode="60589" city="FFM" country="D"
yields: houseNumber="" street="" city2="Wehm" city="Werlte" postCode="49757" country="D"

Searching for: houseNumber="16" street="HAUPTSTRASSE" postCode="70639" city="GERLINGER" country="D"
yields: houseNumber="" street="" city2="Krelinger Bruch" city="Walsrode" postCode="29693" country="D"


But does it really have to be all or nothing?
Isn't it possible just to change the search order to Binary->Fuzzy->Phonetic?

Is anybody aware, wether there is already an option for this?

Regards

Metin
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Is it possible to change search order (B->P->F) to (B->F

Post by Bernd Welter »

Hello Metin,

two thoughts
  • If you want to change the sorting order how about calling the function several times (without depending on server interface)?
  • Probably there might be some cases where FUZZY returns better values but I doubt in the statement "switching the order is better from a generic perspective": quitse sure you'd find some other example afterwards recommending PHONETIC should be processed before FUZZY.
Let's wait for Jochen's statement.

Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
User avatar
bocajo
Posts: 45
Joined: Tue Mar 01, 2016 3:05 pm

Re: Is it possible to change search order (B->P->F) to (B->F

Post by bocajo »

No, it isn't possible to change the order of phonetic and fuzzy search. It's only possible to switch off the phonetic or fuzzy search.
If you switch off the phonetic search there are request where you are getting a better result but maybe you will also find some requests which are getting worse. If you have a good testset you will see if this configuration works for you or not.
Jochen Anderer
Manager Engineer
PTV GROUP GERMANY
Post Reply