Multiple Versions of the same Entity in Bucket

Hello,

Working with couchbase Server community-6.6.0 on Java Spring Boot (Java JDK version 1.8). Pom looks like:

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-couchbase</artifactId>
		</dependency>

This is my Repo for Person

@Repository
**public** **interface** UserRepository **extends** PagingAndSortingRepository<Person, Long> {
@ScanConsistency(query = QueryScanConsistency. ***REQUEST_PLUS*** )
  List<Person> findByUsername(String username);
}

When I update a field of some Entity (e.g., Person) then I can see the revisions of that Document.

When I call:

List<Person> person = userRepository.findByUsername(username);

I get a list of all the Person objects, all the revisions for that Document. In the bucket I can see the same object different version several times. I would like to receive only the latest most updated copy of the Person entity.

  1. How do I ensure that I get only the latest (most updated/recent) version of the Entity?
  2. Do I need to access the version field from the metadata? If yes, how can I access it?
  3. Can I disable revisions overall?

Please advise. Thank you so much!