![]() |
#16 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@chaley - what is the source of the data in the tree?
BR |
![]() |
![]() |
![]() |
#17 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The query expression, possibly composed with the restriction expression(s). It uses a recursive descent parser. Saved searches are expanded when encountered.
The grammar is very simple. Code:
prog ::= or_expression or_expression ::= and_expression [ 'or' or_expression ] and_expression ::= not_expression [ [ 'and' ] and_expression ] not_expression ::= [ 'not' ] location_expression location_expression ::= base_token | ( '(' or_expression ')' ) base_token ::= a sequence of letters and colons, perhaps quoted However, you might be asking about the source of the data for the books. That is, of course, the database, but by the time search sees the data, it has been flattened into a single table representation, one row per book, every field in its own column even if that field contains multiple values. Only the very bottom layers of calibre know anything about the database and its underlying table structure. |
![]() |
![]() |
![]() |
#18 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
|
Good discussion guys! I see there's a lot of things to think about!
Here's one other example of current Calibre's search problems. I encountered this issue few days ago and I had no idea what was wrong until I spent few minutes investigating. Say your title (or whatever filed you wish… description filed with rich text is usually the culprit here) uses a proper curly quote, ’ , and not ' as an apostrophe…. as in: "Calibre’s Search". And say you want to search for it and you type "calibre's search" (regular apostrophe). If you followed discussion so far, you're realize that Calibre won't show you the book. But what do you think will happen when you copy paste the exact text string into the search field: "Calibre’s Search"? Will Calibre find it? What do you think? No cheating ![]() This why it's important to strip all these characters out. Someone who's not aware of these issues will never figure out why they can't find anything. When importing books in to Calibre, it shouldn’t feel like I'm putting things into a black hole ![]() Last edited by MelBr; 09-28-2013 at 12:00 PM. |
![]() |
![]() |
![]() |
#19 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@MelBR - you can read about the folks working on the apostrophe problem here
![]() If you strip out the apostrophes ( ’ ) and quotes ( ' ) when they're used to indicate possession then you should probably remove any following ess ( s ). That leaves one with the problem of what to do about them when they’re used within a contraction. Then there's chaley's point of having to deal with 100's [but you wouldn't remove that ( s )] of languages on several operating systems in different versions and guises. If you're the NSA there's no such thing as a black hole ![]() @chaley - as you surmised I was thinking of the metadata database. If none of its columns contains the value I'm looking for then no amount of 'smarts' within calibre's search facility will find it. Or if a column erroneously contains what I'm looking for, then search will unfortunately find it. In both cases I end up with the wrong result. But that said, I don't have any complaints about calibre's search. My expectations of it are limited, I mainly use it for administrative searches, eg 'find' books that don't have an RTF or a DOCX or a PDF. Otherwise I use one of several external full text search tools, sometimes from there I'll create a CSV to read into Import List to create a Reading List. BR Last edited by BetterRed; 09-28-2013 at 11:05 PM. |
![]() |
![]() |
![]() |
#20 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,812
Karma: 26912940
Join Date: Apr 2010
Device: sony PRS-T1 and T3, Kobo Mini and Aura HD, Tablet
|
I often use the tag browser find to search for the author. Very fast usually even with partial names.
|
![]() |
![]() |
![]() |
#21 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 105
Karma: 414068
Join Date: Feb 2013
Device: iPad Pro, Kobo Aura One
|
Quote:
That might be fine for fiction or small libraries but it's unrealistic for non-fiction and large libraries. Not to mention that it's not user-friendly. |
|
![]() |
![]() |
![]() |
#22 | ||
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Quote:
And its not entirely useless in that regard. If I want to find a article that I think Stiglitz wrote on the IMF blog, then I type 'stiglitz' in the calibre search bar, sort on Publisher and look at the Titles**. But if I want to find what I have by Stiglitz where he's had something to say about CoCo Bonds then I will use Windows Search or Recoll. BR ** if you're wondering why I wouldn't just go the IMF blog, well just because something was there yesterday doesn't mean it'll be there next week. |
||
![]() |
![]() |
![]() |
#23 | |
Bujavid tekikin
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 139
Karma: 40366
Join Date: Aug 2013
Location: Malaysia
Device: LG G3 D855, Samsung Galaxy Note N7000
|
Quote:
|
|
![]() |
![]() |
![]() |
#24 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
![]() Full Text indexers although mechanistic don't make value judgements, they skim read fast and they tag 'everything'. Even the ones on desktop systems are 'smarter' and 'faster' than I will ever be. But they do the 'easy bit' the 'hard bit' is knowing how to search and more importantly how to 'join the dots'. br |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Find books lacking a specific format | jt421 | Calibre | 2 | 06-23-2011 07:05 AM |
Classic Web browser sorely lacking | skorpyo | Barnes & Noble NOOK | 0 | 12-30-2010 09:39 PM |
iPad iBook store content is lacking | mjhudston | Apple Devices | 3 | 07-25-2010 08:28 PM |
Can't install Calibre, lacking SysAdmin priviliges, older version instead? | ZenEngineer | Calibre | 3 | 12-17-2009 12:57 AM |
(Resolved) I'm pretty angry right now... Calibre or Sony Library MESSED UP MY PC!!! | ProDigit | Calibre | 26 | 11-29-2008 05:30 PM |