<p dir="ltr">OK. I will look into this. I will need to start from scratch, so, it might take me a while to do this. I will report back with questions. Thank you Sander for the additional response </p>
<div class="gmail_quote">On Jan 12, 2015 12:04 PM, "Christoph Lingg" <<a href="mailto:christoph@lingg.eu">christoph@lingg.eu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Good point Sander. There are two approaches to filter results. I thought about importing all documents and filtering on query time, whilst Sander's approach avoids even importing those documents.<div><br></div><div>Cheers,</div><div>Christoph<br><div><br><div><blockquote type="cite"><div>Am 12.01.2015 um 18:56 schrieb Sander van Tulden <<a href="mailto:sander.vantulden@falk.nl" target="_blank">sander.vantulden@falk.nl</a>>:</div><br><div>
<div dir="auto">
<div>Hi Sashin,</div>
<div><br>
</div>
<div>For my use case we needed to filter out all POIs and certain other tags. I made a solution for this (beware, it is pretty quick'n'dirty and could use some optimizations) for Photon. I use a json file with a tag->value whitelist, so the importing process
only uses the tags of the json file for the index. You could take a look at this (closed) PR here:
<a href="https://github.com/komoot/photon/pull/129" target="_blank">https://github.com/komoot/photon/pull/129</a></div>
<div><br>
</div>
<div>It might help you solve your use case,</div>
<div><br>
</div>
<div>Greets,</div>
<div><br>
</div>
<div>Sander van Tulden<br>
<br>
</div>
<div><br>
Op 12 jan. 2015 om 18:46 heeft Sachin Dole <<a href="mailto:sdole@genvega.com" target="_blank">sdole@genvega.com</a>> het volgende geschreven:<br>
<br>
</div>
<blockquote type="cite">
<div><p dir="ltr">That is very nice of you not only to reply but also to add reg_name to index.</p><p dir="ltr">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><p dir="ltr">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">Thank you once again.</p>
<div class="gmail_quote">On Jan 12, 2015 11:22 AM, "Christoph Lingg" <<a href="mailto:christoph@lingg.eu" target="_blank">christoph@lingg.eu</a>> wrote:<br type="attribution">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi Sachin,
<div><br>
</div>
<div>thanks for your feedback. Photon searches in much more than name, also street country, housnumber, postcode and administrative levels. </div>
<div><br>
</div>
<div>We are already including a bunch of name variants, like loc_name. </div>
<div><br>
</div>
<div>Reg name is not used very often, see <a href="http://taginfo.openstreetmap.org/keys/reg_name" target="_blank">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">https://github.com/komoot/photon/commit/a8bc9b255ddffd47103172b579e47fd38c642786</a></div>
<div><br>
</div>
<div>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><br>
</div>
<div>Cheers,</div>
<div>Christoph<br>
<div><br>
<div>
<blockquote type="cite">
<div>Am 12.01.2015 um 13:09 schrieb Sachin Dole <<a href="mailto:sdole@genvega.com" target="_blank">sdole@genvega.com</a>>:</div>
<br>
<div>
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>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">http://photon.komoot.de/</a></div>
<div><br>
</div>
<div>THANKS a lot!</div>
<div><br>
</div>
<div>Best,</div>
<div>Sachin Dole<br clear="all">
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
Photon mailing list<br>
<a href="mailto:Photon@openstreetmap.org" target="_blank">Photon@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank">https://lists.openstreetmap.org/listinfo/photon</a><br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
Photon mailing list<br>
<a href="mailto:Photon@openstreetmap.org" target="_blank">Photon@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank">https://lists.openstreetmap.org/listinfo/photon</a><br>
<br>
</blockquote>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>Photon mailing list</span><br>
<span><a href="mailto:Photon@openstreetmap.org" target="_blank">Photon@openstreetmap.org</a></span><br>
<span><a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank">https://lists.openstreetmap.org/listinfo/photon</a></span><br>
</div>
</blockquote>
</div>
_______________________________________________<br>Photon mailing list<br><a href="mailto:Photon@openstreetmap.org" target="_blank">Photon@openstreetmap.org</a><br><a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank">https://lists.openstreetmap.org/listinfo/photon</a><br></div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
Photon mailing list<br>
<a href="mailto:Photon@openstreetmap.org">Photon@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank">https://lists.openstreetmap.org/listinfo/photon</a><br>
<br></blockquote></div>