Replies: 2 comments 1 reply
-
Have you seen #32 (comment) ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You basically suggest to implement an entirely different search algorithm. If you want to go down that road, I'd rather suggest you play around with the query algorithms in Photon directly. You can probably build one complex OpenSearch query to cover all your cases. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To improve the photon search on cartes.app, I thought of a strategy that would involve running several queries in parallel and sorting the results.
For example (but I haven't precisely thought about it yet). :
but also :
layer=city
(this is a very classic query, I understood the standard query already gives high weight to cities)osm_tag=shop
and also identify keywords in the search text to run even more specific filtered queries, for example :
hostel
to run a query with a filter ontourism=hostel
street
to run a query with a filter onlayer=street
Then I imagined comparing and re-sorting the results according to their score (probably with additional weights), but I now realise that the api doesn't provide such a score, just the sorted results, right ?
So I have 2 questions :
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions