You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just realize that if you search for an attribute via /api/assets collins wraps the search term with ** forcing partial matches. Even anchoring with ^term$ doesn't work. It looks like collins is converting a search for "attribute=attrib;foo" into ATTRIB:*foo*:.
This is unexpected and hard to work around if you need explicit matches. No anchoring is working, so you need to search the results on the client side again.
Instead, collins should simply not wrap the term in **. This way people can use the wildcards where necessary while defaulting to full string match.
The text was updated successfully, but these errors were encountered:
Yeah, I agree that matching on substrings by default is a strange choice. I have no idea why it was made, and it's actually caused a few bugs for us over the years that I've been using collins.
We have discussed changing it, but have been perhaps overly worried that automation is relying upon this functionality, and changing it would have unexpected consequences.
It is worth having a discussion about, and perhaps changing when we do the next major, non-backwards compatible release.
Hi,
I just realize that if you search for an attribute via
/api/assets
collins wraps the search term with**
forcing partial matches. Even anchoring with^term$
doesn't work. It looks like collins is converting a search for "attribute=attrib;foo" intoATTRIB:*foo*:
.This is unexpected and hard to work around if you need explicit matches. No anchoring is working, so you need to search the results on the client side again.
Instead, collins should simply not wrap the term in
**
. This way people can use the wildcards where necessary while defaulting to full string match.The text was updated successfully, but these errors were encountered: