Giter Site home page Giter Site logo

Comments (6)

slorber avatar slorber commented on May 2, 2024 1

If that helps anyone stumbling on this issue, I posted this answer in a few Algolia issues, hope it helps.

#6693 (comment)

No search result?

For anyone passing by, if you don't get any Algolia search results:

  • make sure that your Algolia index has the fields in the screenshot below
  • If you don't see these fields, then you have an index config problem
  • You should check your crawler config, make sure it matches the recommended one, and then delete/recreate your index based on the newly updated/fixed crawler config (Algolia team recommendation)

image

See also: #10007 (comment)

from docusaurus.

karl-cardenas-coding avatar karl-cardenas-coding commented on May 2, 2024

We can close this ticket. I figured out the issue.
Check your index and make sure language is an exposed facet.

CleanShot 2024-04-16 at 17 25 54

I'm not sure if the default Algolia crawler config is what's causing the issue but lang is not gonna help you. You need to make sure the face language is an attribute available on you index.

{
      attributesForFaceting: [
        "type",
        "lang",
        "language",
        "version",
        "type",
        "docusaurus_tag",
      ]
}

I hope this saves other some time πŸ˜…

from docusaurus.

slorber avatar slorber commented on May 2, 2024

Yes, you need to make sure your index match our official recommendations, otherwise it's your responsibility to make things work

The recommended config contains that "language" facetting field

https://docsearch.algolia.com/docs/templates/#docusaurus-v3-template

from docusaurus.

karl-cardenas-coding avatar karl-cardenas-coding commented on May 2, 2024

@slorber would you be open to a PR that adds this tiny bit of information to the https://docusaurus.io/docs/search#contextual-search page? It could be a tiny lil info box and that also links to the issue #6693

Happy to author it.

from docusaurus.

slorber avatar slorber commented on May 2, 2024

@karl-cardenas-coding thanks for your proposal, but it was already on my todo list to add this index troubleshooting section so I just did it (#10056).

We get many support requests about this over time so it's important to explain this thing properly so I preferred to do it myself.

from docusaurus.

karl-cardenas-coding avatar karl-cardenas-coding commented on May 2, 2024

No worries 😊 @slorber and thank you for adding the updates. That's gonna help a lot for future users.

from docusaurus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.