-
-
Notifications
You must be signed in to change notification settings - Fork 174
Rename filters #165
Rename filters #165
Conversation
Amazing work @soedirgo 💯 . I'm curious about the |
👍
Mostly because they operate on different kinds of columns, in contrast to |
Great. I inlined some of the test snapshots so they are easier to read. From a documentation POV, I wouldn't mind putting all the Would be interested to get @thorwebdev and @joshnuss 's (OP) opinion on the final changes:
@steve-chavez this look ok to you? |
Looks much better!
Since adjancent( (check with
This one looks good. overlaps( (check with |
This is great! I think it will help a lot of folks. 👍 |
OK great, looks like we have enough consensus here.
@soedirgo perhaps we rename this one as Steve suggested, then we're good to merge yeah? |
Yup! I've done the rename. |
🎉 This PR is included in version 0.28.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What kind of change does this PR introduce?
Feature.
What is the current behavior?
Some filter names are very short and hard to understand.
What is the new behavior?
Rename the filters as per #148. Some deviations to the original suggestion (I'm not good at names so if these look bad feel free to chime in):
cd
becomescontainedBy
rather thanwithin
(closer to the short version)ov
becomesoverlaps
rather thanwithin
(same here)fts
becomestype: null
(default) rather thantype: 'tsvector'
(tsvector
is the type of the text/document rather than the query)plfts
becomestype: 'plain'
rather thantype: 'plainto'
phfts
becomestype: 'phrase'
rather thantype: 'phraseto'
Old filter names are kept for back compat but are tagged with
@deprecated
.Additional context
Closes #148.