This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE module PUBLIC | |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | |
"http://checkstyle.sourceforge.net/dtds/configuration_1_3.dtd"> | |
<!-- | |
基于google java style修改:https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/google_checks.xml. | |
--> | |
<module name="Checker"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE index_option_demo_index | |
PUT /index_option_demo_index | |
PUT /index_option_demo_index/_mapping/index_option_type | |
{ | |
"index_option_type": { | |
"_all": { | |
"enabled": false | |
}, | |
"properties": { | |
"analyzedDesc": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE relation_parentchild_index | |
PUT /relation_parentchild_index | |
#child must create before parent | |
PUT /relation_parentchild_index/_mapping/relation_child_type | |
{ | |
"relation_child_type": { | |
"_parent": { | |
"type": "relation_parent_type" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE relation_nested_index | |
PUT /relation_nested_index | |
PUT /relation_nested_index/_mapping/relation_nested_type | |
{ | |
"relation_nested_type": { | |
"properties": { | |
"members": { | |
"type":"nested", | |
"properties": { | |
"firstName": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELETE relation_object_index | |
PUT /relation_object_index/relation_object_type/1 | |
{ | |
"projectName": "train", | |
"members": [ | |
{ | |
"firstName":"san", | |
"lastName":"zhang" | |
},{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'yanglikun' | |
import elasticsearch | |
import elasticsearch.helpers | |
esSource=elasticsearch.Elasticsearch([{"host":"192.168.147.90","port":20000}]) | |
esDestination=elasticsearch.Elasticsearch([{"host":"192.168.147.90","port":20000}]) | |
sourceIndex="mock_project_index" | |
sourceType="mock_project_type" | |
mapping=''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__author__ = 'yanglikun' | |
import elasticsearch | |
import elasticsearch.helpers | |
esSource=elasticsearch.Elasticsearch([{"host":"192.168.147.90","port":20000}]) | |
esDestination=elasticsearch.Elasticsearch([{"host":"192.168.147.90","port":20000}]) | |
sourceIndex="mock_project_index" | |
sourceType="mock_project_type" | |
mapping=''' |