Quantcast
Viewing all articles
Browse latest Browse all 1318

How use IN equivalent operator in ElasticSearch?

How use IN equivalent operator in ElasticSearch?

SELECT*FROMTABLEWHERE id IN(1,2,3);

The equivalent Elasticsearch 1.x filter would be:

{
  "query" : {
    "filtered" : {
      "filter" : {
        "terms" : {
          "id" : [1, 2, 3]
        }
      }
    }
  }
}

The equivalent Elasticsearch 2.x+ filter would be:

{
  "query" : {
    "bool" : {
      "filter" : {
        "terms" : {
          "id" : [1, 2, 3]
        }
      }
    }
  }
}

Viewing all articles
Browse latest Browse all 1318

Trending Articles


Vimeo 10.7.0 by Vimeo.com, Inc.


Pokemon para colorear


Sapos para colorear


Confidence Quotes – Confident Quotes


Tagalog Quotes About Crush – Tagalog Love Quotes


Long Distance Relationship Tagalog Love Quotes


Ligaw Quotes – Courting Quotes – Sweet Tagalog Quotes


INUMAN QUOTES


Re:Mutton Pies (lleechef)


Vimeo 10.7.1 by Vimeo.com, Inc.


tagalog love Quotes – Tiwala Quotes


Girasoles para colorear


mayabang Quotes, Torpe Quotes, tanga Quotes


Tagalog Love Quotes – Nagmamahal


Break up Quotes Tagalog Love Quote – Broken Hearted Quotes Tagalog


Two timer Sad tagalog Love quotes


5 Tagalog Relationship Rules


Best Love Life Quotes Collection


EASY COME, EASY GO


FORECLOSURE OF REAL ESTATE MORTGAGE