Score:0

ElasticSearch Views integration not working with multiple words

in flag

In Drupal 9 I have setup ElasticSearch 7. I have added a Search API View in which I have added field to search through the "rendered HTML" field.

This seems all pretty basic if you ask me, however it doesn't work as expected.

For example my page contains text like "Lorem ipsum dolor sit amet".

  • If I search for "ipsum" I get the page as a result
  • If I search for "dolor" I get the same result
  • But if I search for "ipsum dolor" I get no results at all

Do I miss configuration in either my view, or my ElasticSearch index, or is this some weird missing feature in the views integration. I believe I know enough of both to say that I haven't missed a checkbox or processor, but who knows.

I also haven't found any issues other than this one, which is open for 3 years already. If this is an actual bug I would expect more activity on it, so I expect that I am missing something.

Score:0
in flag

It turns out that I simply used the wrong type of filter.

When looking for filter options in the view I typed "search" and the first result was "Combine fields filter - Combine multiple fields together and search by them.", so I used that without looking further.

Instead I had to use "Fulltext search - Search several or all fulltext fields at once."

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.