Skip to content

Commit

Permalink
add es config
Browse files Browse the repository at this point in the history
  • Loading branch information
supercoderhawk committed Dec 29, 2019
1 parent 060f154 commit f9f34cb
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
22 changes: 22 additions & 0 deletions data/fields.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"properties": {
"paper_id": {
"type": "keyword"
},
"title": {
"type": "text",
"analyzer": "english_analyzer"
},
"abstract": {
"type": "text",
"analyzer": "english_analyzer"
},
"journal": {
"type": "keyword"
},
"keywords": {
"type": "text",
"analyzer": "english_analyzer"
}
}
}
42 changes: 42 additions & 0 deletions data/setting.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"settings": {
"analysis": {
"filter": {
"english_stop": {
"type": "stop",
"stopwords": "_english_"
},
"english_keywords": {
"type": "keyword_marker",
"keywords": [
"example"
]
},
"english_stemmer": {
"type": "stemmer",
"language": "english"
},
"english_possessive_stemmer": {
"type": "stemmer",
"language": "possessive_english"
}
},
"analyzer": {
"english_analyzer": {
"tokenizer": "standard",
"filter": [
"english_possessive_stemmer",
"lowercase",
"english_stop",
"english_keywords",
"english_stemmer"
]
}
}
},
"index": {
"number_of_shards": 10,
"number_of_replicas": 2
}
}
}

0 comments on commit f9f34cb

Please sign in to comment.