<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Sachin,<div class=""><div><blockquote type="cite" class=""><p dir="ltr" class="">I have another q for you, please: how can I use photon to search with a filter on tags? For example, I know that my app is only interested in nodes, ways and relations that have the tag with key "tourism" or a combination of a few different tags. In this case, I would like to completely filter out Hawaii county from results, while, still showing Hawaii state and Hawaii airport and various beaches in Hawaii state.</p></blockquote>That's one of the feature people asked the most. It is on the top of my todo list, but at the moment I am very busy closing this ticket and releasing version 0.2 <a href="https://github.com/komoot/photon/issues/102" class="">https://github.com/komoot/photon/issues/102</a></div><div><br class=""></div><div>Actually a filter should be very easy to implement. First we need a nice concept on how url parameters could look like. Then we need to parse those filter params here <a href="https://github.com/komoot/photon/blob/master/src/main/java/de/komoot/photon/RequestHandler.java" class="">https://github.com/komoot/photon/blob/master/src/main/java/de/komoot/photon/RequestHandler.java</a> and extend the elastic search query here: <a href="https://github.com/komoot/photon/blob/master/src/main/java/de/komoot/photon/elasticsearch/Searcher.java" class="">https://github.com/komoot/photon/blob/master/src/main/java/de/komoot/photon/elasticsearch/Searcher.java</a></div><div><br class=""></div><div>Let me know if you want to implement it, of course I will give you a hand!</div><div><br class=""></div><div>Cheers,</div><div>Christoph</div><div><blockquote type="cite" class=""><div class=""><p dir="ltr" class="">Once again, I would love to roll up my sleeves and get my hands dirty if that's what it will need. </p><p dir="ltr" class="">Thank you once again.</p>
<div class="gmail_quote">On Jan 12, 2015 11:22 AM, "Christoph Lingg" <<a href="mailto:christoph@lingg.eu" class="">christoph@lingg.eu</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Sachin,<div class=""><br class=""></div><div class="">thanks for your feedback. Photon searches in much more than name, also street country, housnumber, postcode and administrative levels. </div><div class=""><br class=""></div><div class="">We are already including a bunch of name variants, like loc_name. </div><div class=""><br class=""></div><div class="">Reg name is not used very often, see <a href="http://taginfo.openstreetmap.org/keys/reg_name" target="_blank" class="">http://taginfo.openstreetmap.org/keys/reg_name</a>. Anyway, you were just writing at a moment when I was working on the importer, so I just regional names to the photon index. see <a href="https://github.com/komoot/photon/commit/a8bc9b255ddffd47103172b579e47fd38c642786" target="_blank" class="">https://github.com/komoot/photon/commit/a8bc9b255ddffd47103172b579e47fd38c642786</a></div><div class=""><br class=""></div><div class="">We are currently working on reimporting new data, if we are lucky we will have a new photon version by the end of this week. Keep the finger crossed.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Christoph<br class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">Am 12.01.2015 um 13:09 schrieb Sachin Dole <<a href="mailto:sdole@genvega.com" target="_blank" class="">sdole@genvega.com</a>>:</div><br class=""><div class=""><div dir="ltr" class=""><div class="">Hello,</div><div class=""><br class=""></div><div class="">Can photon search on other tags than just name? For example, if you search for "Big Island", photon does not return the main island of United States state of Hawai'i. On nominatim, it returns correctly. In this case, the "name" of the relation is "Hawai'i" but "reg_name" is "Big Island" and nominatim search correctly. If photon currently does not allow for this, can I try to add this ability on a fork? I will have to start from scratch (create a new database etc), and I have no problem doing so if indeed it is needed. If it already exists, it will be great if you can show me an example on <a href="http://photon.komoot.de/" target="_blank" class="">http://photon.komoot.de/</a></div><div class=""><br class=""></div><div class="">THANKS a lot!</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Sachin Dole<br clear="all" class=""></div><div class=""><br class=""></div>
</div>
_______________________________________________<br class="">Photon mailing list<br class=""><a href="mailto:Photon@openstreetmap.org" target="_blank" class="">Photon@openstreetmap.org</a><br class=""><a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank" class="">https://lists.openstreetmap.org/listinfo/photon</a><br class=""></div></blockquote></div><br class=""></div></div></div><br class="">_______________________________________________<br class="">
Photon mailing list<br class="">
<a href="mailto:Photon@openstreetmap.org" class="">Photon@openstreetmap.org</a><br class="">
<a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank" class="">https://lists.openstreetmap.org/listinfo/photon</a><br class="">
<br class=""></blockquote></div>
_______________________________________________<br class="">Photon mailing list<br class=""><a href="mailto:Photon@openstreetmap.org" class="">Photon@openstreetmap.org</a><br class="">https://lists.openstreetmap.org/listinfo/photon<br class=""></div></blockquote></div><br class=""></div></body></html>