.Search with a simple query string query [source,js] --------- const response = await client.search({ index: 'myindex', q: 'title:test' }); --------- .Passing a full request definition in the Elasticsearch's Query DSL as a `Hash` [source,js] --------- const response = await client.search({ index: 'myindex', body: { query: { match: { title: 'test' } }, facets: { tags: { terms: { field: 'tags' } } } } }); ---------