User:Haeney
Appearance
Linux
[edit]Verify Open Port
[edit]netstat -tnlp
nmap localhost
ElasticSearch
[edit]Start&Stop
[edit]bin/elasticsearch
bin/elasticsearch -d
ps -ef | grep elasticsearch
kill [pid]
Index
[edit]create/show/delete
[edit]curl -XPUT 'localhost:9200/kimhk?pretty&pretty'
curl -XGET 'localhost:9200/_cat/indices?v&pretty'
curl -XDELETE 'localhost:9200/kimhk?pretty&pretty'
Search
[edit]default
[edit]curl -XGET 'localhost:9200/name/_search?q=*&pretty'
query
[edit]curl -XPOST 'localhost:9200/name/_search?pretty' -d' {
"query": { "match_all": {} }, "_source": ["fild_name"]
}' [1]