- Issue created by @drupix
- Status changed to Needs review
over 1 year ago 2:47pm 20 May 2023 - Status changed to Postponed: needs info
over 1 year ago 7:20am 20 September 2023 - π©πͺGermany christianadamski Berlin, Germany
Not a big fan of this. How about using bias?
Go to https://github.com/komoot/photon and search for "Bias".
- π¨πSwitzerland drupix Geneva, π¦π¨π
Tell me if I'm wrong but there is nothing in code about
location_bias_scale
...For me the "Search extra value" is optional and meant to add limitation in results returned by the autocomplete field.
For example if I'm typing "vev" in autocomplete, I don't want that appears results from Germany or Czechoslovakia but only from Switzerland or any "Search extra value" set. With this example if I set "Vaud Switzerland" in "Search extra value", while I'm typing "vev" in autocomplete the photon API search for "q=vev Vaud Switzerland" and I'm getting only results in this particular region (Vaud) in Switzerland.
Just leaving "Search extra value" empty gives the default behavior.
Maybe I'm missing something...
- π©πͺGermany christianadamski Berlin, Germany
Bias is not implemented yet. But so far I would prefer it to simply adding words to the query, invisible to the user.
What's your opinion?
- π¨πSwitzerland drupix Geneva, π¦π¨π
This is the case with the patch, the "Search extra value" is not visible by the user.
If you open the debugger tools of your browser and go under the Network tab you can see the "extra value" added to the query while typing text in the autocomplete field, nothing else...