OpenMobileAlliance / dmse-documentation

This repository is dedicated to DMSE-Documentation
https://guidelines.openmobilealliance.org/
1 stars 2 forks source link

Enhance Search with Algolia #7

Open jpradocueva opened 3 years ago

jpradocueva commented 3 years ago

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

rubystream commented 3 years ago

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 commented 3 years ago

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

image

jpradocueva commented 3 years ago

@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 commented 2 years ago

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"
  ]
},