Second fulltext field don't use analyzer

Created on 19 January 2020, almost 5 years ago
Updated 30 May 2024, 7 months 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

Comments & Activities

Not all content is available!

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

  • 🇪🇸Spain paucala

    I know this is an old issue, but i was having trouble with on this subject. I've a view with multiple fulltext filters and it wasn't working when i added more than 1 filter. With this patch, it works when i add everyone of them and works. I think this should be merged as it is a basic funcionality.

Production build 0.71.5 2024