spatial query - View with geospatial and non geospatial keys with CouchDB -


i'm using couchdb , geocouch , i'm trying understand if possible build geospatial index , "query" database both using location , value field.

data

{    "_id": "1",    "profession": "medic",    "location": [15.12, 30.22] }  {    "_id": "2",    "profession": "secretary",    "location": [15.12, 30.22] }  {    "_id": "3",    "profession": "clown",    "location": [27.12, 2.2] } 

questions

is there way perform following queries on these documents:

  • find documents job = "medic" near location [15.12, 30.22] (more important)
  • list different professions near location [15.12, 30.22] (a plus)

in case that's not possible, options have? i'm considering switching mongodb, i'd rather solve in different way.

notes

  • data changes quickly, new documents might added , many might removed

references

faceted search geo-index using couchdb


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -