Join us this Friday for AI in Action at the Virtual Happy Hour! This free virtual event is open to all—enroll now on Academy and don’t miss out.

 

How to force reset the Lucene searchindex (Episerver 10.4.3)

Vote:
 

I need to reset the index, but it just won't build it.

I've tried this 

var indexes = SearchHandler.Instance.GetNamedIndexes();
foreach(var index in indexes)
{
     SearchHandler.Instance.ResetIndex(index);
}

This seems to start the indexing process, but I use Luke to explore the index and only one document seems to be indexed. Nothing in any logs what I can see.

Also, if I republish a page. I can see that appears in the index a few seconds after publish

Any suggestions? Is there anyway to trigger a full reindex of the site?

#183086
Oct 04, 2017 18:25
Vote:
 

That is the correct way of doing it as far as I know.

I am having a related issue, after installing Episerver.Search to an old upgraded site the index isn't populated. When I publish a specific content that one is indexed, but there is no full index done of existing content. The [dbo].[VW_EPiServer.Core.IndexingInformation] database view remains empty.

CMS v10.10.1; Commerce v11.2.5; Search v8.1.0

#183119
Oct 05, 2017 14:22
Vote:
 

My bad.

Are you referring to the CMS or Commerce index?

The CMS index is the one i am trying to get to work and for that it is:

var searchHandler = ServiceLocator.Current.GetInstance<ContentSearchHandler>();
searchHandler.ReIndex();
#183126
Oct 05, 2017 15:20
Vote:
 

Ok! Thank you. It's the CMS-index. I'll give that a try

#183127
Oct 05, 2017 15:34
Vote:
 

Yes, works! Thanks a lot

#183143
Oct 05, 2017 17:12
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.