10-12-2017, 03:44 PM | #211 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
If you don't understand the #9 and what it does, then it is because you have not analyzed the image attached way above that shows an example of what you are doing. It has 4 images from left to right. It is also because you have not read the ToolTips for the widgets in general, and the one that has a "9" in particular. Whether some are http or https does not at all matter, since the regular expression handles both. Please read the ToolTips in MCS, plus all of my previous posts about this. DaltonST |
|
10-12-2017, 04:02 PM | #212 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
It now finds books, except it finds all the books in the library instead of just the ones where the url in the text-file matches the id-number.
It even matches those books which has no id-number. In my custom column for the story_url I don't have the Story URL: only https://www.fanfiction.net/s/7347050/1/ |
Advert | |
|
10-12-2017, 04:14 PM | #213 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Quote:
The screenprint shows that your "new" search query regular expression has an error again. Change it to: Code:
https://www.fanfiction.net/s/[0-9][0-9][0-9]+/|http://www.fanfiction.net/s/[0-9][0-9][0-9]+/ DaltonST |
|
10-13-2017, 01:46 AM | #214 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I've read every tool tip in the image and the one in the large field in MCS. In the image example (and the tool tip) you have this version of the search:
Code:
https://www.fanfiction.net/s/[0-9]+/[0-9]/|http://www.fanfiction.net/s/[0-9]+/[0-9] Code:
[0-9][0-9][0-9]+/ http://www.fanfiction.net/s/3507422/1/ Does the number 9 in the MCS Regular Expression Tab tell it to match the entire string of numbers? |
10-13-2017, 05:45 AM | #215 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
See the attached example that I just created to answer your question.
I highly recommend that you personally use https://pythex.org/ to learn how regular expressions work. DaltonST |
Advert | |
|
10-13-2017, 06:15 AM | #216 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I've added this to the regular expression tab in #9:
Code:
[0-9][0-9][0-9]+ Code:
https://www.fanfiction.net/s/[0-9][0-9][0-9]+/|http://www.fanfiction.net/s/[0-9][0-9][0-9]+/ I haven't added the story_url or anything else, only the Story_ID to test if it can be found, but I still get nothing. I'm sorry to be such a bother. I have looked at the site and I understand at least that [0-9][0-9][0-9]+/ only extract the number. |
10-13-2017, 10:40 AM | #217 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
I copied exactly what you used in your screenprints, and I successfully matched #story_id (a long-text, like comments CC interpreted like short-text, like a title) and updated #story_url (a long-text, like comments CC interpreted like short-text, like a title) all 20 TXT format ebooks that you gave me as test data. It is perfect.
What you did not attach was a screenprint of your Calibre library data showing what it was looking for, plus proof that you are searching TXT formats and not EPUB formats. Verify that your #story_id CC is an appropriate textual CC. My test results per your last post #216 from this morning are attached. They are perfect. DaltonST |
10-13-2017, 10:57 AM | #218 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I've sent you a PM with a copy of the library.
|
10-13-2017, 11:37 AM | #219 | |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
The problem is that the #story_id custom column is a comma-separated "Tag" type, rather than a simple plain-text type. An ID is unique to a book, and not generic like Tags are. Story IDs are unique, and each book can have only one (1) of them, so it really should not be a Tag-type, but a simple plain-text type. That is why ISBN is not a Tag, but a textual Identifier.
Test results: Quote:
I will upload a new version later today. DaltonST |
|
10-13-2017, 11:42 AM | #220 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I need it to be a tag column because when I merge the same story from different archives it has to stay as separate tags.
|
10-13-2017, 01:19 PM | #221 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Version 1.0.74 Full-Text Search enhancements for Tag-like Custom Columns
Version 1.0.74 - 13 October 2017 Full-Text Search enhancements for Tag-like Custom Columns to be updated by merging existing values with the new final search value. There can be no duplicates, of course, just as for real Tags.
DaltonST |
10-13-2017, 01:39 PM | #222 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Can you send me back a version of my library where it works, because even though I've updated the plugin I still get nothing.
|
10-13-2017, 01:47 PM | #223 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
I used the library you gave me as-is. I changed nothing. I would just be sending back what you already have.
The MCS preferences are Calibre-wide, not specific to a particular library. When I opened your library, my MCS still had my settings from before. Look at the attachment from my post this morning of #217. Your settings should be those, since those are what you were using. DaltonST |
10-13-2017, 01:59 PM | #224 |
Deviser
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
|
Attached is your Library you gave me updated by me.
I first updated Story URL, and then updated Story ID both with MCS and Mass Edit to add test tags. |
10-13-2017, 02:00 PM | #225 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
My mistake, I hadn't noticed that the regular expression wasn't saved.
It now works. Thank you so much for your patience. |
Tags |
columns, search |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Search the Internet | kiwidude | Plugins | 434 | 09-30-2024 03:04 AM |
[GUI Plugin] Clipboard Search | kiwidude | Plugins | 29 | 04-02-2024 10:05 PM |
[GUI Plugin] Walk Search History | kiwidude | Plugins | 38 | 03-17-2024 12:47 AM |
[GUI Plugin] Recoll Full Text Search | Satas | Plugins | 16 | 08-05-2016 03:54 AM |
[GUI Plugin] Full Text Search (SOLR) | peterpisljar | Plugins | 2 | 08-09-2015 08:16 AM |