Elastic Search Queries for searching examples

Welcome to Toppersarena.com Forums Programming Blogs Elastic Search Queries for searching examples

This topic contains 0 replies, has 0 voices, and was last updated by Admin admin 1 year, 4 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3027
    Admin
    admin
    Keymaster

    POST dhruv/_search
    {
    “size”: 50,
    “query”: {
    “nested”: {
    “path”: “templateCols”,
    “query”: {
    “nested”: {
    “path”: “templateCols.Application Owner”,
    “query”: {
    “match”: {
    “templateCols.Application Owner.value”: “Balthasar Bryner”
    }
    }
    }
    }
    }
    }
    }

    POST demo/_search

    {

    “size”: 50,

    “query”: {

    “nested”: {

    “path”: “parameters”,

    “query”: {

    “match”: {

    “parameters.displayName”: “Application Architecture “

    }

    }

    }

    }

    }

    POST demo/_search

    {

    “size”: 0,

    “query”: {

    “match”: {

    “assetClass”: “Application”

    }

    },

    “aggs”: {

    “parameters”: {

    “nested”: {

    “path”: “parameters”

    },

    “aggs”: {

    “popular_parameters”: {

    “terms”: {

    “field”: “parameters.displayName”,

    “size”: 50

    },

    “aggs”: {

    “avg_val”: {

    “nested”: {

    “path”: “parameters.currentValue”

    },

    “aggs”: {

    “myavg”: {

    “avg”: {

    “field”: “parameters.currentValue.value”

    }

    }

    }

    }

    }

    }

    }

    }

    }

    }

    GET demo/_search

    {

    “size”: 100,

    “query”: {

    “match”: {

    “workspaceId”: [9,10]

    }

    }

    }

    POST 123/_search

    {

    “size”: 100,

    “query”: {

    “match”: {

    “assetClass”: “Application”

    },

    “nested”: {

    “path”: “parameters”,

    “query”: {

    “match”: {

    “parameters.id”: 96

    }

    }

    }

    }

    }

    POST demo/_search

    {

    “size”: 50,

    “query”: {

    “nested”: {

    “path”: “questions”,

    “query”: {

    “nested”: {

    “path”: “questions.values”,

    “query”: {

    “match”: {

    “questions.values.questionnaireParameterId”: 66

    }

    }

    }

    }

    }

    }

    }

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.