Skip to content
Snippets Groups Projects
Commit a875f00f authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

enable security rest filter

parent 1fd631c6
No related branches found
No related tags found
No related merge requests found
...@@ -19,6 +19,7 @@ cluster.name: duniter4j-elasticsearch-TEST ...@@ -19,6 +19,7 @@ cluster.name: duniter4j-elasticsearch-TEST
# #
# ------------------------------------ Node ------------------------------------ # ------------------------------------ Node ------------------------------------
# #
#
# Use a descriptive name for the node: # Use a descriptive name for the node:
# #
# node.name: node-1 # node.name: node-1
...@@ -139,8 +140,8 @@ duniter.keyring.password: def ...@@ -139,8 +140,8 @@ duniter.keyring.password: def
# Enable security, to disable HTTP access to the default ES admin API # Enable security, to disable HTTP access to the default ES admin API
# #
#duniter.security.enable: true duniter.security.enable: true
duniter.security.enable: false #duniter.security.enable: false
# #
# Security token prefix (default: 'duniter-') # Security token prefix (default: 'duniter-')
# #
......
...@@ -87,3 +87,21 @@ curl -XPOST "http://127.0.0.1:9200/user/event/_search?pretty" -d' ...@@ -87,3 +87,21 @@ curl -XPOST "http://127.0.0.1:9200/user/event/_search?pretty" -d'
}' }'
echo "--- GET market pictures content_type--- "
curl -XPOST "http://127.0.0.1:9200/market/record/_search?pretty" -d'
{
query: {
constant_score: {
filter: [
{term: { issuer: "5ocqzyDMMWf1V8bsoNhWb1iNwax1e9M7VTUN6navs8of"}}
]
}
},
sort : [
{ "time" : {"order" : "desc"}}
],
from: 0,
size: 3,
_source: ["avatar._content_type"]
}'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment