Help doing queries with N1QL in CB 2.2 EE

I have been created a document in the server, but i don´t know how to do querys in the views, it’s my first time using couchbase. HELP!! …I’m doing an investigation about UnQL.

this is the document i’ve created

{
“Hamburguesa”: {
“ingrediente”: [
“pan”,
“lechuga”,
{
“carne”: [
“res”
]
},
“tomate”,
“cebolla”,
“salsas”,
“queso”
],
“tiempo_Coccion”: 15,
“tipo”: “sencillo”
},
“PerroCaliente”: {
“ingrediente”: [
“pan”,
“papitas”,
{
“carne”: [
“chorizo”
]
},
“huevo”,
“cebolla”,
“salsas”,
“queso”
],
“tiempo_Coccion”: 10,
“tipo”: “sencilllo”
},
“Pizza”: {
“ingrediente”: [
“queso”,
{
“carne”: [
“chorizo”,
“pollo”,
“res”
]
},
“amor”,
“cebolla”,
“salsas”
],
“tiempo_Coccion”: 30,
“tipo”: “carnes”
}
}

Hello,

You can learn about N1QL using the interactive tutorial: http://query.pub.couchbase.com/tutorial/#1

After that, you can install N1QL and start using it to query your Couchbase server.

i have some problems installing it, i´ve already create the document in C.B.
when i try to run N1QL gaine this error

cbq.exe> ./cbq-engine -couchbase http://:8091/
11:54:03.597729 ?[31mERROR: Post http://localhost:8093/query: dial tcp 127.0.0.1
:8093: ConnectEx tcp: El equipo remoto rechazó la conexión de red.?[0m?[2m – ma
in.HandleInteractiveMode() at interactive.go:54?[0m

i don’t know what’s wrong, thanks for your help.

I talked to our query engineer, and he said you may be trying to start the query engine inside of your client program (its our guess).

Try these steps:

  1. Start couchbase, verify its up on :8091
  2. Now start the query engine, pointed to that couchbaes. Verify its up at :8093
  3. Now start the query client, pointed at the query engine. Verify running a query works…

Reinstall N1QL and make sure you follow the directions to unzip the package and run the tutorial locally. Make sure you successfully run the tutorial locally before trying to connect and query your Couchbase server.