Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PUT stackoverflow
- {
- "settings": {
- "analysis": {
- "filter": {
- "english_stop": {
- "type": "stop",
- "stopwords": "_english_"
- },
- "dutch_stop": {
- "type": "stop",
- "stopwords": "_dutch_"
- }
- },
- "analyzer": {
- "eng_stop": {
- "type": "stop",
- "stopwords": "_english_"
- },
- "dutch_stop": {
- "type": "stop",
- "stopwords": "_dutch_"
- },
- "all_lang_stop": {
- "tokenizer": "lowercase",
- "filter": [
- "english_stop",
- "dutch_stop"
- ]
- }
- }
- }
- },
- "mappings": {
- "record": {
- "properties": {
- "field": {
- "type": "keyword",
- "fields": {
- "english": {"type": "text", "analyzer": "eng_stop" },
- "dutch": {"type": "text", "analyzer": "dutch_stop" },
- "word_cloud": {"type": "text", "analyzer": "all_lang_stop"}
- }
- }
- }
- }
- }
- }
- "mappings": {
- "record": {
- "properties": {
- "english": {"type": "text", "analyzer": "eng_stop", copy_to: "word_cloud"},
- "dutch": {"type": "text", "analyzer": "dutch_stop", copy_to: "word_cloud"},
- "word_cloud": {"type": "text", "analyzer": "all_lang_stop"}
- }
- }
- }
Add Comment
Please, Sign In to add comment