Topic on Extension talk:CirrusSearch

Search result: totalhits count is miss matched from total result row

4
147.1.18.25 (talkcontribs)

Result miss match.

Need some help here, totalhits count is miss matched from total result row, could you please help me here? why this is different is there any confirmation need to run or set?

{

    "batchcomplete": "",

    "warnings": {

        "search": {

            "*": "Unrecognized value for parameter \"srnamespace\": LL:."

        }

    },

    "query": {

        "searchinfo": {

            "totalhits": 6

        },

        "search": [

            {

                "ns": 3024,

                "title": "Debris Gas System",

                "pageid": 6048,

                "size": 2243,

                "wordcount": 291,

                "snippet": "Debris was found in the fuel gas system",

                "timestamp": "2018-10-24T17:46:48Z"

            },

]

}

}

DCausse (WMF) (talkcontribs)

totalhits is the total number of hits found in elasticsearch, it might vary from what you see for multiple reasons:

  1. the number of pages returned is controlled by a limit param (e.g. srlimit), in your example if you've set srlimit=1 this result looks perfectly normal
  2. the index is not up to date, if for some reasons the process responsible for keeping the index up to date did not function properly then some pages that have been deleted might be in the elasticsearch index but are filtered-out when displaying the results back to the user leading to such inconsistencies in totalmatch and what you could see in the results.

If you believe you are affected the second point try to re-sync your index using the maintenance/saneitize.php (or Saneitize.php if using a recent version of CirrusSearch). If this fixes the issue you should try to understand what happened so that it does happen again.

Rajeshrajesh.35 (talkcontribs)

@DCausse (WMF) - Thanks for your response.


I couldn't found the saneitize.php, i would like to inform you i am using MW-1.31

DCausse (WMF) (talkcontribs)
Reply to "Search result: totalhits count is miss matched from total result row"