Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2016, 06:02 PM   #1
bubulac
Member
bubulac began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Dec 2009
Location: Canada
Device: Kobo Glo HD
Searching in Calibre

Hello everybody,
I wonder if there is any way to search for books in Calibre using multiple tags as criteria.
For example, find all books with the tags Fantasy, Horror and Young Adult.
Any suggestions as to how to do that?
Thank you,
Cristian
bubulac is offline   Reply With Quote
Old 07-17-2016, 06:28 PM   #2
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
You can quickly construct searches via the tag browser. CTRL+click to select additional search criteria.

This will create a search in the searchbar and show you what it should look like. For example:
Code:
tags:"=tag1" and tags:"=tag2"
eschwartz is offline   Reply With Quote
Advert
Old 07-17-2016, 07:47 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,988
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
If you don't want to TYPE that in.
In the tag Browse
Click (Tags section): Fantasy,
NOW Hold the control key, click Horror.
Still holding the control key, Click Young adult

Green + means 'Include', clicking a selection a second tim get 'Exclude' (a Red minus)

Hierarchical items ALSO have Double + (include all members) and Double - ('exclude all members)
theducks is offline   Reply With Quote
Old 07-17-2016, 10:48 PM   #4
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 937
Karma: 53902736
Join Date: Jun 2015
Device: multiple
Easiest way to search for multiple tags is to type two words in the search bar. It'll pick up some strays, but it doesn't require you to be able to use the keyboard and the mouse at the same time.
MarjaE is offline   Reply With Quote
Old 07-21-2016, 07:26 AM   #5
shalym
Wizard
shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.
 
shalym's Avatar
 
Posts: 3,056
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
Quote:
Originally Posted by MarjaE View Post
Easiest way to search for multiple tags is to type two words in the search bar. It'll pick up some strays, but it doesn't require you to be able to use the keyboard and the mouse at the same time.
Except when you do that, it does it as an "or" search--even if you explicitly type "and".

If you have a hard time using the mouse and keyboard at the same time, best is to just type in the explicit search. For example, in my library, I typed in "humor and mystery" into the search field. It picked up every book tagged with humor, and every book tagged with mystery, as well as the one book that includes both tags. However, when I type in
Code:
tags:"=Humor" and tags:"=Mystery"
I get the one book that includes both tags, which is what I was actually looking for.

Shari
shalym is offline   Reply With Quote
Advert
Old 07-21-2016, 08:09 AM   #6
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,393
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by shalym View Post
Except when you do that, it does it as an "or" search--even if you explicitly type "and".

If you have a hard time using the mouse and keyboard at the same time, best is to just type in the explicit search. For example, in my library, I typed in "humor and mystery" into the search field. It picked up every book tagged with humor, and every book tagged with mystery, as well as the one book that includes both tags. However, when I type in
Code:
tags:"=Humor" and tags:"=Mystery"
I get the one book that includes both tags, which is what I was actually looking for.

Shari
This isn't correct. If you type A B (or A and B) then you get books with both A and B *somewhere in the metadata*. In your case I suspect that you are allowing calibre to search comments (Preferences / Searching / What to search by default) when you use an unprefixed search, and the comments contain the other word.

You can test this by adding a bizarre tag to one book, for example ARTJQP112345, then searching for "something ARTJQP112345" (without the quotes). Calibre will find at most the one book with the bizarre tag. It won't find anything if the "something" doesn't appear in at least one of the allowed metadata fields.
chaley is offline   Reply With Quote
Old 07-21-2016, 08:34 AM   #7
shalym
Wizard
shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.shalym ought to be getting tired of karma fortunes by now.
 
shalym's Avatar
 
Posts: 3,056
Karma: 54671821
Join Date: Feb 2012
Location: New England
Device: PW 1, 2, 3, Voyage, Oasis 2 & 3, Fires, Aura HD, iPad
Quote:
Originally Posted by chaley View Post
This isn't correct. If you type A B (or A and B) then you get books with both A and B *somewhere in the metadata*. In your case I suspect that you are allowing calibre to search comments (Preferences / Searching / What to search by default) when you use an unprefixed search, and the comments contain the other word.

You can test this by adding a bizarre tag to one book, for example ARTJQP112345, then searching for "something ARTJQP112345" (without the quotes). Calibre will find at most the one book with the bizarre tag. It won't find anything if the "something" doesn't appear in at least one of the allowed metadata fields.
Ah...you are correct. My search preferences did not explicitly exclude the "comments" field. However, since MarjaE did not explain that the comments field should be excluded, and since it seems like the default is to include all fields in a search, it definitely needs clarifying.

Sorry, I shouldn't have just assumed that it was doing an "or" search without looking closer at the search results.

Shari
shalym is offline   Reply With Quote
Old 07-22-2016, 09:04 PM   #8
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 937
Karma: 53902736
Join Date: Jun 2015
Device: multiple
I don't have a comments field. I have trouble typing, and often mis-type the first time, so I would have trouble typing in these complex searches.
MarjaE is offline   Reply With Quote
Old 07-22-2016, 10:06 PM   #9
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,988
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by MarjaE View Post
I don't have a comments field. I have trouble typing, and often mis-type the first time, so I would have trouble typing in these complex searches.
Everybody has a Comments field. It is Labled Details and is viewed (or hidden) using the Book Icon at the bottom
theducks is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching for Kovid - I need a quote on Calibre for my website coolatron Calibre 2 03-22-2016 10:43 PM
Searching with Calibre not in a list now book64 Calibre 20 11-10-2015 04:52 PM
Searching Calibre Custom Columns BlueGoose1776 Library Management 1 02-09-2015 02:58 PM
Calibre Companion - Searching for Dummies VelvetElvis Calibre Companion 2 11-23-2013 11:52 PM
Searching for Calibre-Created covers? Dullahir Calibre 14 04-17-2013 03:18 AM


All times are GMT -4. The time now is 01:03 AM.


MobileRead.com is a privately owned, operated and funded community.