INDEX_ROOT="lawsoc" #INDEX_DATE=$(date +%Y-%m-%d) INDEX_DATE="2015-10-06" INDEX_NAME="${INDEX_ROOT}_${INDEX_DATE}" echo "${INDEX_NAME}" #curl -XGET "http://localhost:9200/${INDEX_NAME}/_search" -d {"filter": {"term": {"office_detail": {"web": http://www.kevills.co.uk/}}}} curl -XGET "http://localhost:9200/${INDEX_NAME}/office_detail/_analyze?web" printf "\n" curl -XGET "http://localhost:9200/${INDEX_NAME}/_analyze?office_detail" printf "\n" curl -XGET "http://localhost:9200/${INDEX_NAME}/office_detail/_search" -d ' { "filter": { "term": { "web": "http://www.kevills.co.uk/" } } } ' printf "\n" curl -XGET "http://localhost:9200/${INDEX_NAME}/office_detail/_search" -d ' { "query" : { "filtered" : { "filter" : { "term" : { "web" : "http://www.pictons.com" } } } } } ' printf "\n"