Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/snowdrop/spring-data-snowdrop

Spring Data implementation for Hibernate Search, JPA (full-text), Infinispan, GAE, ...
https://github.com/snowdrop/spring-data-snowdrop

full-text-search hibernate infinispan jpa search spring-data

Last synced: 5 days ago
JSON representation

Spring Data implementation for Hibernate Search, JPA (full-text), Infinispan, GAE, ...

Awesome Lists containing this project

README

        

**Spring Data + Snowdrop**

We're following features from SpringData Common implementation
* https://docs.spring.io/spring-data/data-commons/docs/current/reference/html/

Currently supported backends
* JPA (Hibernate Full-Text search)
* Infinispan Embedded
* Infinispan Remote
* Google App Engine
* Google Cloud Datastore

e.g.

List findByLocationWithin(double latitude, double longitude, double distance);
List findByNameNot(String notName, Sort sort);
List findByNumberBetween(int min, int max, Sort sort);

Usage:

@Test
public void testOps() {
assertSize(repository.findByLocationWithin(24.0, 31.5, 55), 1);
assertIds(repository.findByNameNot("doug", Sort.by(Sort.Direction.DESC, "hero")), 1, 2, 5, 3, 6);
assertIds(repository.findByNumberBetween(-5, 11, Sort.by("hero")), 4, 3);
}