question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{hitCount} not display on HitsStats | ElasticSearch 7

See original GitHub issue

Hello,

I got this bug :

image

When I change

            bemBlocks: this.bemBlocks,
            translate: this.translate,
            timeTaken: timeTaken,
            hitsCount: hitsCount,
            resultsFoundLabel: this.translate("hitstats.results_found", {
                timeTaken: timeTaken,
                hitCount: hitsCount
            })

For

            bemBlocks: this.bemBlocks,
            translate: this.translate,
            timeTaken: timeTaken,
            hitsCount: hitsCount,
            resultsFoundLabel: this.translate("hitstats.results_found", {
                timeTaken: timeTaken,
                hitCount: hitsCount.value
            })

On HitsStats.tsx line : 75

My HitCount Object :

image

I opened a pull request #697 , but it seems that your test is not running with elastic search 7

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
tatejonescommented, May 21, 2019

Thanks. The following addition to my config was made and the hit count now appears.

const host = “http://localhost:9200/” const searchkit = new SearchkitManager(host, { searchUrlPath : “_search?rest_total_hits_as_int=true”})

0reactions
joemcelroycommented, Jan 24, 2020

fixed in v2.4.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do not compute hit counts by default #33028 - GitHub
Not returning a hit count at all is problematic for traditional search UIs with pagination: say that you want to display up to...
Read more >
Having problems with hit count from OR filter - Elastic Discuss
I have the following aggregation which show all the count by values for a particular field values.
Read more >
Unable to Connect to Elasticsearch using Searchkit
Try to set index and type const searchkit = new SearchkitManager("http://localhost:9200/product-index/product");.
Read more >
searchkit/searchkit - Gitter
When i search, the results dont want be markedup (yellow) like in the ... knew why HitsStats components is rendering {hitCount} instead of...
Read more >
api documentation for searchkit (v0.10.1) - GitHub Pages
NODE_ENV?a["default"](void 0===o,'You should not "return" in a transition ... (13),s=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,p=/^0o[0-7]+$/i ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found