Problem/Motivation

I was trying to create a custom query on Elastic and I needed to perform a full text search in a conditionGroup and the keys() method cannot support that.
To do that I've made two additional filters on FiltersFactory.php, LIKE, and EXACT to query the elasticsearch server with a full text.
Not sure if it's the best method, I'd love some feedback on this.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

karma86 created an issue. See original summary.

artemboiko’s picture

Good idea, works well for me.

mparker17’s picture

Status: Active » Needs review

Since there's a patch here, I'm going to move this to "Needs review".

mparker17’s picture

I just released elasticsearch_connector-8.x-7.0-alpha6, which had some changes that could break older patches, so I've been proactively fixing merge conflicts, hopefully saving people time when they need to upgrade.

I created merge request !150 from the patch. If you need an updated patch file, you can download one from the merge request.

Thank you!

mparker17’s picture

Version: 8.x-7.0-alpha3 » 8.x-7.x-dev
Component: Elasticsearch Connector » Code

(metadata update, sorry for the noise)

mparker17’s picture

Title: LIKE and EXACT filter for searching fulltext » LIKE and EXACT filter for searching fulltext (8.x-7.x)

(update the issue title to distinguish this from #3444888: LIKE and EXACT filter for searching fulltext (9.0.x, 8.0.x))