Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexes should create N1QL indexes #25

Open
CelsoSantos opened this issue Apr 27, 2017 · 0 comments
Open

Indexes should create N1QL indexes #25

CelsoSantos opened this issue Apr 27, 2017 · 0 comments
Labels

Comments

@CelsoSantos
Copy link

What you are doing?

Defining an index on models

indexes: {
    refDocs: {
		getByEmail: {
			keys: ['email'],
			required: false
		},
		getByHash: {
			keys: ['hash'],
			required: false
		},
		getByFacebookId: {
			keys: ['facebook.id'],
			required: false
		}
             }
    }

What do you expect to happen?

These indexes should also create a N1QL index.
There should be a way to define the N1QL indexes using a similar instruction by 1 of 2 options:

  1. Get rid of refDocs and, by default, indexes get created via refDoc and N1QL index
  2. Create a n1qlIdx property and allow definition of index creation there

What is actually happening?

Just the refDoc gets created.

Couchbase SDK version: 2.2.2
Couchbase Server version: 4.5 CE
CouchbaseODM version/branch: 1.0.1

@fogine fogine added the feature label Apr 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants