Fix search error
This commit is contained in:
parent
2a043237fb
commit
f250353fd2
2 changed files with 1 additions and 11 deletions
|
@ -54,7 +54,7 @@ class SearchQueryTransformer < Parslet::Transform
|
|||
|
||||
def to_query
|
||||
# { multi_match: { type: 'most_fields', query: @term, fields: ['text', 'text.stemmed'], operator: 'and' } }
|
||||
{ match_phrase: { text: { query: @phrase } } }
|
||||
{ match_phrase: { text: { query: @term } } }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue