The blog covers various articles and posts on Cloud, Big Data Analytics, Data Science, Machine Learning, DevOps, Full Stack Development, Java and Middleware Technologies
Friday, December 23, 2022
Friday, August 26, 2022
Saturday, July 30, 2022
Friday, July 29, 2022
Thursday, July 28, 2022
Wednesday, July 27, 2022
Tuesday, July 26, 2022
Monday, July 25, 2022
Sunday, July 24, 2022
Saturday, July 23, 2022
Friday, July 22, 2022
Thursday, July 21, 2022
Wednesday, July 20, 2022
Monday, July 18, 2022
Sunday, July 17, 2022
Saturday, July 16, 2022
Friday, July 15, 2022
Thursday, July 14, 2022
Wednesday, July 13, 2022
Tuesday, July 12, 2022
Monday, July 11, 2022
Saturday, July 9, 2022
Saturday, July 2, 2022
Elasticsearch Queries - Match, MatchPhrase, Term and Fuzzy Query
via IFTTT
curl -XDELETE "http://localhost:9200/shakespeare"
rm shakespeare.json
curl -O https://download.elastic.co/demos/kibana/gettingstarted/8.x/shakespeare.json
curl -XPUT "http://localhost:9200/shakespeare" -H 'Content-Type: application/json' -d'
{
"mappings": {
"properties": {
"speaker": {"type": "keyword"},
"play_name": {"type": "keyword"},
"line_id": {"type": "integer"},
"speech_number": {"type": "integer"}
}
}
}'
curl -XGET "http://localhost:9200/shakespeare?pretty"
curl -H 'Content-Type: application/x-ndjson' -XPOST 'http://localhost:9200/shakespeare/_bulk?pretty' --data-binary @shakespeare.json
GET _cat/indices?v
GET /shakespeare
GET /shakespeare/_count
GET /shakespeare/_search?from=200&size=10
GET /shakespeare/_doc/205
GET /shakespeare/_mapping
GET /shakespeare/_search
{
"query": {
"match": {
"text_entry": "Ill be damned for never a kings son in"
}
}
}
GET /shakespeare/_search
{
"query": {
"match_phrase": {
"text_entry": "Ill be damned for never a kings son in"
}
}
}
GET /shakespeare/_search
{
"query": {
"term": {
"text_entry": "king"
}
}
}
GET /shakespeare/_search
{
"query": {
"term": {
"line_id": 206
}
}
}
GET /shakespeare/_search
{
"query": {
"term": {
"line_id": 2067
}
}
}
GET /shakespeare/_search
{
"query": {
"fuzzy": {
"play_name": {
"value": "Henri I",
"fuzziness": "AUTO"
}
}
}
}
GET /shakespeare/_search
{
"query": {
"fuzzy": {
"play_name": {
"value": "Henri I",
"fuzziness": "9"
}
}
}
}
Subscribe to:
Posts (Atom)