|  08-01-2016, 05:54 PM | #1 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
				
				Force the indexing of a book
			 
			
			Hello, i wonder if there's any way to force the building of the index of a book? I downloaded a (large) book on my pw3 and for a lot of time i was unable to search anything on it. Any command to force this process or to show the current status? Perhaps we can make a kual extension   | 
|   |   | 
|  08-01-2016, 06:11 PM | #2 | |
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | Quote: 
 Open one of those images with KindleTool and browse the scripting for signs of an answer to your question. | |
|   |   | 
| Advert | |
|  | 
|  08-01-2016, 08:20 PM | #3 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | 
			
			Ref: /usr/share/webkit-1.0/pillow/debug_cmds.json and the scripts it calls in one of the factory_initial.bin packages used for the downgrade jailbreak (see step #3 for link to their index page). | 
|   |   | 
|  08-02-2016, 04:17 AM | #4 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
			
			Thanks, I'll give a look    | 
|   |   | 
|  08-02-2016, 06:50 AM | #5 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
			
			/usr/share/webkit-1.0/pillow/debug_cmds.json: Code: ...
    "`stopIndexing" : "/usr/local/bin/indexerstop.sh",
    "`startIndexing" : "/usr/local/bin/indexerenable.sh",
    "`disableIndexing" : "/usr/local/bin/indexerdisable.sh",
    "`indexStatus" : "/usr/local/bin/indexstatus.sh",
...  Last edited by encol; 08-02-2016 at 07:19 AM. | 
|   |   | 
| Advert | |
|  | 
|  08-02-2016, 07:49 AM | #6 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | 
			
			Something I am sure you know . . . Those scripts are not on the consumer version firmware so you will have to re-invent them for your extension so as not to re-distribute Amazon code. But they will contain the system indexer control commands. Note: Lua is pre-installed on all 5.x firmwares and you can 'exec' a Lua script from the KUAL control files rather than call a shell script. Ah... That isn't specific to Lua, KUAL control files can either call or exec any executable code, the calling an external shell script is only tradition here. Translation: If the control script is just a simple system control command - stick the system control command directly in the menu.json command line of KUAL. If the command requires arguments, use the 'params' field of menu.json command line. - - - - I.E: There is a lot of flexibility in how you chose to 'not duplicate Amazon code'.  PS: Sorry for stealing the ;log searchbar command - but we put a 'dispatcher' script on it, so you can put your 'hide books' calls into the 'dispatcher' script. I don't recall if anyone PM'd you about doing that last month, it was a hectic few days. Last edited by knc1; 08-02-2016 at 08:11 AM. | 
|   |   | 
|  08-02-2016, 03:46 PM | #7 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | |
|   |   | 
|  08-02-2016, 05:11 PM | #8 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
			
			i'm trying the commands i found in the script but, when i try to suspend the indexer: Code: lipc-set-prop -- com.lab126.indexer pauseIndexerMilliseconds 86400000 Code: 160802:230232 cvm[4818]: E IndexerThread:Error::indexer pause, unsourced, value 86400000 not supported, non-positive values clear all sourced pauses   | 
|   |   | 
|  08-02-2016, 06:17 PM | #9 | 
| Carpe diem, c'est la vie.            Posts: 6,433 Karma: 10773670 Join Date: Nov 2011 Location: Multiverse 6627A Device: K1 to PW3 | 
			
			"160802:230232 cvm[4818]: E IndexerThread:Error::indexer pause, unsourced, value 86400000 not supported, non-positive values clear all sourced pause" That sure looks like it is saying the number of milliseconds you specified is an unsupported value (probably too large). Try a smaller number. What value did the factory script use? | 
|   |   | 
|  08-02-2016, 06:27 PM | #10 | |
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | Quote: 
 I tried also smaller numbers, with no luck | |
|   |   | 
|  08-02-2016, 06:28 PM | #11 | |
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | Quote: 
 Will lipc-probe tell you what is expected as arguments? Well, now you know how to clear all other indexer pauses ( pass -1 ). Which is what you wanted, isn't it? Your topic here was: "Force the indexing of a book" So now that you have removed all reasons for the indexer to pause, I guess that is what it will do, index your book.   Last edited by knc1; 08-02-2016 at 06:30 PM. | |
|   |   | 
|  08-02-2016, 06:32 PM | #12 | |
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | Quote: 
 However, in the extension i'm writing i want to have also a button to pause the indexer  Anyone knows the difference between a "sourced" and a "unsourced" pause? | |
|   |   | 
|  08-02-2016, 06:53 PM | #13 | 
| Going Viral            Posts: 17,212 Karma: 18210809 Join Date: Feb 2012 Location: Central Texas Device: No K1, PW2, KV, KOA | 
			
			I had the same question myself when reading many lines of log messages. Since this is a multi-threaded, multi-tasked processing system and the messages aren't sequenced .... I found that it helps to sort the messages (usually by the originating task name) - - I **think** there must be an "expected from" list (sourced) and otherwise its (unsourced). Let me stress that the above is a WAFG without any testing behind it. | 
|   |   | 
|  08-05-2016, 03:41 AM | #14 | 
| Evangelist            Posts: 416 Karma: 765432 Join Date: Apr 2016 Location: Italy Device: Kindle PW3 5.8.5.0.1 | 
				
				Indexer control KUAL extension
			 
			
			I can't get indexer suspension working on my pw3, but i don't know if the problem is related to my device/fw. Indexer status and enabling seems to work, so i pubblish anyway the extension, so if someone wants to test it and report back it would be appreciated  Furthermore i don't know if eips stuff works also on KOAs | 
|   |   | 
|  | 
| Tags | 
| indexing, indexing kindle | 
| Thread Tools | Search this Thread | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Looking for an E-book Indexing / Inventory / Cataloging Program | RWood | Reading and Management | 150 | 03-30-2012 02:41 AM | 
| Book Publishers Force Down Piracy Sites | taosaur | News | 153 | 02-24-2012 11:20 PM | 
| Book indexing? | terrypin | Amazon Kindle | 6 | 06-29-2011 03:30 PM | 
| Tracking down a 'broken' indexing book | reech | Amazon Kindle | 13 | 04-05-2011 03:37 PM | 
| Book Designer 5.0 - How to force a page break | ebookfab | Sony Reader | 13 | 12-26-2008 03:48 AM |