-
Notifications
You must be signed in to change notification settings - Fork 0
/
miscInfo.txt
45 lines (39 loc) · 1.01 KB
/
miscInfo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
sudo docker run --name es01 --net elastic -p 9200:9200 -p 9300:9300 -it -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:8.1.3
Postmanfilter:
{
"settings": {
"number_of_shards": 2,
"number_of_replicas": 1,
"analysis": {
"analyzer": {
"doc_analyzer": {
"tokenizer": "whitespace",
"filter": [
"stop",
"stemmer"
]
}
}
}
},
"mappings": {
"properties": {
"content": {
"type": "text",
"analyzer": "doc_analyzer"
},
"title": {
"type": "text",
"analyzer": "doc_analyzer"
}
}
}
}
TODO:
SEARCH:
have node client set up filter (stemmer and stop words)
set up highlighting
AUTOCOMPLETE:
prefix match, if no match, return []
IMAGES:
add gifs