Since Typesense is based on Algolia search, I foll...
# community-help
v
Since Typesense is based on Algolia search, I followed a recommendation to put the needed information about component names in meta tags like this:
Copy code
<meta name="version" class="version" content="1.5">
<meta name="title" class="title" content="Руководство программиста">
Unfortunately, it didn't have any effect. Can you give any advice on where Typesense is expecting to find group titles?
j
@Vladimir M. The titles are picked up by docsearch-scraper based on your docsearch configuration file. Here’s how to change the dom elements that gets scraped: https://docsearch.algolia.com/docs/legacy/config-file/#using-custom-selectors-per-page
v
Not sure if I'm doing something wrong. I moved the information required for the titles to the meta tag:
<meta name="context" content="5.5.1 Консоль управления Docsvision">
Then I edited the configuration file to match the edits:
Copy code
"selectors": {
   "lvl0": {
      "global": true,
      "selector": "meta[name=\"context\"]"
   },
But I still can't see the titles. Is there something I did wrong?
j
Did you also re-rerun the scraper after changing the config?
If so, could you check the actual content of the fields in the Typesense collection, to see what DOM element is getting picked up for each selector?
v
Yes, I re-run the scraper. The actual content of the
lvl0
selector field is
null
right now. Even though configuration file says
"selector": "meta[name=\"context\"]"
. The rest of the selectors have valid value.
j
Are these meta tags being injected by JavaScript?
v
No, those are just plain HTML meta tags added statically.
j
I’m not sure what else could be wrong… I’d recommend running the scraper via a debugger and then stepping through the code to see why it’s not picking up those levels: https://github.com/typesense/typesense-docsearch-scraper
v
I created a div with the required class and content, added it the property of
display: none
and it solved my issue. Thanks for reaching out to help.
👍 1
j
Good to know!