Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2012, 05:57 PM   #46
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
Thanks for the feed-back.

I tried now a few nonsensical searches. It takes three minutes for each search, with 2000 books and 35 collections, from the collections home page. The /system/Search Indexes folder has two files, index.db (1.9 MB) and index.lg (8 bytes). If a search returns nonempty results, then it does this, as you say, very fast indeed.

Last edited by hfpop; 01-11-2012 at 06:16 PM.
hfpop is offline   Reply With Quote
Old 01-12-2012, 05:56 PM   #47
inameiname
Groupie
inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.
 
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
Quote:
Originally Posted by hfpop View Post
Thanks for the feed-back.

I tried now a few nonsensical searches. It takes three minutes for each search, with 2000 books and 35 collections, from the collections home page. The /system/Search Indexes folder has two files, index.db (1.9 MB) and index.lg (8 bytes). If a search returns nonempty results, then it does this, as you say, very fast indeed.
Oh so its quick when its a nonempty resulted search; otherwise it takes 3 minutes each? That does seem a bit long.
inameiname is offline   Reply With Quote
Old 01-13-2012, 10:49 AM   #48
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
Quote:
Originally Posted by inameiname View Post
Oh so its quick when its a nonempty resulted search; otherwise it takes 3 minutes each? That does seem a bit long.
I removed the index file altogether, reset the collections and recreated them clean from the PC, and after the first search (when it takes a long time, of course), both kinds of results show in a matter of seconds.

It looks like when changing the files structure from the PC, we need to take care as well about this index.

Thanks for the feed-back.
hfpop is offline   Reply With Quote
Old 01-13-2012, 03:01 PM   #49
inameiname
Groupie
inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.
 
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
Quote:
Originally Posted by hfpop View Post
I removed the index file altogether, reset the collections and recreated them clean from the PC, and after the first search (when it takes a long time, of course), both kinds of results show in a matter of seconds.

It looks like when changing the files structure from the PC, we need to take care as well about this index.

Thanks for the feed-back.
Oh ok, good.

Ah, well Idk about that, but I can understand if you alter where books are via the PC, it could cause issue with how they are indexed.

Anyway, that is good you got it figured out.
inameiname is offline   Reply With Quote
Old 01-13-2012, 08:20 PM   #50
hfpop
Addict
hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.hfpop knows how many angels can dance on the head of a pin.
 
Posts: 250
Karma: 136662
Join Date: Apr 2011
Device: N/A
Another question, please.

Does stopping the indexing service interfere with the dictionary use? The dictionary I was using is accepted by Menu/Settings/Menu/Change Main Dictionary, but when using the dictionary option, instead of the explanation in this dictionary, I get the explanation of the English dictionary.

Of course, the only thing indexed now is the list of books and collections.
hfpop is offline   Reply With Quote
Old 01-14-2012, 06:48 AM   #51
inameiname
Groupie
inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.inameiname can self-interpret dreams as they happen.
 
Posts: 159
Karma: 20390
Join Date: Feb 2009
Device: none
Quote:
Originally Posted by hfpop View Post
Another question, please.

Does stopping the indexing service interfere with the dictionary use? The dictionary I was using is accepted by Menu/Settings/Menu/Change Main Dictionary, but when using the dictionary option, instead of the explanation in this dictionary, I get the explanation of the English dictionary.

Of course, the only thing indexed now is the list of books and collections.
Hmm, not sure about that. I rarely use the built-in dictionary, let alone use another, so I cannot really tell you.

I guess if it works with the English dictionary that is built-in, but not the custom one you use, the easiest sure-fire way of knowing if the indexing has anything to do with it would be to uninstall the indexing hack, let it index completely again (ie, create the huge file(s) in the index folder with all of the words on all of your books), and then see if it still defaults to the English dictionary.

Fortunately, if you sue my two scripts I made for this hack, it would be easy to test, and then revert back to using the script.

Finally, I do not really know why the lack of indexing would cause problems with using your custom dictionary. I mean if it works with the default English one, Idk why it wouldn't with your custom, so long as you have that one set, as before the hack. Just my opinion. Again, I haven't used the dictionary feature enough to be an expert.
inameiname is offline   Reply With Quote
Old 04-02-2012, 12:13 PM   #52
shane51
Junior Member
shane51 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
Unhappy

Quote:
Originally Posted by statethatiamin View Post
Hi all,


The indexing is controlled by a flag in the file /opt/amazon/ebook/bin/start.sh on line 176:
-DENABLE_SEARCH_INDEXING_THREAD=true \

I hope some of you guys will find it useful.

Cheers!
I have a prolem...It seems My KT doesn't have start.sh under /opt/amazon/ebook/bin/, or I made a Big Mistake that I deleted it , oh ,please Help me. do you have any copy of the start.sh file??

Last edited by shane51; 04-02-2012 at 12:25 PM.
shane51 is offline   Reply With Quote
Old 04-02-2012, 12:29 PM   #53
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
This thread is about Kindle 3. The Kindle Touch is a completely different device, and the mentioned start.sh indeed does not exist.

Take a look at /etc/upstart/framework.
ixtab is offline   Reply With Quote
Old 04-02-2012, 12:37 PM   #54
shane51
Junior Member
shane51 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
This thread is about Kindle 3. The Kindle Touch is a completely different device, and the mentioned start.sh indeed does not exist.

Take a look at /etc/upstart/framework.
o,Thanks a lot

Last edited by shane51; 04-02-2012 at 12:45 PM.
shane51 is offline   Reply With Quote
Old 04-02-2012, 12:56 PM   #55
shane51
Junior Member
shane51 began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Apr 2012
Device: Kindle Touch
Quote:
Originally Posted by ixtab View Post
This thread is about Kindle 3. The Kindle Touch is a completely different device, and the mentioned start.sh indeed does not exist.

Take a look at /etc/upstart/framework.
great!I find the -DENABLE_SEARCH_INDEXING_THREAD=true \ in framework
Thank you so much!
shane51 is offline   Reply With Quote
Old 05-01-2012, 12:21 PM   #56
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
My k3 is brick because i use this command

first
shift D I I with launchpad
then
;debugon
~disableindexing

Then i restart k3,it stop at the 45% loading bar.Even i return to factory it still stop at there.
So i think i should resumeindexing then maybe my kindle will be ok.
but where to set ,or which file should be change,Does anyone here know how to do this?

and I think my file start.sh is wrong now ,can some paste the file here?

(fortunately my launchpad still alive and i have a terminal in kindle . i can load duokan system,but still can not access the original system)
xueyou2 is offline   Reply With Quote
Old 05-01-2012, 12:56 PM   #57
geekmaster
Carpe diem, c'est la vie.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by xueyou2 View Post
My k3 is brick because i use this command

first
shift D I I with launchpad
then
;debugon
~disableindexing

Then i restart k3,it stop at the 45% loading bar.Even i return to factory it still stop at there.
So i think i should resumeindexing then maybe my kindle will be ok.
but where to set ,or which file should be change,Does anyone here know how to do this?

and I think my file start.sh is wrong now ,can some paste the file here?

(fortunately my launchpad still alive and i have a terminal in kindle . i can load duokan system,but still can not access the original system)
~disableindexing just runs a script. If you have a terminal, you should be able to run the script manually to turn indexing back on. Also, with debug on, you are doing a lot of extra logging that consumes storage space. You should turn it off immediately after running a command in the search bar.
geekmaster is offline   Reply With Quote
Old 05-01-2012, 09:38 PM   #58
xueyou2
Connoisseur
xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.xueyou2 can eat soup with a fork.
 
Posts: 58
Karma: 9096
Join Date: Apr 2012
Device: none
Quote:
Originally Posted by geekmaster View Post
~disableindexing just runs a script. If you have a terminal, you should be able to run the script manually to turn indexing back on. Also, with debug on, you are doing a lot of extra logging that consumes storage space. You should turn it off immediately after running a command in the search bar.
YEs,geekmaster.
The problem is that i do not know how to write the script.
Do you know how to write this.
Just last night i copy backup file to /mnt/us then i can run launchpad and other app.
The system is part of intact i think.
xueyou2 is offline   Reply With Quote
Old 05-02-2012, 08:58 AM   #59
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by xueyou2 View Post
YEs,geekmaster.
The problem is that i do not know how to write the script.
Do you know how to write this.
Just last night i copy backup file to /mnt/us then i can run launchpad and other app.
The system is part of intact i think.
You don't have to write it, just run it from the command line terminal.
knc1 is offline   Reply With Quote
Reply

Tags
battery life, disable, improvement, index, indexing


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iLiad iLiad Battery Hacks: Part 2 -- 35 hours of battery life! A how-to guide. jharker iRex Developer's Corner 107 11-15-2013 09:15 AM
O Battery life, battery, wherefore art thou, battery life? DeusExMe Amazon Kindle 30 02-21-2012 07:28 PM
Battery no longer holds charge wpeace Astak EZReader 9 11-13-2010 12:28 AM
battery life (not charge life) soondai Amazon Kindle 12 09-11-2010 07:37 AM
Battery life, indexing, and corrupt files cathyWeeks Amazon Kindle 5 01-13-2008 05:56 PM


All times are GMT -4. The time now is 01:43 PM.


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