Fix search error

This commit is contained in:
KMY 2023-09-03 22:21:19 +09:00
parent 2a043237fb
commit f250353fd2
2 changed files with 1 additions and 11 deletions

View file

@ -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