Unpulish publish and then unpublish page does not remove indexed document properly

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
10/17/2013 8:07:57 AM
Gravatar
Total Posts 7

Unpublish publish and then unpublish page does not remove indexed document properly

Hi Joe,

I would like to report a bug as below.

When any page unpulished, published and then unpublished, lucene  does not remove indexed documents properly. For example page has 10 documents, it deletes first 5 and last 5 are remained undeleted. Reason and correction mentioned below.

Project\CMS.Business.WebHelpers\Search\IndexHelper.cs

In below function

private static bool ClearPageIndex(PageSettings pageSettings){

Instead of

for (int i = 0; i < reader.NumDocs(); i++){

}

should be

int tot = reader.NumDocs();

for (int i = 0; i < tot; i++)

{

}

 

}

 

10/17/2013 3:43:01 PM
Gravatar
Total Posts 18439

Re: Unpulish publish and then unpublish page does not remove indexed document properly

Hi,

Ok, thanks! I will make the change that you recommended.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.