Skip to content

RetrievalIndexer: purge index

loic911 edited this page Nov 24, 2014 · 2 revisions

Purge index

An indexer is a little client that add/delete pictures on a specific server. The indexer can purge, list images and storages too.

Presentation

The purge method remove image data from retrieval index. Its an heavy operation but, if you delete a lot of images, it reduce the size of the index and improve performance. For performance reason, the delete method just remove image from results, it doesn't remove image data from index. The purge method browse each index entry and check if a previous deleted image is in the entry value.

Execute

./purger.sh host port

Example:

./purger.sh localhost 1234

See the indexer Constructor from RetrievalIndexer section. The method is:

public void purge()

Parameters/Config

index name description type
0 Host A RetrievalServer host String
1 Port A RetrievalServer port Integer
2 Picture URI An image URI (File or URL) String