Skip to content

Commit

Permalink
Wikipedia: add semantic_text option
Browse files Browse the repository at this point in the history
  • Loading branch information
maxjakob committed Jan 31, 2025
1 parent 23f6712 commit fe4983a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wikipedia/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This track accepts the following parameters with Rally 0.8.0+ using `--track-par
- Index settings:
- `number_of_replicas` (default: `0`)
- `number_of_shards` (default: `1`)
- `index_mapping_type` (default: `minimal`)
- `index_mapping_type`: `minimal` / `semantic` / `full` (default: `minimal`)
- Initial indexing:
- `initial_indexing_bulk_clients` (default: `5`)
- `initial_indexing_bulk_size` (default: `500`)
Expand Down
24 changes: 24 additions & 0 deletions wikipedia/wikipedia-semantic-mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"settings": {
"index.number_of_replicas": {{ number_of_replicas | default(0) }},
"index.number_of_shards": {{ number_of_shards | default(1) }}
},
"mappings": {
"properties": {
"title": {
"type": "semantic_text"
},
"content": {
"type": "semantic_text"
},
"namespace": {
"ignore_above": 1024,
"type": "keyword"
},
"redirect": {
"ignore_above": 1024,
"type": "keyword"
}
}
}
}

0 comments on commit fe4983a

Please sign in to comment.