You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DGU_ORGANISATIONS_ID="#{DGU_ORGANISATIONS_PREFIX}_2".freeze# Should match DGU_ORGANISATIONS_ID in https://github.com/alphagov/ckanext-datagovuk/blob/e774ed637178533a47ddfa8fadaf83adc9e903be/ckanext/datagovuk/lib/cli.py#L26
Copy file name to clipboardExpand all lines: spec/services/search/solr_spec.rb
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -340,7 +340,7 @@
340
340
"dataset",
341
341
)
342
342
expect(term_query).toeq(
343
-
"(title:(dataset)^2 OR notes:(dataset)) AND NOT site_id:dgu_organisations",
343
+
"(title:(dataset)^2 OR notes:(dataset)) AND NOT site_id:#{described_class::DGU_ORGANISATIONS_PREFIX}.*",
344
344
)
345
345
end
346
346
@@ -350,7 +350,7 @@
350
350
)
351
351
352
352
expect(term_query).toeq(
353
-
"(title:(animal health)^2 OR notes:(animal health)) AND NOT site_id:dgu_organisations",
353
+
"(title:(animal health)^2 OR notes:(animal health)) AND NOT site_id:#{described_class::DGU_ORGANISATIONS_PREFIX}.*",
354
354
)
355
355
end
356
356
@@ -360,7 +360,7 @@
360
360
)
361
361
362
362
expect(term_query).toeq(
363
-
"(title:(\"animal health\")^2 OR notes:(\"animal health\")) AND NOT site_id:dgu_organisations",
363
+
"(title:(\"animal health\")^2 OR notes:(\"animal health\")) AND NOT site_id:#{described_class::DGU_ORGANISATIONS_PREFIX}.*",
364
364
)
365
365
end
366
366
@@ -370,7 +370,7 @@
370
370
)
371
371
372
372
expect(term_query).toeq(
373
-
"(title:(\"animal health\" dogs)^2 OR notes:(\"animal health\" dogs)) AND NOT site_id:dgu_organisations",
373
+
"(title:(\"animal health\" dogs)^2 OR notes:(\"animal health\" dogs)) AND NOT site_id:#{described_class::DGU_ORGANISATIONS_PREFIX}.*",
374
374
)
375
375
end
376
376
@@ -380,7 +380,7 @@
380
380
)
381
381
382
382
expect(term_query).toeq(
383
-
"(title:(organogram staff roles salaries)^2 OR notes:(organogram staff roles salaries)) AND NOT site_id:dgu_organisations",
383
+
"(title:(organogram staff roles salaries)^2 OR notes:(organogram staff roles salaries)) AND NOT site_id:#{described_class::DGU_ORGANISATIONS_PREFIX}.*",
384
384
)
385
385
end
386
386
@@ -390,7 +390,7 @@
390
390
)
391
391
392
392
expect(term_query).toeq(
393
-
"(title:(\"organogram of staff roles & salaries\")^2 OR notes:(\"organogram of staff roles & salaries\")) AND NOT site_id:dgu_organisations",
393
+
"(title:(\"organogram of staff roles & salaries\")^2 OR notes:(\"organogram of staff roles & salaries\")) AND NOT site_id:#{described_class::DGU_ORGANISATIONS_PREFIX}.*",
0 commit comments