[Mongo] How to use $in on string array with elements that match a regex?
Hi, I'm trying to see if an array of strings contains any elements that match a regex using the Criteria object. Criteria.regex(String) works fine for single-valued string fields, and...
View ArticleMONGODB: index on nested document
I have a need to have one document which contains a nested document. The nested document contains a field for which I would like an index. Here is an example: First Document: Code: @Entity...
View ArticleReferring to more than one template in JavaConfig when using repositories
I'm trying to configure one app to use more than 2 data sources. I have seen examples of this using XML config, but cannot find any information for using with JavaConfig. I have tried referencing the...
View ArticleWhy does objects that are returned by CRUDRepository need to have empty...
Hi, As it seem to me, whenever i load objects from my database with CRUDRepository.findAll(), i get an exception if my object's class did not supply an empty constructor (I'm using spring data neo4j)....
View ArticleSpring Data Solr Criteria Exception
In solr admin interface I have this query Code: text: nose AND (text:heart OR text:core) which runs fine In the java code I have Code: import static org.springframework.data.solr.core.query.Criteria.*;...
View Article[Neo4j] - Combining Fulltext and Simple Indexes in the same Cypher query
I wonder how can i build a Cypher query that will combine Fulltext and Simple indexes using spring data neo4j. Consider the following node entity: Code: @NodeEntity public class SomeObject { public...
View ArticleSpring-data-solr and multicores solr
I have a project, a sort of ETL engine using spring-data-solr, collecting data from many sources and putting them in a solr instance. Initially there was just one core and I had no problem integrating...
View ArticleBug in Query.class
Hi, that could be a Bug: org.springframework.data.mongodb.core.query.Query has this equals() method: Code: @Override public boolean equals(Object obj) { if (this == obj)...
View Articleneo4j: intercepting entity saves in order to add data to an index
I have a domain @NodeEntity entity that I wish to push to the neo4j database. It has a byte[] and mime string field to indicate the content of the bytes. The node is not designed to handle large...
View ArticleCan not query the database when @TypeAlias is in use
Hi, I'm using spring-mongo-data 1.2.1, spring 3.2.2,spring-data-commons 1.5.1, mongo-java-driver 2.10.1. I have a wierd use case. I have two entities AImpl: Code: @Document(collection = "A2")...
View Articlebeginner trying to run the cineasts demo
hi.. what are the steps to get the cineasts demo project into eclipse and then working? i am sorry, but I don't understand what i am supposed to be doing. do i download the zip from github, find the...
View Article[Neo4J] Cypher, EntityPath and NullPointerException
I created a GraphRepository that looks like this: Code: public interface TermRepository extends GraphRepository<Term> { @Query("START n=node:Term(id={0}),m =node:Term(id={1}) match p =...
View Article@DbRef reference path can not be acess when Spring data mongo and QueryDSL.
Hi Springer, I am learning Spring Mongo, and I am using Spring 3.2.2, Spring Data Mongo 1.2.1. https://github.com/hantsy/spring-san...ets/data-mongo The source codes under...
View ArticleSpring data mongo crossstore can not work when I use the latest Spring and...
Hi Springer, I am trying to write a simple example to experience the crossstore between Mongo and JPA, but it does not work. Spring 3.2.2 Spring Data Mongo 1.2.1 Spring Data JPA 1.3.2 Source codes are...
View ArticleHow can I correctly map my float fields in Spring Data Neo4j
I've got this entity class: Code: @NodeEntity public class Location { @GraphId private long id; private float latitude; private float longitude; } When I try to load an entity from the...
View ArticleSpring-Data does not find IndexFields for Indices created via MongoDB shell
Hi, we are using Spring-Data-Mongo to access our MongoDB from a Java application. In general everything works fine but I encountered one odd behavior. When initializing our Repositories in the Java...
View Articlea problem on Mongo's geoNear and Metrics
I have a method like this: Code: public GeoResults<CommercialTenant> getNearCt(Float lat, Float lng, Integer num, Double distance) { Point location = new...
View ArticleNeo4jTemplate query method does not seem to return the same result as native api
Using Spring Data I've written the code below using the Neo4jTemplate: Code: Result<Map<String, Object>> result = neo4jTemplate.query( "START n = node:`n.name`(name = \"name\") MATCH...
View ArticleHelp with $and and .elemMatch() in spring data mongoDB
Here is the MongoDB query I am trying to reproduce: Code: db.myCollection.find({ $and: [ {'key.attributes': {$elemMatch: {'name': 'k1', 'value': 'kv1'}}}, {'key.attributes':...
View Articlespring-data-neo4j-rest RuntimeException when adding to index
with <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-neo4j-rest</artifactId> <version>2.2.1.RELEASE</version>...
View Article