![]() |
#1 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire and Kindle Fire HDX
|
Title search problem (spin off of another post)
I recently posted a problem of not getting the results I expected doing a title search. fortunately the knowlegeable and helpful people on this board were able to show me what I was doing wrong.
However, now i've run into another problem. I discussed this in a follup-up to my other post, but i'm hoping that starting a new thread might catch more eyes for a quicker answer My search query is title:"raw" My goal is to have the books with the word raw in the title. It does give me the books i want, but others i dont want. It gives me raw, draw, rawhide, overdrawn, ect. How to I get the search to include the word "raw" but not words that contain the letters r a w. I thought the quotes would do the trick, but it hasn't. Here is a link to a screenshot of my query and results. Sorry for the low resolution. Items 23 and 24 in the list show examples of unwanted items. http://www.flickr.com/photos/67955435@N06/11863157136/ Thank you! Lisa |
![]() |
![]() |
![]() |
#2 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
doesn't title:"=raw" work ? IMO it should To add an attachment here, Click Manage Attachments (its below the compose message window) then see picture ![]() One. Browse to your attachment(s) Two. Click Upload and wait until it displays the filenames Three. Click Close Window BR |
|
![]() |
![]() |
![]() |
#3 | |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire and Kindle Fire HDX
|
Quote:
The search query title:"=raw" wants books where the title is nothing other than the word raw, rather than a title with the word raw in it. I get a message that no results are found, because I dont own a book titled "raw". I have raw veggies, raw fruit dishes, etc. but not just raw. There must be an advanced search query that returns the books that have the word raw in the title, but not the letters r a w in another word in the title. I read the entire manual and it didn't solve my issue. The pic. of my issue should be attached. |
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire and Kindle Fire HDX
|
I just again tried title:"=raw" and the results are:
"The search found no books mathing this title so the search result will be empty. Do you really want to use this search?" |
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Of course
![]() what you want is a contains whole word search, looks like there isn't a direct method which means regular expression I don't use calibres re, but elsewhere I would use \braw\b - the \b is a word boundary marker, which should take care of punctuation and space. BR |
![]() |
![]() |
![]() |
#6 | |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire and Kindle Fire HDX
|
Quote:
![]() ![]() Can you give me an example - by writing out how you would change This search Title:raw or Title:"raw" to incorporate what you are trying to say? Perhaps something I can cut and paste ![]() Thank you. |
|
![]() |
![]() |
![]() |
#7 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Huh, I just answered this at your original thread:
|
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire and Kindle Fire HDX
|
THAT WORKED!!!
![]() ![]() You ARE amazing. This has been bugging me for months. Okay..... I know that your copied and pasted search was/is correct, but how can i apply it to other searches - for a different title or author, etc. What is the "formula" (probably not the right word) that I use, or simply - how do I do it? |
![]() |
![]() |
![]() |
#9 |
Ex-Helpdesk Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
you can learn all about regular expressions at http://www.regular-expressions.info
you search a particular field -- say, authors or title -- by starting with the name of the field, followed by ":" as in our previous case, search title for "raw", we used "title:" next comes the search term, enclosed in quotes. title:"raw" will search for "raw", title:"~raw" wil search for the REGEX of "raw". Using the regex symbol "\b" we match word boundaries. So to find an author that includes the name "John" we search for Code:
authors:"~\bJohn\b" Code:
authors:"John" meta-field:"meta-value" -- search for anything that includes "meta-value" matching within (limited to) type (column) "meta-field". meta-field:"=meta-value" -- search for the exact value "meta-value" limited to type (column) "meta-field" meta-field:"~meta-value" -- search for the regex "meta-value" that matches within (limited to) type (column) "meta-field" AND/OR/NOT/AND NOT/OR NOT can be used to search for multiple things at the same time, they are your standard boolean search operators. |
![]() |
![]() |
![]() |
#10 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,062
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:
The \b is a blank (I might make the first one \b* to mean 0 or 1 Blanks in case it is the first word) (\b|^) might be better as it means Blank or start of line raw well that is a guess ![]() The last \b is a trailing blank (a space or Eol must follow) Last edited by theducks; 01-09-2014 at 11:07 PM. Reason: BR pointed my error |
|
![]() |
![]() |
![]() |
#11 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
Basically you put \b (boundary marker) at the start and end of the whole word(s) you want match You get to see the resultant search term in the search bar when you hit OK - its a good way to learn The example in the attachment is of course silly, but maybe not if you changed it to (title:"~\bsyllabub\b") or (author:"~\bBeeton\b") or (comments:"~\bdinner party\b and "fish"") BR
![]() Last edited by BetterRed; 01-09-2014 at 10:48 PM. |
|
![]() |
![]() |
![]() |
#12 | |
Enthusiast
![]() Posts: 33
Karma: 10
Join Date: Mar 2013
Device: Kindle Fire and Kindle Fire HDX
|
Quote:
Thank you. I truly appreciate all the help you've given me. I haven't had the time to learn the details about regex searches, but I will. For now, the /b "boundary marker" feature you showed me works wonderfully and has saved me a lot of time. Best wishes for the new year! Lisa |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Title search in calibre | llam | Library Management | 2 | 02-24-2013 01:47 PM |
Book Title Search ? | mXb | Library Management | 2 | 10-28-2012 12:02 PM |
Problem using 'Advanced Search' with 'Search in Forum' | Wetdogeared | Feedback | 6 | 06-21-2011 09:37 AM |
Cleaning Title Names using Search and Replace | JTAL604622 | Calibre | 2 | 05-24-2011 05:23 AM |
Search for Author, Title is not working ... | Kilowatt | Calibre | 13 | 10-10-2010 02:00 PM |