From f85d371864c71bebfc10a1197f7fd5cfaa1d80c6 Mon Sep 17 00:00:00 2001 From: Vladislav Syabruk Date: Mon, 13 Nov 2023 17:02:32 +0300 Subject: [PATCH] Fix specs --- spec/query/request/edismax_adapter_spec.rb | 2 +- spec/query/request/query_field_spec.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/query/request/edismax_adapter_spec.rb b/spec/query/request/edismax_adapter_spec.rb index 72c439a..62f2740 100644 --- a/spec/query/request/edismax_adapter_spec.rb +++ b/spec/query/request/edismax_adapter_spec.rb @@ -111,7 +111,7 @@ ps: 5, q: 'Search Term', 'q.op': :AND, - qf: ['field_1^1', 'field_2^16'], + qf: ['field_1', 'field_2^16'], sort: 'exists(field_1) desc, field_1 asc, exists(field_2) desc, field_2 desc, score desc', :'shards.preference' => 'replica.type:PULL' } diff --git a/spec/query/request/query_field_spec.rb b/spec/query/request/query_field_spec.rb index aaf86aa..7686fd8 100644 --- a/spec/query/request/query_field_spec.rb +++ b/spec/query/request/query_field_spec.rb @@ -3,7 +3,7 @@ context 'when boost magnitude is not specified' do subject { described_class.new(field: :field).to_solr_s } - it { is_expected.to eq('field^1') } + it { is_expected.to eq('field') } end context 'when boost magnitude is specified' do @@ -24,7 +24,7 @@ subject { described_class.new(field: :title).to_solr_s } - it { is_expected.to eq('title_text^1') } + it { is_expected.to eq('title_text') } end end end