SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye

Welcome, Guest
Guest Settings
Help

Compass Support Forums » Compass » Compass Users

Thread: getting status information of the indexes / purging index

This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: Feb 9, 2008 10:44 AM Last Post By: Shay Banon
darthvader

Posts: 8
Registered: 6/26/06
getting status information of the indexes / purging index
Posted: Feb 9, 2008 5:02 AM
 
  Click to reply to this thread Reply
Is there a way to access status information regarding the indexes, e.g.
  • number of resources stored in the index (or subindex)
  • size of the index
  • average search time

Furthermore, is there a way to purge the whole index?

Regards,
Stefan
Shay Banon

Posts: 4,028
Registered: 9/6/05
Re: getting status information of the indexes / purging index
Posted: Feb 9, 2008 10:44 AM   in response to: darthvader in response to: darthvader
 
  Click to reply to this thread Reply
At the end of the day, a sub index is a Lucene index, and there are several options for you to get the number of documents/resources in it. You can use LuceneHelper and get the index reader out of it, and from the there, its doc count.

I am not sure that I understand what you mean by size? Do you mean the size of the index is bytes?

Regarding purge, do you mean delete the index? You can get the SearchEngineIndexManager from Compass instance and then call deleteIndex on it.
Legend
Guru: 2001 + pts
Expert: 501 - 2000 pts
Super-star: 101 - 500 pts
Assistant: 51 - 100 pts
Participant: 0 - 50 pts
Helpful Answer (5 pts)
Correct Answer (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums