Skip to content

UI not showing all results #15

@nneves

Description

@nneves

Results COUNT and visual UI card items do not match, mostly due to the lack of PAGINATION support.

To debug this, run a manual query to CouchDB using CURL command:

curl -X GET --silent http://localhost:5984/_fti/local/searchengine/_design/search/by_content\?q\=javascript\&include_docs\=false | jq .

It will return the following object:

{
  "limit": 25,
  "etag": "f8a5118552",
  "fetch_duration": 1,
  "q": "default:javascript",
  "search_duration": 1,
  "total_rows": 530,
  "skip": 0,
  "rows": [
    {
      "id": "http-webdriver-io-webdriverio-selenium-2-0-javascript-bindings-for-nodejs/2017-04-23T01:55:25.731Z",
      "score": 0.8936224579811096
    },
    {
      "id": "https-packagecontrol-io-search-javascript-javascript-search-package-control/2017-04-23T01:57:40.765Z",
      "score": 0.6582151651382446
    },
    {
      "id": "https-www-javascript-com-resources-resources-javascript/2017-04-23T00:07:32.189Z",
      "score": 0.6515997052192688
    },
    {
      "id": "https-github-com-airbnb-javascript-tree-master-packages-eslint-config-airbnb-javascript-packages-eslint-config-airbnb-at-master-\n-airbnb-javascript-github/2017-04-22T23:57:20.347Z",
      "score": 0.4969415068626404
    },
    {
      "id": "https-egghead-io-courses-javascript-arrays-in-depth-understand-javascript-arrays\n\n-course-by-shaneosbourne-eggheadio/2017-04-22T23:37:26.031Z",
      "score": 0.4706122577190399
    },
    {
      "id": "https-plot-ly-javascript-plotly-js-javascript-graphing-library/2017-04-23T05:01:13.263Z",
      "score": 0.46393659710884094
    },
    {
      "id": "https-www-airdroid-com-source-bonus-googleplus-airdroid-delight-your-multi-screen-life/2017-04-23T05:32:25.192Z",
      "score": 0.4468112289905548
    },
    {
      "id": "https-github-com-gridcontrol-gridcontrol-github/2017-04-23T05:03:29.883Z",
      "score": 0.4027501940727234
    },
    {
      "id": "https-github-com-airbnb-javascript-comparison-nested-ternaries-github-airbnb-javascript-javascript-style-guide/2017-04-22T23:50:09.020Z",
      "score": 0.3643444776535034
    },
    {
      "id": "https-www-pluralsight-com-courses-javascript-practical-design-patterns-practical-design-patterns-in-javascript-pluralsight/2017-04-23T00:37:36.773Z",
      "score": 0.3508971929550171
    },
    {
      "id": "https-egghead-io-lessons-javascript-catching-javascript-mistakes-with-typescript-catching-javascript-mistakes-with-typescript-typescript-video\n-tutorial-free-eggheadio/2017-04-22T23:47:58.953Z",
      "score": 0.3447941541671753
    },
    {
      "id": "https-horizon-io-horizon-the-realtime-open-source-javascript-backend/2017-04-23T01:10:52.776Z",
      "score": 0.3447941541671753
    },
    {
      "id": "http-www-skyscanner-pt-pardon-our-interruption/2017-04-22T23:34:05.551Z",
      "score": 0.31594324111938477
    },
    {
      "id": "https-gist-github-com-imdwit-4889d16087b6ebe7821f-learn-full-stack-javascript-web-development-for-free-using-resources\n-like-youtube-udacity-and-nodeschool-github/2017-04-23T00:27:27.878Z",
      "score": 0.31249624490737915
    },
    {
      "id": "https-quay-io-repository-coreos-discovery-etcd-io-tag-latest-quay/2017-04-23T02:57:30.281Z",
      "score": 0.2978741526603699
    },
    {
      "id": "https-quay-io-repository-coreos-discovery-etcd-io-quay/2017-04-23T03:01:23.430Z",
      "score": 0.2978741526603699
    },
    {
      "id": "http-davidwalsh-name-open-graph-data-nodejs-get-open-graph-data-with-node-js/2017-04-23T01:03:38.426Z",
      "score": 0.27645033597946167
    },
    {
      "id": "http-www-codecademy-com-learn-learn-angularjs-learn-angularjs-1-x-codecademy/2017-04-22T22:29:05.148Z",
      "score": 0.27361488342285156
    },
    {
      "id": "https-packagecontrol-io-packages-babel-babel-packages-package-control/2017-04-23T01:57:47.721Z",
      "score": 0.26850011944770813
    },
    {
      "id": "http-learnxinyminutes-com-docs-javascript-learn-javascript-in-y-minutes/2017-04-23T00:21:27.409Z",
      "score": 0.26736822724342346
    },
    {
      "id": "https-webtask-io-webtask/2017-04-23T00:13:18.654Z",
      "score": 0.2632860243320465
    },
    {
      "id": "https-stateofdev-com-c-backend-backend-state-of-dev/2017-04-23T00:33:54.995Z",
      "score": 0.2632860243320465
    },
    {
      "id": "https-support-saucelabs-com-customer-portal-articles-2005366-routing-all-protractor-traffic-through-sauce-connect-the-page-you-were-looking-for-doesn-t-exist-sauce-labs/2017-04-22T22:28:16.463Z",
      "score": 0.26063987612724304
    },
    {
      "id": "https-github-com-showcases-tools-for-open-source-tools-for-open-source-github/2017-04-23T00:36:19.096Z",
      "score": 0.26063987612724304
    },
    {
      "id": "https-github-com-nackjicholson-generator-react-hapi-universal-readme-github-nackjicholson-generator-react-hapi-universal-scaffold-a\n-universal-javascript-app-using-react-and-hapi/2017-04-23T01:52:41.758Z",
      "score": 0.24698421359062195
    }
  ]
}

From the CouchDB response there is a dafault value for the result limit "limit": 25, this explains why there are only 25 items in the rows array.

This issue should be fixed together with #11 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions