<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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" class="">https://github.com/komoot/photon</a><div class=""><br class=""></div><div class="">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" class="">https://github.com/komoot/photon/issues/130#issuecomment-68051033</a></div><div class=""><br class=""></div><div class="">Cheers<div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">Am 21.01.2015 um 23:23 schrieb Sachin Dole <<a href="mailto:sdole@genvega.com" class="">sdole@genvega.com</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">the error that I get is:</div><div class="">[qtp849189535-58] ERROR spark.webserver.MatcherFilter -<br class="">org.elasticsearch.indices.IndexMissingException: [photon] missing<br class=""> at org.elasticsearch.cluster.metadata.MetaData.convertFromWildcards(MetaData.java:771)</div></div><div class="gmail_extra" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class="gmail_quote">On Wed, Jan 21, 2015 at 3:33 PM, Sachin Dole<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:sdole@genvega.com" target="_blank" class="">sdole@genvega.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr" class=""><div class="">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 class="Apple-converted-space"> </span><a href="http://localhost:2322/api?q=berlin" target="_blank" class="">http://localhost:2322/api?q=berlin</a><span class="Apple-converted-space"> </span>I get a server error on line 67 in Searcher.java in the "execute" method.</div><div class=""><br class=""></div><div class=""><pre style="color: rgb(169, 183, 198); background-color: rgb(43, 43, 43);" class=""><font color="#660000" size="3" style="background-color: rgb(255, 255, 255);" class="">SearchResponse response = client.prepareSearch("photon").setSearchType(SearchType.<span style="font-style: italic;" class="">QUERY_AND_FETCH</span>).setQuery(query).setSize(limit).setTimeout(TimeValue.<span style="font-style: italic;" class="">timeValueSeconds</span>(7)).<font style="background-color: rgb(204, 0, 0);" class=""><font color="#fff2cc" class="">execute()</font>.</font>actionGet();</font></pre></div><div class=""><font color="#cc7832" face="Courier New" size="3" style="background-color: rgb(43, 43, 43);" class=""><font color="#222222" face="Arial" style="background-color: rgb(255, 255, 255);" class="">What am I missing?</font></font><pre style="font-family: 'Courier New'; font-size: 12pt; background-color: rgb(43, 43, 43);" class=""><br class=""></pre></div><div class="gmail_extra"><div class=""><div class="h5"><br class=""><div class="gmail_quote">On Mon, Jan 12, 2015 at 2:36 PM, Sachin Dole<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:sdole@genvega.com" target="_blank" class="">sdole@genvega.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><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" class="">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 class="Apple-converted-space"> </span></p><div class=""><div class=""><div class="gmail_quote">On Jan 12, 2015 12:04 PM, "Christoph Lingg" <<a href="mailto:christoph@lingg.eu" target="_blank" class="">christoph@lingg.eu</a>> wrote:<br type="attribution" class=""><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 class="">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 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 18:56 schrieb Sander van Tulden <<a href="mailto:sander.vantulden@falk.nl" target="_blank" class="">sander.vantulden@falk.nl</a>>:</div><br class=""><div class=""><div dir="auto" class=""><div class="">Hi Sashin,</div><div class=""><br class=""></div><div class="">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 class="Apple-converted-space"> </span><a href="https://github.com/komoot/photon/pull/129" target="_blank" class="">https://github.com/komoot/photon/pull/129</a></div><div class=""><br class=""></div><div class="">It might help you solve your use case,</div><div class=""><br class=""></div><div class="">Greets,</div><div class=""><br class=""></div><div class="">Sander van Tulden<br class=""><br class=""></div><div class=""><br class="">Op 12 jan. 2015 om 18:46 heeft Sachin Dole <<a href="mailto:sdole@genvega.com" target="_blank" class="">sdole@genvega.com</a>> het volgende geschreven:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><p dir="ltr" class="">That is very nice of you not only to reply but also to add reg_name to index.</p><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><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" target="_blank" class="">christoph@lingg.eu</a>> wrote:<br type="attribution" class=""><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 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" 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=""><br class=""></blockquote></div></div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">Photon mailing list</span><br class=""><span class=""><a href="mailto:Photon@openstreetmap.org" target="_blank" class="">Photon@openstreetmap.org</a></span><br class=""><span class=""><a href="https://lists.openstreetmap.org/listinfo/photon" target="_blank" class="">https://lists.openstreetmap.org/listinfo/photon</a></span><br class=""></div></blockquote></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" 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=""><br class=""></blockquote></div></div></div></blockquote></div><br class=""><br clear="all" class=""><br class=""></div></div><span class="HOEnZb"><font color="#888888" class="">--<span class="Apple-converted-space"> </span><br class=""><div class="">President | Genvega Inc. | <span class="Apple-converted-space"> </span><a href="http://www.genvega.com/" target="_blank" class="">www.genvega.com</a> <span class="Apple-converted-space"> </span>| tel:<span class="Apple-converted-space"> </span><a href="tel:630.290.2561" target="_blank" value="+16302902561" class="">630.290.2561</a></div></font></span></div></div></blockquote></div><br class=""><br clear="all" class=""><br class="">--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature">President | Genvega Inc. | <span class="Apple-converted-space"> </span><a href="http://www.genvega.com/" target="_blank" class="">www.genvega.com</a> | tel: 630.290.2561</div></div><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Photon mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:Photon@openstreetmap.org" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Photon@openstreetmap.org</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="https://lists.openstreetmap.org/listinfo/photon" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://lists.openstreetmap.org/listinfo/photon</a></div></blockquote></div><br class=""></div></div></div></body></html>