We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 454e287 commit 33d954eCopy full SHA for 33d954e
test/integration/search_query_test.rb
@@ -25,6 +25,14 @@ class QueryIntegrationTest < ::Elasticsearch::Test::IntegrationTestCase
25
end
26
27
28
+ context "for match_phrase_prefix query" do
29
+ should "find the document" do
30
+ response = @client.search index: 'test', body: search { query { match_phrase_prefix title: 'te' } }.to_hash
31
+
32
+ assert_equal 1, response['hits']['total']
33
+ end
34
35
36
context "for query_string query" do
37
should "find the document" do
38
response = @client.search index: 'test', body: search { query { query_string { query 'te*' } } }.to_hash
0 commit comments