Skip to content

Commit

Permalink
Merge pull request #4307 from vespa-engine/toregge/check-issue-report…
Browse files Browse the repository at this point in the history
…ing-for-streaming-search

Check issue reporting for streaming search.
  • Loading branch information
toregge authored Jan 3, 2025
2 parents d964dc5 + 9b59de4 commit 1909532
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/search/sorting/sorting_streaming.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ def test_sorting_streaming
compare('query=this&streaming.selection=true&ranking=onlyweight&sortspec=%2b[docid]&hits=5&type=all', "this_docid_asc", "documentid")
# Descending sort on docid (global docid is used for sorting)
compare('query=this&streaming.selection=true&ranking=onlyweight&sortspec=-[docid]&hits=5&type=all', "this_docid_desc", "documentid")

result = search_with_timeout(60, { 'query' => 'this',
'streaming.selection' => 'true',
'ranking' => 'onlyweight',
'sortspec' => '-badfield',
'hits' => '5',
'type' => 'all' })
assert_not_nil(result.errorlist)
assert_match(/Cannot locate field 'badfield' in field name registry/, result.errorlist[0]['message'])
end

end

0 comments on commit 1909532

Please sign in to comment.