zencart / documentation

Zen Cart FAQs and Developer Documentation
https://docs.zen-cart.com
MIT License
7 stars 27 forks source link

Reduce duplication in Zen Cart documentation search results #458

Closed scottcwilson closed 9 months ago

scottcwilson commented 4 years ago

When you search for "Reset" in the search box, you get 4 things related to resetting the admin password:

image

1 a link to user/troubleshooting/reset_admin_password 2 a link to user/admin/admin_password 3 a link to user/troubleshooting 4 a link to user/admin

Only 1 is useful. 2 is just a a redirect page. 3 and 4 are listing pages.

I tweaked the sitemap to exclude redirect pages, and it automatically excludes listing pages.

If you could configure Algolia to use the sitemap, the results should be more useful. The sitemap is here:

https://docs.zen-cart.com/sitemap.xml

scottcwilson commented 4 years ago

Request to use Sitemap to build has been sent to Algolia today by Chris.

drbyte commented 4 years ago

Config updated https://github.com/algolia/docsearch-configs/pull/2330

scottcwilson commented 4 years ago

The redirect page is no longer in the search results - progress! But the two listing pages are still in the results, even though they are not in the sitemap. So is the solution to tell the search to only use the title and not the description?

scottcwilson commented 4 years ago

I wonder if we have to ask them to remove start_urls from the config?

https://docsearch.algolia.com/docs/config-file/#start_urls

Not sure why the listing pages are still showing up because they're not in the sitemap. Could be a question you'll have to ask them.

proseLA commented 3 years ago

searching the site returns no results. at least for any of my searches.

https://docs.zen-cart.com/search/?q=reset https://docs.zen-cart.com/search/?q=notify https://docs.zen-cart.com/search/?q=observ

image

scottcwilson commented 3 years ago

Search not working is a new issue, unrelated to this ticket. @drbyte has been informed of the issue.

scottcwilson commented 3 years ago

A new ticket has been created for the recent search issues: #721.

scottcwilson commented 9 months ago

I think I'm ready to declare victory on this one. New search experience is much better.