View Single Post
Old 09-29-2022, 04:26 PM   #5
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,641
Karma: 7908443
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by chaley View Post
This is explained in the calibre documentation . A brief recapitulation:
  • Quoting a search term doesn't change its meaning. The quotes allow you to include spaces. Thus title:union and title:"union" are the same.
  • The search kind controls how matching works. There are 4 kinds. My and your examples use contains matching. Prefixing the search with an equals changes it to exact match.
If quotes are used then the search kind character must be inside the quotes.
Thanks Chaley. I'm quite familiar with the calibre default search options, but this topic got me wondering if there was some unbeknownst (to me) type of regular search that would return titles containing "union" and not any partial matches.

I'm aware that it's possible to get that by using regex, as in title:~\\bunion\\b , however using regular expressions is painful for non-programmers.
Comfy.n is offline   Reply With Quote