<div dir="ltr"><div>OK! I got it to work. So, my question now is: you wrote previously that the feature I asked for - the ability to filter search results based on input parameters - that is one of the top requested feature? Is there a github issue id for it? I will be happy to take this conversation to that issue.</div><div><br></div><div>Thanks VERY MUCH for your quick response today.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 5:18 PM, Christoph Lingg <span dir="ltr"><<a href="mailto:christoph@lingg.eu" target="_blank">christoph@lingg.eu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style>I released a new version some days ago that fixed that problem, we are now working with version 0.2. See readme on <a href="https://github.com/komoot/photon" target="_blank">https://github.com/komoot/photon</a><div><br></div><div>If you don’t want to download the data again, you can also have a look on this comment: <a href="https://github.com/komoot/photon/issues/130#issuecomment-68051033" target="_blank">https://github.com/komoot/photon/issues/130#issuecomment-68051033</a></div><div><br></div><div>Cheers<div><div><br><div><blockquote type="cite"><div>Am 21.01.2015 um 23:23 schrieb Sachin Dole <<a href="mailto:sdole@genvega.com" target="_blank">sdole@genvega.com</a>>:</div><div><div class="h5"><br><div><div style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal" dir="ltr"><div>the error that I get is:</div><div>[qtp849189535-58] ERROR spark.webserver.MatcherFilter -<br>org.elasticsearch.indices.IndexMissingException: [photon] missing<br>        at org.elasticsearch.cluster.metadata.MetaData.convertFromWildcards(MetaData.java:771)</div></div><div class="gmail_extra" style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"><br><div class="gmail_quote">On Wed, Jan 21, 2015 at 3:33 PM, Sachin Dole<span> </span><span dir="ltr"><<a href="mailto:sdole@genvega.com" target="_blank">sdole@genvega.com</a>></span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr"><div>hello, I followed instructions on README file to download the jar file, the index, uncompressed the index and ran photon with java -jar photon-0.1.2.jar inside from the photon_data directory. Server starts up in about 30 seconds. However, if I go to the test page<span> </span><a href="http://localhost:2322/api?q=berlin" target="_blank">http://localhost:2322/api?q=berlin</a><span> </span>I get a server error on line 67 in Searcher.java in the "execute" method.</div><div><br></div><div><pre style="color:rgb(169,183,198);background-color:rgb(43,43,43)"><font color="#660000" size="3" style="background-color:rgb(255,255,255)">SearchResponse response = client.prepareSearch("photon").setSearchType(SearchType.<span style="font-style:italic">QUERY_AND_FETCH</span>).setQuery(query).setSize(limit).setTimeout(TimeValue.<span style="font-style:italic">timeValueSeconds</span>(7)).<font style="background-color:rgb(204,0,0)"><font color="#fff2cc">execute()</font>.</font>actionGet();</font></pre></div><div><font color="#cc7832" face="Courier New" size="3" style="background-color:rgb(43,43,43)"><font color="#222222" face="Arial" style="background-color:rgb(255,255,255)">What am I missing?</font></font><pre style="font-family:"Courier New";font-size:12pt;background-color:rgb(43,43,43)"><br></pre></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">On Mon, Jan 12, 2015 at 2:36 PM, Sachin Dole<span> </span><span dir="ltr"><<a href="mailto:sdole@genvega.com" target="_blank">sdole@genvega.com</a>></span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><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<span> </span></p><div><div><div class="gmail_quote">On Jan 12, 2015 12:04 PM, "Christoph Lingg" <<a href="mailto:christoph@lingg.eu" target="_blank">christoph@lingg.eu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>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:<span> </span><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:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>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" 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></div></blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">--<span> </span><br><div>President  |  Genvega Inc.  | <span> </span><a href="http://www.genvega.com/" target="_blank">www.genvega.com</a> <span> </span>|  tel:<span> </span><a href="tel:630.290.2561" target="_blank" value="+16302902561">630.290.2561</a></div></font></span></div></div></blockquote></div><br><br clear="all"><br>--<span> </span><br><div>President  |  Genvega Inc.  | <span> </span><a href="http://www.genvega.com/" target="_blank">www.genvega.com</a>  |  tel: <a href="tel:630.290.2561" target="_blank" value="+16302902561">630.290.2561</a></div></div><span style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">_______________________________________________</span><br style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"><span style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;float:none;display:inline!important;white-space:normal">Photon mailing list</span><br style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"><a style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal" href="mailto:Photon@openstreetmap.org" target="_blank">Photon@openstreetmap.org</a><br style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal"><a style="font:14px/normal Helvetica;text-transform:none;text-indent:0px;letter-spacing:normal;word-spacing:0px;white-space:normal" href="https://lists.openstreetmap.org/listinfo/photon" target="_blank">https://lists.openstreetmap.org/listinfo/photon</a></div></div></div></blockquote></div><br></div></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><br><br clear="all"><br>-- <br><div class="gmail_signature">President  |  Genvega Inc.  |  <a href="http://www.genvega.com" target="_blank">www.genvega.com</a>  | 
 tel: 630.290.2561</div>
</div>