![]() |
#1 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Life of Pi & Calibre's search engine
I notice that the default search in Calibre is to search anywhere in all the books' metadata instead of restricting the search to the main fields -- such as the "title" and "author" fields.
This results in dozens of books coming up when I went to search for "Life of Pi" in my library. I put in "life pi" in the search field and got the dozens of books. (Try it; you will get dozens of books too even if you don't have "Life of Pi" in your library.) So I went to advanced search and put in "life pi" in the title field and nothing came up. I finally figured out that the advanced search will only give results on multiple words if they are in the exact sequence they appear in the title. In other words, it won't simply treat "life pi" as two separate keywords and give results. You can successfully search on "life of" or "of pi" or "life of pi" but "life pi" will give you zero results. So it seems that the default search is overly broad. And the advanced search is too restrictive. Is there any way to restrict the default search to the title and author fields? Is it also possible to make the advanced search a little less restrictive in terms of the word sequencing for a title? Last edited by PatNY; 12-06-2011 at 10:55 AM. |
![]() |
![]() |
![]() |
#2 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,075
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
If you use search prefixes in the standard search bar (like title:life pi) it will use substring search on both, so it will also match something like 'blah Pioneer blah blah the life of blah...' |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,342
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Edit: duplicates mbovenka's information. Sorry... |
|
![]() |
![]() |
![]() |
#4 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,914
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:
Control non prefixed columns ... |
|
![]() |
![]() |
![]() |
#5 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Duh, I should have looked more carefully in preferences.
![]() I actually did look in preferences first (because I know the Calibre developers don't overlook much!) but I went straight to "Tweaks" to look for an adjustment. So thanks to chaley, ducks and mobovenka for the quick reply. I've been using Calibre for over a year and have often been vexed by the overly broad results with default searches. I can't believe I didn't inquire about this before. So this is a change many others might want to do as it makes searching the library a lot easier. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
I'm glad the restriction on what you search has helped you, but your search technique may need refining beyond what restricting fields will do for you.
Quote:
Quote:
Quote:
Understanding the difference in the search techniques I've outlined above will go a lot further in helping you search your library than any limit you put on fields to search. That said to speed up searches I do remove comments from my list of fields to search. |
|||
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 902
Karma: 1660722
Join Date: Nov 2009
Location: Maryland
Device: PRS-650, PRS-600, PRS-350
|
How would you do an AND search (which is what he seems to need).
life pi = life OR pi "life pi" = exact string "life pi" what gives us? = life AND pi |
![]() |
![]() |
![]() |
#8 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
|
Use the 'Life and pi'
![]() As you mentioned if no operator keyword is present the the 'or' operator is assumed. Brackets can be used if needed to provide grouping. |
![]() |
![]() |
![]() |
#9 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
In other words, per the very first search I made as referenced in my original post, every resulting book had to have BOTH life and pi somewhere in the book's metadata. If could be the word "life" in the title, for example, and then the presence of the word "conspiracy" in the book's summary. If there was no pi string anywhere in the metadata, then the presence of the word life in the title alone would not be enough to cause the book to show up in the results. This is very good, because if it was really an "OR" situation, that would have caused even more irrelevant books to show up. As it was, a lot of books showed up because "pi" is a common string in so many ordinary words (pizza, conspiracy, masterpiece etc). BTW, in my actual search in calibre, I was using no quotes around the search terms. I just used them in my original post here to try to make the post easier to understand. I also didn't think it was a bug. But I did think the default search method (without any tweaks) was non-intuitive and non-standard compared to the common search engines you find on websites. I imagine it could confuse many who use Calibre for the first time and have hundreds of books in their library, particularly books with summaries filled in. |
|
![]() |
![]() |
![]() |
#10 |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Actually, the "and" operator is assumed. It might seem like it is an "or" situation since so many books will come up in searches on default settings, but it's only because it is catching the search strings in the book summaries (or other metatdata fields) as well.
|
![]() |
![]() |
![]() |
#11 |
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,722
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@PatNY - personally I 100% agree that the default should be to not search the comments fields. It is one of the first things I change when I install calibre for other people. However it is a battle I briefly tried to fight and lost a long time ago. The concession I did help win was in getting a preferences option available (thanks to chaley for the work) so at least users could do it without modifying source code.
I'm guessing the other devs haven't changed their mind on this issue by now, but you never know ![]() And yes, not sure what special juice itimpi was drinking today when he posted, but searches are most definitely an and not an or when not specified. |
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,214
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
What you want is
Code:
title:life title:pi Interpreting quotes as denoting an exact string match is standard practice in pretty much every search engine I have come across. The only difference is google seems to interpret a space in a quoted string as being "any punctuation" which calibre does not. |
![]() |
![]() |
![]() |
#13 | ||
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,890
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
Quote:
I think the default search is as I would expect it to be in other search engines. The point of confusion, as kiwidude pointed out, is that searches automatically search the comments area too so there is quite a bit more data being searched then the obvious Title, Author, Series you would expect. Last edited by DoctorOhh; 12-08-2011 at 05:49 PM. |
||
![]() |
![]() |
![]() |
#14 | ||||
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
Quote:
I'm not aware of any advanced search function I've used before that assumes quotes around the search terms when they are not actually typed in. Quote:
You get the same results if you do a Google search on just life pi. Everything on the first page is related to the book. Sure, there may be lots of results not related to the book, but since Google ranks results by relevancy, there is not a problem. The point is you can put life pi in, with or without quotes, and always come up with the book first. Quote:
I agree with kiwidude that the book summary metadata should not be included in the default basic search. In all the time I've been using Calibre, I've never once made a search based on something that I was looking for in the books summary section. It is 100% either title or author. Perhaps the option to search ALL the book's metadata including the book summary is something that should be reserved for the advanced search. Last edited by PatNY; 12-08-2011 at 10:47 AM. |
||||
![]() |
![]() |
![]() |
#15 | |
Zennist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,022
Karma: 47809468
Join Date: Jul 2010
Device: iPod Touch, Sony PRS-350, Nook HD+ & HD
|
Quote:
Kovid, as I explained to Walt, I didn't actually use quotes in the search I did in Calibre. I only used them in the first post in this thread to differentiate the search terms from the rest of the sentence. I realize now that this may have resulted in some confusion as to what I used, so I later resorted to bolding the terms. I did the advanced search without quotes, and noticed that it will assume quotes even if you don't use them, and therefore I got ZERO results when searching for life pi. That is what also vexed me, in addition to the overly broad results with the basic search. I'm not aware of other advanced search engines that will automatically assume quotes when just keywords are entered in without them. From my perspective, all is fine thanks to kiwidude and chaley who put in tweaks in Preferences. But I have to imagine anyone with hundreds of books in their library and who is relatively new to Calibre might be similarly perplexed by its search engine behavior. Last edited by PatNY; 12-08-2011 at 10:54 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Search Engine Difficulties | Zazoo | enTourage eDGe | 6 | 09-08-2011 05:49 PM |
Search Engine | alroy | Calibre | 1 | 11-06-2010 01:39 AM |
Ebook Search Engine | Drezin | News | 2 | 01-05-2010 05:16 PM |
worldwide search engine sites | oprf71 | Lounge | 1 | 02-01-2005 03:43 AM |