Skip to content

Commit fe774f7

Browse files
authored
Update performance test with nested field (#1488)
Signed-off-by: Heemin Kim <[email protected]>
1 parent c6ac3db commit fe774f7

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

benchmarks/perf-tool/add-parent-doc-id-to-dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ def run(self, source_path, target_path) -> None:
116116
possible_colors = ['red', 'green', 'yellow', 'blue', None]
117117
possible_tastes = ['sweet', 'salty', 'sour', 'bitter', None]
118118
max_age = 100
119-
min_field_size = 1000
120-
max_field_size = 10001
119+
min_field_size = 10
120+
max_field_size = 10
121121

122122
# Copy train and test data
123123
for key in in_file.keys():

benchmarks/perf-tool/okpt/test/steps/steps.py

-3
Original file line numberDiff line numberDiff line change
@@ -759,9 +759,6 @@ def get_body(self, vec):
759759
}
760760
}
761761

762-
def get_exclude_fields(self):
763-
return ['nested_field.' + self.field_name]
764-
765762
class GetStatsStep(OpenSearchStep):
766763
"""See base class."""
767764

benchmarks/perf-tool/release-configs/faiss-hnsw/nested/simple/index.json

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
}
99
},
1010
"mappings": {
11+
"_source": {
12+
"excludes": ["nested_field"]
13+
},
1114
"properties": {
1215
"nested_field": {
1316
"type": "nested",

benchmarks/perf-tool/release-configs/lucene-hnsw/nested/simple/index.json

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
}
88
},
99
"mappings": {
10+
"_source": {
11+
"excludes": ["nested_field"]
12+
},
1013
"properties": {
1114
"nested_field": {
1215
"type": "nested",

benchmarks/perf-tool/release-configs/lucene-hnsw/nested/simple/simple-nested-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
index_name: target_index
1010
- name: create_index
1111
index_name: target_index
12-
index_spec: release-configs/faiss-hnsw/nested/simple/index.json
12+
index_spec: release-configs/lucene-hnsw/nested/simple/index.json
1313
- name: ingest_nested_field
1414
index_name: target_index
1515
field_name: target_field

benchmarks/perf-tool/release-configs/run_all_tests.sh

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ curl -X PUT "http://$ENDPOINT:$PORT/_cluster/settings?pretty" -H 'Content-Type:
6868

6969
TESTS="./release-configs/faiss-hnsw/filtering/relaxed-filter/relaxed-filter-test.yml
7070
./release-configs/faiss-hnsw/filtering/restrictive-filter/restrictive-filter-test.yml
71+
./release-configs/faiss-hnsw/nested/simple/simple-nested-test.yml
7172
./release-configs/faiss-hnsw/test.yml
7273
./release-configs/faiss-hnswpq/test.yml
7374
./release-configs/faiss-ivf/filtering/relaxed-filter/relaxed-filter-test.yml
@@ -76,6 +77,7 @@ TESTS="./release-configs/faiss-hnsw/filtering/relaxed-filter/relaxed-filter-test
7677
./release-configs/faiss-ivfpq/test.yml
7778
./release-configs/lucene-hnsw/filtering/relaxed-filter/relaxed-filter-test.yml
7879
./release-configs/lucene-hnsw/filtering/restrictive-filter/restrictive-filter-test.yml
80+
./release-configs/lucene-hnsw/nested/simple/simple-nested-test.yml
7981
./release-configs/lucene-hnsw/test.yml
8082
./release-configs/nmslib-hnsw/test.yml"
8183

0 commit comments

Comments
 (0)