Skip to content

Commit da5987a

Browse files
committed
Removed boost and fixed tests
1 parent 42f05f2 commit da5987a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docker-compose.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ services:
33
image: docker.elastic.co/elasticsearch/elasticsearch:8.18.1
44
environment:
55
discovery.type: single-node
6-
xpack.security.enabled: 'false'
6+
xpack.security.enabled: "false"
7+
action.destructive_requires_name: false
78
ES_JAVA_OPTS: -Xms512m -Xmx512m
89
ports:
910
- 9200:9200
@@ -20,6 +21,8 @@ services:
2021
elasticsearch:
2122
condition: service_healthy
2223
image: docker.elastic.co/kibana/kibana:8.18.1
24+
environment:
25+
xpack.security.enabled: "false"
2326
ports:
2427
- 5601:5601
2528
networks:

tests/Foundatio.Repositories.Elasticsearch.Tests/Repositories/Configuration/Indexes/EmployeeIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public override TypeMappingDescriptor<Employee> ConfigureIndexMapping(TypeMappin
6262
.FieldAlias(a => a.Name("followers").Path("data.@user_meta.twitter_followers"))
6363
.Object<Dictionary<string, object>>(f => f.Name(e => e.Data).Properties(p1 => p1
6464
.Object<object>(f2 => f2.Name("@user_meta").Properties(p2 => p2
65-
.Keyword(f3 => f3.Name("twitter_id").Boost(1.1).CopyTo(c => c.Field("_all")))
65+
.Keyword(f3 => f3.Name("twitter_id").CopyTo(c => c.Field("_all")))
6666
.Number(f3 => f3.Name("twitter_followers"))
6767
))))
6868
.Nested<PeerReview>(f => f.Name(e => e.PeerReviews).Properties(p1 => p1

tests/Foundatio.Repositories.Elasticsearch.Tests/Repositories/Configuration/Indexes/EmployeeWithCustomFieldsIndex.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public override TypeMappingDescriptor<EmployeeWithCustomFields> ConfigureIndexMa
6060
.FieldAlias(a => a.Name("followers").Path("data.@user_meta.twitter_followers"))
6161
.Object<Dictionary<string, object>>(f => f.Name(e => e.Data).Properties(p1 => p1
6262
.Object<object>(f2 => f2.Name("@user_meta").Properties(p2 => p2
63-
.Keyword(f3 => f3.Name("twitter_id").Boost(1.1).CopyTo(c => c.Field("_all")))
63+
.Keyword(f3 => f3.Name("twitter_id").CopyTo(c => c.Field("_all")))
6464
.Number(f3 => f3.Name("twitter_followers"))
6565
))))
6666
.Nested<PeerReview>(f => f.Name(e => e.PeerReviews).Properties(p1 => p1

0 commit comments

Comments
 (0)