How to use date_detection and numeric_detection in spring data elasticsearch - spring-data-elasticsearch

I am using spring data elasticsearch. I have a business requirement to use date_detection:false and numeric_detection:false to disable auto date and numeric detection by elasticsearch.
Can some one please help or instruct how to use date_detection:false and numeric_detection:false in spring data elasticsearch?

Related

How to disable any write operations in Spring Data Elasticsearch?

I have microservice which just reads data from elasticsearch cluster. I want to disable all PUT operations related to mappings at boot time for the index. How can I achieve this?
No way to do this in Spring Data Elasticsearch. But if it's your microservice that accesses the cluster, why do any changing calls at all?
You can use the user and role management from Elasticsearch (xpack) to create a Elasticsearch user that can only read from indices, and then use the basic authentication (available as of Spring Data Elasticsearch 3.2) in Spring Data Elastcsearch to authenticate against Elasticsearch.

How do I use Neo4j in a reactive Spring webflux application without causing any blocking?

I'm starting a new Spring boot project and I've chosen a neo4j graph database as there is a lot of connected data.
I would like to use Reactive Streams in the project as there is a lot of push notifications from the server to the client. I'm looking at using Spring Webflux for this reason.
I'm weary of accidentally using blocking calls/api's that will negate the decision to use webflux.
I've searched for information on using neo4j with reactive streams. It doesn't look like there is a reactive driver at the moment, although there is an asynchronous mechanism using CompletableFuture.
Please could I have some guidance on how to fit these two peices, webflux & neo4j, together.
thanks

Spring data Neo4j with JSF Java application

I would like to use Spring Data Neo4j but I want use only this part of Spring. All my web application I want to build with JSF framework. I have problems to mix Spring Data Neo4j and JSF. Is it possible or is is worth to use spring data Neo4j instead of OGM Neo4j? Maybe is better to stay with simple OGM driver in my case?

Using rescore when building queries with Spring data elasticsearch?

Is it possible to make use of rescore when building a query with Spring data elastic? I'm using Spring boot 1.4.0.RC1
Spring Data Elasticsearch has a RescoreBuilder class that you can use to do this.

Using spring security plugin with alternative database schema

i want to use spring security and to map my model to a simplistic database schema.
According to this: http://docs.spring.io/spring-security/site/docs/3.0.x/reference/springsecurity-single.html#db_schema_users_authorities (section user schema), i can have a that match the one i have.
Note that this schema is the basic schema of tomcat with the database realm.
But i don't know how to tell spring to which schema i use and what are the tables to use wich what fields.
If you're using the Grails Spring Security plugin you're lookingin the wrong place - you don't configure it using standard Spring Security but within the plugin itself.
This is a common enough customization that it has its own chapter in the plugin docs - see https://grails-plugins.github.io/grails-spring-security-core/guide/userDetailsService.html

Resources