Equality search for url identifiers broken?

Bug #1063395 reported by Jim Miller
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Charles Haley

Bug Description

I have two books in the library, one with identifiers url:http|//test1.com?sid=56 and one with identifiers url:http|//test1.com?sid=561

Searching for identifiers:"=url:http|//test1.com?sid=56" matches both. With the '=', I expect it to only match sid=56.

I get the same effect when I change the ids to other:1234 and other:1234a and search for identifiers:"=other:1234" -- both books are found.

And again, searching for identifiers:"=isbn:1" finds everything with an isbn starting with 1.

I first heard about this from another user, so it's not just me.

calibre version: 0.9.1
OS: Windows 7 Home Premium

Revision history for this message
Jim Miller (retiefjimm) wrote :
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1063395

Changing the component for this bug.

 assignee cbhaley
 status triaged

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

You are not using the correct search syntax.

Identifier searches contain two items, the key and the value. Either or both can be "contains" or "equality". In your examples, you are using "equality" matches on the key and "contains" matches on the value. For example, your "other" example should be written =other:=1234 if you want to find only the 1234 item and not the 12345 item.

See the documentation for more information. http://manual.calibre-ebook.com/gui.html#id21. Identifier searches are described near the bottom of the section

Changed in calibre:
status: Triaged → Invalid
Revision history for this message
Jim Miller (retiefjimm) wrote :

I missed that detail.

Sorry for the bad bug report.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.