-
Notifications
You must be signed in to change notification settings - Fork 311
Filtertext #351
base: master
Are you sure you want to change the base?
Filtertext #351
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a test for the created method
* @param string $value | ||
* @return $this | ||
*/ | ||
public function whereMatch($field, $value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove this method? It was added and merged in PR #355
* @param array $value | ||
* @return $this | ||
*/ | ||
public function whereNotInText($field, $value) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it can be renamed to whereNotMatchPhrase
to be more specific on which query is made. What your thoughts?
* Exclude results containing text | ||
* Can't use 'term' because it's not analyzed | ||
* | ||
* @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html Terms query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -151,6 +151,44 @@ public function where($field, $value) | |||
return $this; | |||
} | |||
|
|||
/** | |||
* Exclude results containing text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove these comments since it's redundant
I've added a couple of methods for filtering texts. I needed them for my specific needs, guess someone else might find them useful as well.