Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# ElasticSearch-嵌套不区分大小写_C#_Json_Database_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Nest - Fatal编程技术网 elasticsearch,nest,C#,Json,Database,elasticsearch,Nest" /> elasticsearch,nest,C#,Json,Database,elasticsearch,Nest" />

C# ElasticSearch-嵌套不区分大小写

C# ElasticSearch-嵌套不区分大小写,c#,json,database,elasticsearch,nest,C#,Json,Database,elasticsearch,Nest,我试图在索引中搜索“Example1”,但实际上,只有在索引“Example1”中搜索确切的值,我才能得到结果。我会让这个搜索变得不敏感。这是我的代码: 创建索引: var createIndexResponse = client.Indices.Create(defaultIndex, c => c .Map<ObjectInIndex>(mp => mp .Auto

我试图在索引中搜索“Example1”,但实际上,只有在索引“Example1”中搜索确切的值,我才能得到结果。我会让这个搜索变得不敏感。这是我的代码:

创建索引:

var createIndexResponse = client.Indices.Create(defaultIndex, c => c
                          .Map<ObjectInIndex>(mp => mp
                          .AutoMap())

你能显示索引映射吗?
var pool = new SingleNodeConnectionPool(new Uri(_elasticsearchSettings.Uri));

var settings = new ConnectionSettings(pool)
.DefaultIndex(defaultIndex)
.DisableDirectStreaming()
.PrettyJson();

var client = new ElasticClient(settings);

var searchResponse = client.SearchAsync<ObjectInIndex>(s => s
                    .Explain()
                    .Source(sf => sf)
                    .Query(qn => qn
                    .MultiMatch(c => c
                    .Query(queryValue)))).Result;
    "hits": [
        {
            "_index": "sql",
            "_type": "_doc",
            "_id": "PkSsC4QBsIJTwWG9TUY1",
            "_score": 17.879944,
            "_source": {
                "title": "EXAMPLE1"
            }
         }