Skip to content

something is empty in search resultlist #425

@magicds

Description

@magicds

Description

The search drop-down box does not display the content correctly.

Expected behavior

It should be like this:

image

Current behavior

vuepress

image

docs-searchbar.js

image

Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.

  1. During the search, data was retrieved but not displayed
    image

  2. At first I thought it was my data problem, but I had the same problem using docs-scraper to grab docs.meilisearch.com documents.

docker code :

docker run -it --rm \
  --network=host \
  -e MEILISEARCH_HOST_URL=http://127.0.0.1:7700 \
  -e MEILISEARCH_API_KEY=zxczxc\
  -v /root/meilisearch/docs-scraper-config2.json:/docs-scraper/config.json \
  getmeili/docs-scraper:latest pipenv run ./docs_scraper config.json

config:

{
    "index_uid": "docs",
    "sitemap_urls": ["https://docs.meilisearch.com/sitemap.xml"],
    "start_urls": ["https://docs.meilisearch.com"],
    "selectors": {
      "lvl0": {
        "selector": ".sidebar-heading.open",
        "global": true,
        "default_value": "Documentation"
      },
      "lvl1": ".theme-default-content h1",
      "lvl2": ".theme-default-content h2",
      "lvl3": ".theme-default-content h3",
      "lvl4": ".theme-default-content h4",
      "lvl5": ".theme-default-content h5",
      "text": ".theme-default-content p, .theme-default-content li"
    },
    "strip_chars": " .,;:#",
    "scrap_start_urls": true,
    "custom_settings": {
      "synonyms": {
        "relevancy": ["relevant", "relevance"],
        "relevant": ["relevancy", "relevance"],
        "relevance": ["relevancy", "relevant"]
      }
    }
}

Environment (please complete the following information):

  • OS: [ Linux CentOS]
  • MeiliSearch version: [docker last v.0.22.0]
  • docs-scraper version: [docker last 815baa3fc4fd v.0.10.5]
  • docs-searchbar.js version: [v1.1.11 ~ v1.3.2]
  • Browser: [Chrome version 93.0.4577.82] [Microsoft Edge 93.0.961.52]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions