Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

TotalMatching shows 0

Vote:
 

Hi!

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)
                .ApplyQueriedSearch(query)
                .FilterByAncestor(rootContentLink)
                .FilterByCategories(categories, categoryMatchOperator)
                .FilterForVisitor()
                .Take(1)
                .StaticallyCacheFor(TimeSpan.FromMinutes(5))
                .GetContentResult();

            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?

#193306
May 28, 2018 14:36
Vote:
 

*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.

#193615
Edited, Jun 01, 2018 10:51
Vote:
 

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

#193616
Jun 01, 2018 12:08
Vote:
 

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.

#194049
Jun 12, 2018 9:09
Vote:
 

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.

#195987
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.