Maintaining index is not working!


I followed your Documentation in codeplex, and everything just fine and working perfectly except the reindex part, it is not working


its create the updated index file put when I explore it using luke tool and displays no data inside, it seems that there is something wrong in the insert index data part in the update index code, do you have any idea on whats wrong with the code ?


axe wrote May 24, 2012 at 12:18 AM

this code is not working out of the box for me either. but when I tried to fix it I immediately noticed that there is no black magic and it's totally up to you how do you define index recreation/preserve strategy.

tjaddison wrote Feb 8, 2013 at 3:14 PM

The EntityUpdateTask<T> implementation actually updates an entity because it calls the indexService.IndexEntity(..) method. The indexService.IndexEntities(..) method is what actually inserts an entity (i.e. adds new document to index).