MQL Search returns "you've encountered an internal error"

1 view
Skip to first unread message

David

unread,
Jan 18, 2010, 2:06:44 PM1/18/10
to GeoAPI
Attempting to get an MQL search to work. I've created an app-specific
entity and now want to find it and then eventually other nearby app-
specific entities that I've created. So the end goal is to be able to
1) query for all the entities in my view and 2) same as 1) but with
constraints on my own user-defined parameters.

Am using my own apikey. Am providing as much info as I can here, for
clarity:

Here's the response from creating the entity:

{"query": {"type": "entity", "params": {"guid": "user-myapikey-carol",
"show-geom": "all"}}, "result": {"name": "carol", "views": ["weather",
"foursquare", "twitter", "flickr", "youtube"], "userviews": ["md-
view", "20816", "myview"], "shorturl": "http://geo.am/6BIXdw", "geom":
{"type": "Point", "coordinates": [-77.11974, 38.96189]}, "type": "user-
entity"}}

Here's the response from writing to the view '20816':

{"query": {"type": "entity-view", "params": {"userview": "20816",
"guid": "user-myapikey-carol"}}, "result": {"entries": [{"date":
"2010-01-18T18:30:26Z", "data": {"name": "downed tree", "utility":
"electric"}, "id": "JRBnCGNb"}, ... [other entries here]

Here's the query I'm sending:

{ "lat": 38.96188, "lon": -77.11975, "radius": "1.0km", "entity":
[{ "guid": null, "type": "user-entity", "userview.20816": {"entries":
[{ "data": { "utility": "electric"}}] } }] }

and the response:

#<Net::HTTPInternalServerError:0x23cb70>
{"error": "you've encountered an internal error :-( please contact
a...@geoapi.com if it persists"}

Thanks for any help you all can provide!

David

andrei php

unread,
Jan 18, 2010, 2:25:34 PM1/18/10
to geo...@googlegroups.com
Hello David,

I think that you should add index for 'utility'.

See http://docs.geoapi.com/User-Views, section Indexing With The options Method

David

unread,
Jan 18, 2010, 7:08:55 PM1/18/10
to GeoAPI
Thanks Andrei, now the server error is gone but it appears I get no
results, the response is this:

#<Net::HTTPOK:0x6193c4>
{"lat": 38.96188, "radius": "1.0km", "lon": -77.11975, "entity": []}


On Jan 18, 2:25 pm, andrei php <myw.php.and...@gmail.com> wrote:
> Hello David,
>
> I think that you should add index for 'utility'.
>

> Seehttp://docs.geoapi.com/User-Views, section Indexing With The options
> Method

Reply all
Reply to author
Forward
0 new messages