Skip to content

Commit 8ec2bce

Browse files
authored
Update README.md
1 parent ddd745b commit 8ec2bce

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Create a new `bucket` named _contacts_ add a few documents like this
1616
}
1717
````
1818
> Since this `bucket` may contain any type of document, an optional property `type` has been added to filter `contact` objects easily.
19-
>
19+
2020
### New Peoject
2121
Create a new Project with ASP.NET Core - Web Application (MVC).
2222
### Installing Couchbase packages
@@ -473,6 +473,18 @@ Add `Index`, `Create`, `Edit`, `Details`, and `Delete` views, under `Views`-> `C
473473
### Run
474474
Thant's it! Run and your application is ready to be served.
475475

476+
### Edit: If you've run into an error
477+
478+
If you've run into an error, which looks something like this:
479+
480+
````CSharp
481+
CouchbaseQueryException: No index available on keyspace contacts that matches your query. Use CREATE INDEX or CREATE PRIMARY INDEX to create an index, or check that your expected index is online.
482+
````
483+
You need to create an index before querying. For simplicity create a `Primary Index` on `type` field with following script.
484+
485+
````SQL
486+
CREATE PRIMARY INDEX ON contacts
487+
````
476488

477489
[Couchbase Home Page]: https://couchbase.com
478490
[Linq2Couchbase Github Page]: https://github.com/couchbaselabs/Linq2Couchbase

0 commit comments

Comments
 (0)