Closed
Description
deniswsrosa opened DATACOUCH-550 and commented
I have enabled autoindexing according to the docs:
@Configuration
public class Config extends AbstractCouchbaseConfiguration {
@Override
public String getConnectionString() {
return "couchbase://127.0.0.1";
}
@Override
public String getUserName() {
return "Administrator";
}
@Override
public String getPassword() {
return "password";
}
@Override
public String getBucketName() {
return "default";
}
/**
* OPTIONAL: In this example we are using annotations to
*/
@Override
protected boolean autoIndexCreation() {
return true;
}
}
And here is my entity:
@Document
@Data
@ToString
@CompositeQueryIndex(fields = {"id", "name", "position"})
public class User {
@Id
private String id;
@QueryIndexed
private String name;
@QueryIndexed
private String position;
private String description;
private double accountBalance;
}
I have tried many variations of the mapping above, and after the application starts no index is created on the target bucket.
Affects: 4.0 GA (Neumann)
Referenced from: pull request #295
1 votes, 5 watchers