You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that this test index fixture in the JavaScript test suite does not accurately represent the way that the Sphinx search index is structured.
In particular, I think that the terms entry within the index is a mapping from a set of strings (the keys) to a list (or Array) of document-ids; not to a single document-id as currently configured.
This means that the test is not exercising the JS search behaviour as intended.
How to Reproduce
While browsing a locally-hosted copy of the Sphinx self-built documentation, inspect the content of Search._index.terms in the browser's JavaScript console:
Describe the bug
I think that this test
index
fixture in the JavaScript test suite does not accurately represent the way that the Sphinx search index is structured.In particular, I think that the
terms
entry within the index is a mapping from a set of strings (the keys) to a list (orArray
) of document-ids; not to a single document-id as currently configured.This means that the test is not exercising the JS search behaviour as intended.
How to Reproduce
While browsing a locally-hosted copy of the Sphinx self-built documentation, inspect the content of
Search._index.terms
in the browser's JavaScript console:Environment Information
Sphinx extensions
Additional context
May invalidate #11958.
The text was updated successfully, but these errors were encountered: