Help us understand the problem. What is going on with this article?

ElasticSearch 検索方法まとめ

More than 5 years have passed since last update.


curl -XPOST "http://localhost:9200/_search" -d'
    "query": {
        "query_string": {
            "query": "検索テキスト!"

Query String Query


    "indices" : {
        "indices" : ["index1", "index2"],
        "query" : {
            "term" : { "tag" : "wow" }
        "no_match_query" : {
            "term" : { "tag" : "kow" }

Indices Query


        size: # number of results to return (defaults to 10)
        from: # offset into results (defaults to 0)
        fields: # list of document fields that should be returned -
        sort: # define sort order - see

        query: {
            # "query" object following the Query DSL:
            # details below

        facets: {
            # facets specifications
            # Facets provide summary information about a particular field or fields in the data

        # special case for situations where you want to apply filter/query to results but *not* to facets
        filter: {
            # filter objects
            # a filter is a simple "filter" (query) on a specific field.
            # Simple means e.g. checking against a specific value or range of values


ElasticSearch, query, search, text, string, schema, filter
クエリー, サーチ, 検索, テキスト,

ブロックチェーン専門企業、コンセンサス・ベイス代表、志茂 博の技術メモ。 興味ある方は、日本ブロックチェーンユーザ会へ。
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away