Text search with Spring Data Redis - spring

I am trying to find documentation around creating and searching a text index on redis using Spring Data. I see #Indexed but dont find #TextIndexed like with Spring data MongoDB.
https://github.com/RedisLabs/JRediSearch

There's no Redis module support in Spring Data Redis and we don't plan to add support for Redis modules.

Related

How to set multiple data sources in Spring Data R2DBC

I am using spring data r2dbc in my new project and need to connect multiple data sources like A data source and B data source.
Is there a way to connect multiple data sources using r2dbc?
Could I get an example or a document if there is a way?
My stacks are below:
Spring Boot 2.3.0.M4
Spring WebFlux
Spring Data R2DBC
If you want to use multiple datasources in a single application, check my multi r2dbc connection factories example.
If you need a multi-tenant like feature check this multi-tenancy-r2dbc example.
I solved this issue using AbstractRoutingConnectionFactory you can check Add support for AbstractRoutingConnectionFactory

Spring Boot Elasticsearch and #JsonProperty

After migrating an app from Spring Boot 2.06 to 2.1.9, all properties marked with #JsonProperty stopped being indexed. Since they are not being indexed using properties's names it looks like Spring Data ES is using annotations to create the data sent to ES but the schema created is not.
I've read somewhere #JsonProperty are not supported after Spring Data ES 6.2 (or something) but, if that's the case, how should I do now to index these fields using a different name?
I also noticed newer versions enable #Field to set the name but it's not the case in SB 2.1.9 and, besides that, I also have some get methods marked with #JsonProperty.
Is it really expected to stop working? If so, what's the approach now? If not, What should I check to fix it?

Spring Data Elasticsearch - Field Projections?

As I saw Projections in Spring Data JPA documentation here
but this doesn't seems to exist in Spring Data Elasticsearch.
Is there any best practices for source filtering or projections in Spring Data Elasticsearch?
I already tried creating my custom Repository and put sourceFilter with QueryBuilder. It works but I don't really want to create custom repository.

Spring boot , Elasticsearch

Searched over the net but unable to find the satisfying approach.
I am new to spring boot and aware of starter dependancies,
I want to develop a springboot app using elastic search as a storage system.
Wherever i searched i found that somewhere my service class will have to implement some interface from springframework for ES crud operations.
Is there any other way without implementing or extending the components.
I myself want to create transport client and want to query ES by my code or methods not by overidden ones.
Please if you ahve ever seen any projects you can redirect me to that link .
Thanks.
Assuming I understand you correctly, you can use the Elasticsearch REST client: https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html
You supply the JSON entities for the queries and parse the responses yourself. Its pretty basic in what it does, so you're not dependent on a lot of third party stuff to perform operations.

Neo4j unmanaged extension with Spring Data

I was advised to develop Neo4j extension because of poor performance due to the many calls to the Neo4j REST interface introduced by Spring Data Neo4j. For the good start I was able to run simply Neo4j extension from Neo4j documentation:
http://docs.neo4j.org/chunked/stable/server-unmanaged-extensions.html
Now I have to move some logic from my web service to Neo4j extension to make communication between them as small as possible. However, my web service is based on Spring Data Neo4j as well as Spring Data JPA, so to reuse my actual code I would like to use also Spring Data in my extension. I have found this documentation:
http://docs.spring.io/spring-data/data-neo4j/docs/current/reference/html/reference_neo4j-server.html
but it is not clear for me and there is no working example. Is there any sample code with such integration?
There is a great example on using SDN in an unmanage extension, see http://inserpio.wordpress.com/2014/04/30/extending-the-neo4j-server-with-spring-data-neo4j/.

Resources