Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

How do I get status whether file got indexed or not - SearchUnit - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
Bharati
#1 Posted : Thursday, May 26, 2016 2:44:47 PM
Rank: Newbie

Groups: Registered

Joined: 10/14/2015
Posts: 7
Location: Pune
How can I check if the keyoti has finished indexing a file which I added to the queue. I want to encrypt the file after indexing.
Jim
#2 Posted : Thursday, May 26, 2016 5:56:10 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
Location: Canada
In our AsynchronousQueue class the QueueForIndexing method has an event handler argument that you can use to receive an event when the queue is empty, eg.

Code:

AsynchronousQueue.QueueForIndexing( document, (object sender, EventArgs e) => {
//do what you want to do here
});


I think you have your own custom implementation of our queue class, so you should be able to do this: you can call DocumentIndex.GetDocument(documentURI), but...

-make sure the DocumentIndex instance is the same one already working on the queue.
-this method is not trivial in terms of time complexity, so don't call it repeatedly (ie. don't poll it continuously)


Jim
-your feedback is helpful to other users, thank you!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.