Manage tags shows wrong count

Bug #1918030 reported by sam
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released
Charles Haley

Bug Description

I'm on Calibre 5.12 on OsX.

- Right click on Tags
- Manage Tags
- On the Category Editor (Tags) I order by count

I wanted to show the books having the tags whose count was just 1.
So I right clicked on the tag names having count 1 and chose "Search the library for 'Name Of The Tag'"

=> In most cases the count was correct but in many other cases it was wrong, meaning that even thought the count was 1 I could see multiple books in the search result.

I've verified this for other counts, for example tags showing count = 2 shows 2 result in most cases but in some cases they show many more book results (in one case 18 instead of 2)

Anything else I can do to help debugging this?

Revision history for this message
sam (sambook) wrote :

Ah, I think I've figured out one of the problem.
Let's say a tag is called "Anatomy & Physiology"
On the Category Editor (Tags) by right clicking and "Search the library for Anatomy & Physiology" will also match books containing the tag "Human Anatomy & Physiology"

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1918030

Changing the component for this bug.

 assignee cbhaley
 status triaged

Revision history for this message
Kovid Goyal (kovid) wrote :

@charles: Should the category editor be generating = searches? It doesnt
do that at the moment.

@OP: You can search for books having a number of tags as follows:

You can search for the number of items in multiple-valued fields such as tags. These searches begin with the character #, then use the same syntax as numeric fields. For example, to find all books with more than 4 tags use tags:#>4. To find all books with exactly 10 tags use tags:#=10.


Changed in calibre:
assignee: nobody → Charles Haley (cbhaley)
status: New → Triaged
Revision history for this message
Charles Haley (cbhaley) wrote :

@kovid: you are right, it should use an exact match search. Done.

Changed in calibre:
status: Triaged → Fix Committed
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers