Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 12-31-2021, 11:15 AM   #1
ehead
Member
ehead began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2013
Device: Kobo Aura HD
calibredb search and keywords

I'm trying to figure out how to use calibredb search with keywords like "not". I've tried many different approaches to putting it in quotes and none seem to work.

calibredb search --with-library "http://localhost:8080/#Calibre" title:"you are not so smart"

calibredb search --with-library "http://localhost:8080/#Calibre" title:"you are 'not' so smart"

calibredb search --with-library "http://localhost:8080/#Calibre" 'title:"you are not so smart"'

None of the above works. If I remove "not" then they all work, but I'd like to be able to search for exact titles (I'll probably prefix with the = if I can ever get this to work). Any help appreciated.
ehead is offline   Reply With Quote
Old 12-31-2021, 10:28 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
If you are running those commands via a shell, you need to escape the quotes or the shell will stirp them out.

On POSIXy shells, something like:

calibredb search --with-library "http://localhost:8080/#Calibre" 'title:"you are not so smart"'
kovidgoyal is online now   Reply With Quote
Advert
Old 01-02-2022, 11:36 AM   #3
ehead
Member
ehead began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Apr 2013
Device: Kobo Aura HD
Thanks.

I started suspecting this soon after making this post. Amazingly, a little research revealed this is apparently one of PowerShell's Achilles heels.
https://stackoverflow.com/questions/...line-arguments

I'm re-writing this in python and it seems to be working.
ehead is offline   Reply With Quote
Old 01-02-2022, 08:42 PM   #4
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
For the record, Kovid didn't actually escape anything in his sample. In PowerShell, the following worked for me:

Code:
calibredb search --with-library "http://localhost:8080/#Calibre" 'title:\"you are not so smart\"'
davidfor is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibredb inconsistent title: search results Terry Brown Library Management 2 05-05-2020 11:29 AM
Calibredb search iomari Calibre 4 04-16-2019 11:58 AM
Search keywords in yes/no columns Jellby Calibre 1 07-14-2014 10:58 AM
Another keywords question. Gregg Bell Writers' Corner 15 02-26-2013 01:00 PM
PDF, Tags and Keywords RockyBubba Library Management 4 04-03-2011 07:41 AM


All times are GMT -4. The time now is 10:25 AM.


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