02-20-2013, 05:35 AM | #1 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kindle touch
|
New 'Get books' dialog
I found there are 2 new fields in 'Get books' dialog.
In src/calibre/gui2/store/search/search.py, do_search() will join these fields to generate query string. And then use self.results_view.model().set_query(query) to apply criteria to view. My question is, if I type 'UML' in title field then search, it will find nothing whatever use Amazon or Google books as the store. But if I type 'UML' in keyword field then search, it will return results. I don't understand what is the difference. I guess that set_query() do something. Does anyone know this? |
02-20-2013, 06:30 AM | #2 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
keywords will search all metadata of the book, title will search only the title.
|
02-20-2013, 08:34 PM | #3 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kindle touch
|
Quote:
Why? |
|
02-20-2013, 10:42 PM | #4 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Because searching by title filters results to only contain those books whose title has the searched for terms. Use the source, Luke.
|
02-21-2013, 01:37 AM | #5 |
Junior Member
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kindle touch
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The book dialog game | The Terminator | Lounge | 1357 | 03-11-2015 01:27 PM |
Broken dialog regex | dicknskip | Sigil | 11 | 11-09-2012 04:01 PM |
Adding Books without confirmation dialog | scottar | Library Management | 1 | 12-25-2011 12:51 AM |
New preferences dialog | kovidgoyal | Calibre | 22 | 09-07-2010 01:04 PM |
A dialog with Borders | Taylor514ce | Sony Reader | 45 | 06-19-2008 11:04 PM |