#Importing Data from MS SQL Server to Elasticsearch Adapted from the instructions for the jdbc importer here.
-
Download Elasticsearch
-
Install Elasticsearch
Follow instructions on https://www.elastic.co/products/elasticsearch
package com.example; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.util.HashMap; | |
import java.util.Map; | |
@RestController | |
@RequestMapping("/api") |
package com.example; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RestController; | |
import java.util.HashMap; | |
import java.util.Map; | |
@RestController | |
@RequestMapping("/api") |
#Importing Data from MS SQL Server to Elasticsearch Adapted from the instructions for the jdbc importer here.
Download Elasticsearch
Install Elasticsearch
Follow instructions on https://www.elastic.co/products/elasticsearch
import codemasters.lambda.domain.Car; | |
import codemasters.lambda.domain.Person; | |
import codemasters.lambda.domain.Sale; | |
import java.util.*; | |
import java.util.Map.Entry; | |
import java.util.function.ToIntFunction; | |
import java.util.function.ToDoubleFunction; | |
import java.util.function.Function; | |
import java.util.function.Supplier; |
curl -XPUT 'http://localhost:9200/us/user/1?pretty=1' -d ' | |
{ | |
"email" : "john@smith.com", | |
"name" : "John Smith", | |
"username" : "@john" | |
} | |
' | |
curl -XPUT 'http://localhost:9200/gb/user/2?pretty=1' -d ' | |
{ |
# Transactions with parent-child relationships. | |
# Delete the index, just in case it still exists. | |
DELETE /myindex | |
# Create the index with a mapping for the actual documents and a mapping for the parent transaction type. | |
PUT /myindex | |
{ | |
"mappings": { | |
"transaction": { |