Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Gerrit
    @gvd
    any idea why I might be getting java.lang.ClassCastException: org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexFieldData$Global in my log?
    Peter Johnson
    @missinglink
    hey @gvd, which version of elasticsearch are you using? they have been releasing new versions quite often and we are currently not supporting the v2.0 beta
    the easiest way to check is:
    $ curl localhost:9200
    Gerrit
    @gvd
    @missinglink I'm using 1.7.2
    Gerrit
    @gvd
    I'm running this on Java 8 if that makes any difference
    Julian Simioni
    @orangejulius
    we use 1.7.2 and java 8, so you should be good there
    do you have a full stack trace or know what was happening at that moment?
    Gerrit
    @gvd
    '[2015-10-01 05:51:49,250][WARN ][index.warmer ] [Abdul Alhazred] pelias failed to warm-up global ordinals for [center_point]
    java.lang.ClassCastException: org.elasticsearch.index.fielddata.plain.GeoPointDoubleArrayIndexFieldData cannot be cast to org.elasticsearch.index.fielddata.IndexFieldData$Global
    at org.elasticsearch.search.SearchService$FieldDataWarmer$3.run(SearchService.java:965)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    '
    Gerrit
    @gvd
    Does my config need to have the 'index_data' => true set? I just noticed it on the mapzen blog but don't see it anywhere in the pelias-config examples
    Julian Simioni
    @orangejulius
    mine doesn't have it. the defaults SHOULD be mostly ok
    you went through and created the schema and everything?
    Gerrit
    @gvd
    Yes. According to ES (_cat/indices?v => health status index pri rep docs.count docs.deleted store.size pri.store.size
    green open pelias 1 0 89781159 0 17gb 17gb
    I index US osm, quattroshapes, geonames and openaddresses. I also noticed that my return results do not have the property "text"
    Julian Simioni
    @orangejulius
    wow that's a good amount of data. basic queries work though?
    the text property might be missing because adminLookup: true wasn't set in your pelias config when doing the imports. if you imported quattroshapes then you can easily turn that on. we're probably going to make it default to true in the future as well
    Gerrit
    @gvd
    @orangejulius for that I need the "admin-lookup" module right? At what stage do I run this? Before any imports? After loading quattroshapes? Or after loading OSM data?
    Julian Simioni
    @orangejulius
    the admin-lookup module is included as a dependency by anything that needs it, so you'll already have it. the admin lookup is done at import time, so you would want to rerun any imports that didn't use it.
    Gerrit
    @gvd
    basic queries seem to work but I'm not sure about the quality. When I do the following query: v1/search?text=oakland+california I get the following results:
    {"geocoding":{"version":"0.1","attribution":"http://pelias.mapzen.com/v1/attribution","query":{"text":"oakland california","parsed_text":{"state":"CA","regions":["oakland"]},"size":10,"private":false},"engine":{"name":"Pelias","author":"Mapzen","version":"1.0"},"timestamp":1443816530003},"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"1373:adm2:us:usa:oakland_county","gid":"qs:county:1373:adm2:us:usa:oakland_county","layer":"county","source":"qs","name":"Oakland County","country_a":"USA","country":"United States","region":"Michigan","county":"Oakland County","confidence":0.5,"label":"Oakland County, Michigan"},"geometry":{"type":"Point","coordinates":[-83.3858064383772,42.6603972464577]}},{"type":"Feature","properties":{"id":"357735993","gid":"osm:venue:357735993","layer":"venue","source":"osm","name":"WVNJ-AM (Oakland)","country_a":"USA","country":"United States","region":"New Jersey","region_a":"NJ","county":"Bergen County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"WVNJ-AM (Oakland), Oakland, NJ"},"geometry":{"type":"Point","coordinates":[-74.249592,41.057319]}},{"type":"Feature","properties":{"id":"366490750","gid":"osm:venue:366490750","layer":"venue","source":"osm","name":"Oakland Fire Hall","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Fire Hall, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.466971,41.838049]}},{"type":"Feature","properties":{"id":"366491139","gid":"osm:venue:366491139","layer":"venue","source":"osm","name":"Oakland Public Library","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Public Library, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.465859,41.835767]}},{"type":"Feature","properties":{"id":"357790497","gid":"osm:venue:357790497","layer":"venue","source":"osm","name":"Oakland Family Practice","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Family Practice, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.466138,41.835271]}},{"type":"Feature","properties":{"id":"357790499","gid":"osm:venue:357790499","layer":"venue","source":"osm","name":"Oakland Medical Clinic","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Medical Clinic, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.459193,41.834715]}},{"type":"Feature","properties":{"id":"357790502","gid":"osm:venue:357790502","layer":"venue","source":"osm","name":"Oakland Memorial Hospital","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Memorial Hospital, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.459193,41.834715]}},{"type":"Feature","properties":{"id":"357790518","gid":"osm:venue:357790518","layer":"venue","source":"osm","name":"Oakland Post Office","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Post Office, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.466415,41.836104]}},{"type":"Feature","properties":{"id":"357790521","gid":"osm:venue:357790521","layer":"venue","source":"osm","name":"Oakland Craig Elementary School","country_a":"USA","country":"United States","region":"Nebraska","region_a":"NE","county":"Burt County","localadmin":"Oakland","locality":"Oakland","confidence":0.5,"label":"Oakland Craig Elementary School, Oakland, NE"},"geometry":{"type":"Point","coordinates":[-96.462017,41.83731]}},{"type":"Feature","p
    @orangejulius ah ok :) thanks
    Julian Simioni
    @orangejulius
    adding a comma like "oakland, california" will help a lot. we have code to try to detect cities, states, etc in the text field but it's not nearly as smart as what most of us are used to from google yet :)
    it knows to split on commas though
    Gerrit
    @gvd
    @orangejulius so none of thos results are oakland, ca
    Julian Simioni
    @orangejulius
    oh hmmm, on our production server at search.mapzen.com, searching for "oakland, california" gives me the quattroshapes entry for the city of oakland as the first result
    Gerrit
    @gvd
    yeah I noticed, I tried that
    I use the simplified quattroshapes as suggested and the only configuration I have that that is the path
    ooh actually you are right, adding that comma helped a lot. Much better results! Thanks :)
    Julian Simioni
    @orangejulius
    yeah, it makes a big difference, glad it worked for you
    Gerrit
    @gvd
    I did notice that I do have adminLookup enabled for OSM
    "openstreetmap": { "adminLookup": true, "leveldbpath": "/tmp", "datapath": "/opt/pelias/data/osm", "import": [{ "type": { "node": "osmnode", "way": "osmway" }, "filename": "@OSM_FILE@" }] }
    Julian Simioni
    @orangejulius
    ah cool. if it worked for OSM it will work for OpenAddresses as well
    Gerrit
    @gvd
    Yeah it did
    Is "label" the same as "text" in the current version of pelias?
    Julian Simioni
    @orangejulius
    yeah, i think we renamed it recently
    Gerrit
    @gvd
    ah ok, yeah I noticed the demo calls suggest instead of autocomplete etc.
    Julian Simioni
    @orangejulius
    right. the demo uses our old api. we'll be depricating that in a few months in favor of the v1 api. you can tell you're on v1 since that's what all the urls start with :)
    we have a new demo at http://pelias.github.io/leaflet-geocoder/ that uses the new API
    Gerrit
    @gvd
    very nice!
    Julian Simioni
    @orangejulius
    it also uses our vector tiles and leaflet plugin, so its a much more full demo of mapzen stuff
    you can thank @louh for that
    Nimi Wariboko Jr.
    @nemosupremo
    What are some production stats for running pelias?
    locally.
    clustered ES setup? Or can you get away with a modest beefy node?
    Julian Simioni
    @orangejulius
    @nemothekid for all of our data in production its something like 70GB of data across i think 6 c4.4xlarge instances, with a few t2.medium instances for other things
    but we run it on our local machines for development purposes with just a little bit of data imported, so it works fine on any machine really. even my home laptop which only has 4GB of ram works fine
    Julian Simioni
    @orangejulius
    heya @/all, we're going to move to using pelias/pelias(https://gitter.im/pelias/pelias) as the primary Pelias gitter chat room. This mirrors the idea that github.com/pelias/pelias is the primary "meta-repo" for all of pelias. so, head on over there if you'd like.
    Lou Huang
    @louh
    is this actual canonical chat or not? there's conflicting messages here and in pelias/pelias
    Julian Simioni
    @orangejulius
    yeah, sorry for the confusion, we wanted to make pelias/pelias the meta-channel that is used for most discussion
    it's totally cool if API-specific chats happen in here though
    Amir Rahnama
    @ambodi
    HI guys. Can someone explain to me how GeoDisambigutation and FallbackQuery work?