GravityKit / GravityView

The best and easiest way to display Gravity Forms entries on your website.
https://www.gravitykit.com/products/gravityview/
245 stars 63 forks source link

Allow exact-match searches #1973

Closed zackkatz closed 6 months ago

zackkatz commented 8 months ago

Adds support for part of #1966

This hasn't been tested. Needs further testing, unit tests!

mrcasual commented 6 months ago

@doekenorg, should searching for "bar baz" return a match if an entry contains Foo Bar Baz?

doekenorg commented 6 months ago

@doekenorg, should searching for "bar baz" return a match if an entry contains Foo Bar Baz?

@mrcasual not according to your initial comment https://gravitykit.slack.com/archives/C727B06MB/p1708630523917899 That would mean it would not match on that entry.

But personally I think it should be included. So it would need to exactly contain: "bar baz", but not "bar" or "baz". I'll adjust it to contains for these cases instead of is.