Deletion of Index / cached pages

2 views
Skip to first unread message

Amit Kumar Verma

unread,
Aug 31, 2009, 8:54:33 AM8/31/09
to hounder
Hi Jorge,

All the modules is running smoothly, there are some FAQs, I need to
ask :

1. How to delete specific entries from index/ pages.
2. How to delete entire index / cache.


Thanks,
-amit

Jorge Handl

unread,
Aug 31, 2009, 1:19:06 PM8/31/09
to hou...@googlegroups.com
If you just want to casually delete a couple of documents from the index you can use "./idx delete <idxDir> <field> <value>" in the indexer directory, it will delete all documents that match the given value in the given field. To do it more systematically you need to talk to the indexer via RMI or XML/RPC and send it a "documentDelete" document.

If you need to delete the entire index, stop the indexer, remove the "indexer/indexes" directory and start it again.

- Jorge

v amit

unread,
Sep 1, 2009, 6:33:50 AM9/1/09
to hounder

Hi Jorge,

I would also like to know how to delete the crawler cache and the
fetch list.
Basically i want to reset whole application as fresh one without re-
installing it.


Thanks,
-amit


On Aug 31, 10:19 pm, Jorge Handl <jha...@gmail.com> wrote:
> If you just want to casually delete a couple of documents from the index you
> can use "./idx delete <idxDir> <field> <value>" in the indexer directory, it
> will delete all documents that match the given value in the given field. To
> do it more systematically you need to talk to the indexer via RMI or XML/RPC
> and send it a "documentDelete" document.
>
> If you need to delete the entire index, stop the indexer, remove the
> "indexer/indexes" directory and start it again.
>
> - Jorge
>

Jorge Handl

unread,
Sep 1, 2009, 7:43:21 AM9/1/09
to hou...@googlegroups.com
Hi Amit,

To reset the crawler you need to remove several bits of data. 
Stop it (or kill it) and run the following command:

     rm -fr pagedb catch* cache progress*

Then re-create the initial pagedb with the following command:

     createPageDb.sh

- Jorge
Reply all
Reply to author
Forward
0 new messages