Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
syabruk committed Nov 13, 2023
1 parent 2f739ca commit f85d371
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/query/request/edismax_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down
4 changes: 2 additions & 2 deletions spec/query/request/query_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit f85d371

Please sign in to comment.