Opened 9 years ago

Closed 9 years ago

#692 closed defect (fixed)

"contains" search on tags doesn't work if the word is not the first in the tag in dev 1557

Reported by: erazlogo Owned by: dstillman
Priority: major Milestone:
Component: interface Version: 1.0
Keywords: Cc:

Description

i.e. searching for "tag contains rights" doesn't find items tagged "civil rights". worked fine before i upgraded to dev 1557 from an earlier version (skipped a few in between though).

Change History (3)

comment:1 Changed 9 years ago by dstillman

Do we think 'contains' is necessary for tags, or would 'beginsWith' suffice? The current behavior is obviously incorrect for 'contains', but this was changed to speed up searches by using the DB index.

comment:2 Changed 9 years ago by erazlogo

Well, I was using the "contains" and the change broke some of my saved searches. But it is possible that I was the only one using this feature.

I think if you get rid of "contains" you might as well confine tags to "is" and "is not" searches--why would one want to search for the first word in the tag but not for the second?

Say you want to create a saved search on tags "women's rights" and "civil rights" in "africa." Currently you can't do that and you could with "contains." To get around the "begins with" limitation you would either have make all you tags one-word (i.e. "rights," "women," "civil") and search for "rights" and "africa", or move the words around in tags ("rights--women's"; "rights--civil") and search with "begins with"--both choices are awkward but possible.

If there was a way to mix "or" and "and" searches you could search for "africa" and ("civil rights" or "women's rights"). But currently Zotero can't do that either.

comment:3 Changed 9 years ago by dstillman

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by r1583

Note: See TracTickets for help on using tickets.