title: C# - ElasticSearch LowLevel Search API for Raw Json Query
body: <p>I am using ElasticSearch v6.4 with Nest(v.6.4.2) and ElasticSearch.Net(v.6.4.2) Libraries. I am trying to use the Search API with my Raw Json Query.</p>
  
  <p>Here is my template of JSON Query:</p>
  
  <pre><code>    var jsonQuery  = @"{
        "_source": {
          "exclude": [],
          "include": []
        },
        "query": {
          "bool": {
            "should": [
              [
                { 
                  "multi_match": {
                    "query": "*",
                    "analyzer": "standard",
                    "type": "most_fields",
                    "fields": []
                  }
                },
                {
                  "multi_match": {
                    "query": "*",
                    "analyzer": "standard",
                    "type": "most_fields",
                    "fuzziness": 1,
                    "prefix_length": 3,
                    "fields": []
                  }
                }
              ]
            ],
            "filter": {
              "bool": {
                "must": [
                  { "term": { "xx": "yy" } }
                ],
                "must_not": [],
                "should": [
                  {
                    "bool": {
                      "must": [
                        { "term": { "xx": "yy" } },
                        { "term": { "xx": "yy" } },
  
                      ]
                    }
                  },
                  {
                    "bool": {
                      "must": [
                        { "range": { "xx": { "gte": yy1, "lte": yy2 } } }
                      ]
                    }
                  }
                ]
              }
            }
          }
        },
        "from": 0,
        "size": 500,
        "min_score": 0.0,
        "sort": [],
        "aggs": {}
      }"
  </code></pre>
  
  <p>Firstly, when I am using this Query with .Raw() it is returing an error with Invalid Low Level Call.</p>
  
  <p>Secondly, when I use the following function to get the results:</p>
  
  <pre><code>var responseData = _connectionToEs.EsClient(_esInstanceUrl, _indexName).LowLevel.Search&lt;myClass&gt;(jsonQuery);
  </code></pre>
  
  <p>I am getting the following error:
  <code>The type 'myClass' cannot be used as type parameter 'TResponse' in the generic type or method IElasticLowLevelClient.Search&lt;TResponse&gt;(PostData, SearchRequestParameters). There is no implicit reference conversion from 'myClass' to 'Elasticsearch.Net.IElasticsearchResponse'</code>.</p>
  
  <p>I am stuck at this for quite some time and have not found any solution. 
  How can I use the raw JSON query to use with the ElasticSearch.Net functions weather it be Nest functions or Low-Level functions?
  Please help. Thanks in Advance!!!</p>