Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

TotalMatching shows 0



I am new to Find, and I have recently taken over a solution based on Find. We are experiencing a problem with a counter, that works on and off.

 IContentResult result = _findClient.Search(Language.Norwegian)
                .FilterByCategories(categories, categoryMatchOperator)

            return result.TotalMatching;

The property "TotalMatching" shows either correct number, or 0, on and off. The indexing job goes every 2nd hour.

Does anyone have a clue what might be wrong?

May 28, 2018 14:36

*bumping this*

The search results show 0 hits on and off, any clue? We have turned off the indexing job, since this shouldn't be necessary and might also be causing problems.

Edited, Jun 01, 2018 10:51

I do not know why it is like that, but if you can reproduce it locally I would have had Fiddler to log the request to Find for both when it returns 0 and when it's not.

Then you could compare if you see any difference in the request

Jun 01, 2018 12:08

We have isolated the issue to be caused by wrong access rights in the Find index. Just when the index job has run, the access rights contains "RolesWithReadAccess": "Everyone". But after a while(about 2 hours), this changes and "Everyone" is removed from the RolesWithReadAccess. What could cause this? We have found no scheduled jobs that should do this.

Jun 12, 2018 9:09

FYI: We are not sure what was the cause or what fixed this, it seems to have been some bug with the find index. The last thing we did, was to set the ContentBatchSize to 10 and cleared the index from Find configuration. Then we reeindexed everything, and it is now stable.

Aug 15, 2018 7:42
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.