Commit 9b89ca9
committed
Fix default index for V2 retrieve queries
Why these changes are being introduced:
The Retrieve model uses the default elasticsearch index name for
V1 and V2 queries, which means that V2 retrieve queries use the
wrong index name.
Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/TIMX-185
How this addresses that need:
This updates Retrieve#default_index to use the default opensearch
index name for V2 queries.
Side effects of this change:
The regression tests for this pass, but somewhat disingenously as
we currently use the same index names in .env.test for elasticsearch
and opensearch. We should probably regenerate cassettes with the
latest prod data and start using the `all-current` index for V2
queries.1 parent 24536c7 commit 9b89ca9
2 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments