-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add multi index searching and filtering #674
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work here, @Revathyvenugopal162. I left some suggestions and comments.
@@ -147,23 +147,6 @@ Here is an example of how to add the ``static_search`` dictionary to the | |||
}, | |||
} | |||
To customise the indexing of your documentation, you can use the ``index_patterns`` dictionary in the ``conf.py`` file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change. We must include a deprecation warning in v1.4 about it saying v1.5 will no longer support this option. Also, v1.5 must raise an error if this option is used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, i will add that
if not filters: | ||
# get the first part of the document name and sentence case it | ||
return doc_title | ||
for key, values in filters.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's avoid this naming. All dictionaries have keys and values. Let's be more explicit with the concepts these variables are used for.
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/components/ast-search-button.html
Outdated
Show resolved
Hide resolved
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/components/ast-search-button.html
Show resolved
Hide resolved
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/js/search.js
Outdated
Show resolved
Hide resolved
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/js/search-main.js
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last comment and this is ready to be merged.
Co-authored-by: Jorge Martínez <[email protected]>
Advanced search features with filtering
#671 , #573