DocSearch in nav bar no longer returning results on 13.12 site
Steps to reproduce
- Visit https://docs.gitlab.com/13.12/
- Run a search in the nav bar
- Observe no results
Expected behavior
- DocSearch returns results for the query, faceted by the version (search only returns pages from 13.12).
Notes
Comparing the two search boxes on the homepage, searching for PHP
:
Center homepage search (working)
-
Query params:
x-algolia-agent:
Algolia for vanilla JavaScript (lite) 3.30.0;docsearch.js 2.6.3
x-algolia-application-id:
BH4D9OD16A
x-algolia-api-key:
ce1690e1421303458a1fcbea0cc4a927
- Payload:
{"requests":[{"indexName":"gitlab","params":"query=PHP&hitsPerPage=10&filters=tags%3Agitlab%3Cscore%3D4%3E%20OR%20tags%3Aomnibus%3Cscore%3D3%3E%20OR%20tags%3Arunner%3Cscore%3D2%3E%20OR%20tags%3Acharts%3Cscore%3D1%3E"}]}
- Response body:
{"results":[{"hits":[<!-- Lots of result content -->][]}}]}}],"nbHits":1027,"page":0,"nbPages":100,"hitsPerPage":10,"exhaustiveNbHits":true,"exhaustiveTypo":true,"exhaustive":{"nbHits":true,"typo":true},"query":"PHP","params":"query=PHP&hitsPerPage=10&filters=tags%3Agitlab%3Cscore%3D4%3E%20OR%20tags%3Aomnibus%3Cscore%3D3%3E%20OR%20tags%3Arunner%3Cscore%3D2%3E%20OR%20tags%3Acharts%3Cscore%3D1%3E","index":"gitlab","processingTimeMS":2,"processingTimingsMS":{"fetch":{"scanning":1,"total":1},"total":2}}]}
Navbar request & response (not working)
-
Request URL: https://bh4d9od16a-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20vanilla%20JavaScript%20(lite)%203.30.0%3Bdocsearch.js%202.6.3&x-algolia-application-id=BH4D9OD16A&x-algolia-api-key=ce1690e1421303458a1fcbea0cc4a927 (Same as above)
-
Query params:
x-algolia-agent:
Algolia for vanilla JavaScript (lite) 3.30.0;docsearch.js 2.6.3
x-algolia-application-id:
BH4D9OD16A
x-algolia-api-key:
ce1690e1421303458a1fcbea0cc4a927
(same as above)
- Payload:
{"requests":[{"indexName":"gitlab","params":"query=PHP&hitsPerPage=10&filters=tags%3Agitlab%3Cscore%3D4%3E%20OR%20tags%3Aomnibus%3Cscore%3D3%3E%20OR%20tags%3Arunner%3Cscore%3D2%3E%20OR%20tags%3Acharts%3Cscore%3D1%3E&facetFilters=%5B%22version%3A13.12%22%5D"}]}
(different -- maybe it's facetFilters
?)
- Response body:
{"results":[{"hits":[],"nbHits":0,"page":0,"nbPages":0,"hitsPerPage":10,"exhaustiveNbHits":true,"exhaustiveTypo":true,"exhaustive":{"nbHits":true,"typo":true},"query":"PHP","params":"query=PHP&hitsPerPage=10&filters=tags%3Agitlab%3Cscore%3D4%3E%20OR%20tags%3Aomnibus%3Cscore%3D3%3E%20OR%20tags%3Arunner%3Cscore%3D2%3E%20OR%20tags%3Acharts%3Cscore%3D1%3E&facetFilters=%5B%22version%3A13.12%22%5D","index":"gitlab","processingTimeMS":1,"processingTimingsMS":{"total":1}}]}
(different)
Edited by Sarah German