diff --git a/Elasticsearch/Search.Elasticsearch/Indexing/IndexManagementItem.cs b/Elasticsearch/Search.Elasticsearch/Indexing/IndexManagementItem.cs index 02bbf9e..c29fe6d 100644 --- a/Elasticsearch/Search.Elasticsearch/Indexing/IndexManagementItem.cs +++ b/Elasticsearch/Search.Elasticsearch/Indexing/IndexManagementItem.cs @@ -21,11 +21,7 @@ public override async Task CreateIndex(IElasticClient aClie .Properties(ps => ps .Text(p => p .Name("Market") - .Fields(fs => fs - .Text(f => f - .Name("phrase") - .Analyzer("english") - ) + .Fields(fs => fs .Keyword(f => f .Name("keyword") ) diff --git a/Elasticsearch/Search.Elasticsearch/Indexing/IndexPropertyItem.cs b/Elasticsearch/Search.Elasticsearch/Indexing/IndexPropertyItem.cs index 09b0a49..a521a7f 100644 --- a/Elasticsearch/Search.Elasticsearch/Indexing/IndexPropertyItem.cs +++ b/Elasticsearch/Search.Elasticsearch/Indexing/IndexPropertyItem.cs @@ -21,11 +21,7 @@ public override async Task CreateIndex(IElasticClient aClie .Properties( ps => ps .Text(p => p .Name("Market") - .Fields(fs => fs - .Text(f => f - .Name("phrase") - .Analyzer("english") - ) + .Fields(fs => fs .Keyword(f => f .Name("keyword") ) @@ -35,11 +31,7 @@ public override async Task CreateIndex(IElasticClient aClie ) .Text( p => p .Name("City") - .Fields( fs => fs - .Text(f => f - .Name("phrase") - .Analyzer("english") - ) + .Fields( fs => fs .Keyword(f => f .Name("keyword") )