Created
May 17, 2017 07:12
-
-
Save razorcd/d1bf79d11bfb660d95d40855ee51deb8 to your computer and use it in GitHub Desktop.
ES Java - Spring settings
This file contains hidden or 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
// more: | |
// https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/annotations/Setting.java | |
@Setting(settingPath = "es-default-settings.json") | |
@Mapping(mappingPath = "es-default-mappings.json") | |
public class DefaultEntity { | |
} |
This file contains hidden or 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
{ | |
"type": "string", | |
"fields": { | |
"content": { | |
"type": "string", | |
"term_vector":"with_positions_offsets", | |
"store": true | |
} | |
} | |
} |
This file contains hidden or 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
{ | |
"index": { | |
"number_of_shards": "1", | |
"number_of_replicas": "0", | |
"analysis": { | |
"analyzer": { | |
"default" : { | |
"type" : "keyword" | |
}, | |
//or: | |
"emailAnalyzer": { | |
"type": "custom", | |
"tokenizer": "uax_url_email" | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment