Page 1 of 1

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

Posted: Mon Nov 20, 2017 12:41 pm
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

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

Posted: Mon Nov 20, 2017 12:54 pm
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

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

Posted: Mon Nov 20, 2017 3:09 pm
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.