Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2013, 05:35 AM   #1
elleryq
Junior Member
elleryq began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kindle touch
Question 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?
elleryq is offline   Reply With Quote
Old 02-20-2013, 06:30 AM   #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: 24,817
Karma: 4369673
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
keywords will search all metadata of the book, title will search only the title.
kovidgoyal is offline   Reply With Quote
Old 02-20-2013, 08:34 PM   #3
elleryq
Junior Member
elleryq began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kindle touch
Quote:
Originally Posted by kovidgoyal View Post
keywords will search all metadata of the book, title will search only the title.
If I enter keywords in 'title' and 'keyword', I found the actual query string will be title+keyword. The store plugin return results, after self.results_view.model().set_query(query), the results become empty.

Why?
elleryq is offline   Reply With Quote
Old 02-20-2013, 10:42 PM   #4
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: 24,817
Karma: 4369673
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.
kovidgoyal is offline   Reply With Quote
Old 02-21-2013, 01:37 AM   #5
elleryq
Junior Member
elleryq began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2012
Device: Kindle touch
Quote:
Originally Posted by kovidgoyal View Post
Because searching by title filters results to only contain those books whose title has the searched for terms. Use the source, Luke.
Thanks for your reply.
elleryq is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken dialog regex dicknskip Sigil 11 11-09-2012 04:01 PM
The book dialog game The Terminator Lounge 1315 10-12-2012 08:40 AM
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


All times are GMT -4. The time now is 12:23 PM.


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