Skip to content

Commit daa2c10

Browse files
committed
Add specialist finder index as part of all indices for creation
Previously we thought we should exclude specialist finder index from all indices in case there are stats that are dependent on these indices just in case we are double counting documents. However, it looks like the monitoring task just sends all the data to statsd and the stats ruby file under bin only looks at govuk only anyways and not specialist finder index. We should be good to add specialist finder index as part of "all indeces"
1 parent 5da63eb commit daa2c10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/search_config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def index_names
4343
def all_index_names
4444
# this is used to process data in the rake file when `all` is passed in as previous we skipped `govuk`
4545
# we can't update index_names at this stage as it is used in multiple spots including the index filtering
46-
content_index_names + auxiliary_index_names + [govuk_index_name]
46+
content_index_names + auxiliary_index_names + [govuk_index_name, specialist_finder_index_name]
4747
end
4848

4949
def run_search(raw_parameters)

spec/support/index_helpers.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ def self.setup_test_indexes
99
end
1010

1111
def self.all_index_names
12-
SearchConfig.content_index_names + SearchConfig.auxiliary_index_names + [SearchConfig.govuk_index_name]
12+
SearchConfig.content_index_names + SearchConfig.auxiliary_index_names + [SearchConfig.govuk_index_name, SearchConfig.specialist_finder_index_name]
1313
end
1414

1515
def self.clean_all
16-
all_index_names.append(SearchConfig.specialist_finder_index_name).each do |index_name|
16+
all_index_names.each do |index_name|
1717
clean_index_group(index_name)
1818
end
1919
end
@@ -36,7 +36,7 @@ def self.clean_index_group(index_name)
3636
end
3737

3838
def self.create_all
39-
all_index_names.append(SearchConfig.specialist_finder_index_name).each do |index|
39+
all_index_names.each do |index|
4040
create_test_index(index)
4141
end
4242
end

0 commit comments

Comments
 (0)