Second fulltext field don't use analyzer

Created on 19 January 2020, over 5 years ago
Updated 30 May 2024, over 1 year ago

- I have an index with multiple fulltext field and a search view with different exposed filters for each.
- I added a french analyzer for accents and stemming using an eventsubscriber on the event 'prepare_index'

-> When i do a search on only one of the fulltext field, the elasticsearch query use a 'query_string' query, and the analyzer is working very well.

-> When i do a search on multiple fulltext fields, the elasticsearch query use a 'query_string' query for one of the fields and term queries for the others.
In that case, the analyzer is applied only on the 'query_string' query, but not on the 'term' queries, leading to not found content or inconsistent results.

-> i created a patch to use a 'match' query instead of a 'term' query for fulltext fields used as condition.

🐛 Bug report
Status

RTBC

Version

7.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024