Skip to content

Commit

Permalink
remove phrase field
Browse files Browse the repository at this point in the history
  • Loading branch information
uleus authored and uleus committed Feb 5, 2021
1 parent 86befc9 commit 8eed950
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ public override async Task<CreateIndexResponse> 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")
)
Expand Down
12 changes: 2 additions & 10 deletions Elasticsearch/Search.Elasticsearch/Indexing/IndexPropertyItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ public override async Task<CreateIndexResponse> 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")
)
Expand All @@ -35,11 +31,7 @@ public override async Task<CreateIndexResponse> 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")
)
Expand Down

0 comments on commit 8eed950

Please sign in to comment.