Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance Search with Algolia #7

Open
jpradocueva opened this issue Jun 28, 2021 · 5 comments
Open

Enhance Search with Algolia #7

jpradocueva opened this issue Jun 28, 2021 · 5 comments
Assignees

Comments

@jpradocueva
Copy link
Member

No description provided.

@jpradocueva
Copy link
Member Author

The search function doesn't seem to be working correctly.
It seems that only search on the index page.

@rubystream
Copy link
Collaborator

In oder to enable the search capabilities the Algolia API keys need to be provided as presented on https://content.nuxtjs.org/themes/docs/#properties page under algolia key.

To get these keys one should register at https://docsearch.algolia.com/

@jpradocueva can you take a look and get this Algolia API keys?

@jpradocueva
Copy link
Member Author

@rubystream I will send you the email that I have received, the code is:

image

rubystream added a commit that referenced this issue Nov 14, 2021
add algolia API keys
rubystream added a commit that referenced this issue Nov 14, 2021
@jpradocueva
Copy link
Member Author

@rubystream by reading the information in this link https://docsearch.algolia.com/docs/what-is-docsearch/ I cannot find -why the Algolia search is still not working.

The PR #21 has introduced only a subset of the information provided by the Algolia team. Could that be the reason?

@rubystream
Copy link
Collaborator

The utilise multi-language approach with en-US as default one. In order to utilise the search capabilities the language has to be added in lwm2m config.

It should be added as PR with changes similar to ones in nuxt router one. In particular the parts needed to be added are:

"selectors" {
  ...
   "language": {
     "selector": "/html/@lang",
     "type": "xpath",
     "global": true,
     "default_value": "en-US"
   }
},
"custom_settings": {
  "attributesForFaceting": [
    "language"
  ]
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants