origin/search: Add support for search query language
This diff introduces a new config parameter "enable_ql" If it's set to yes/True, the swh-search query language can be used for the archive search While using the /origin/search API endpoint, "use_ql=true" can be passed to use the url_pattern as the search query language input
Showing
- assets/src/bundles/browse/origin-search.js 8 additions, 0 deletionsassets/src/bundles/browse/origin-search.js
- swh/web/api/views/origin.py 3 additions, 0 deletionsswh/web/api/views/origin.py
- swh/web/browse/urls.py 7 additions, 1 deletionswh/web/browse/urls.py
- swh/web/common/archive.py 19 additions, 8 deletionsswh/web/common/archive.py
- swh/web/config.py 8 additions, 5 deletionsswh/web/config.py
- swh/web/templates/includes/origin-search-form.html 9 additions, 0 deletionsswh/web/templates/includes/origin-search-form.html
- swh/web/tests/api/views/test_origin.py 29 additions, 1 deletionswh/web/tests/api/views/test_origin.py
- swh/web/tests/common/test_archive.py 29 additions, 1 deletionswh/web/tests/common/test_archive.py
- swh/web/urls.py 5 additions, 1 deletionswh/web/urls.py
Loading
-
mentioned in merge request !1047 (closed)
-
mentioned in merge request !1048 (closed)
-
mentioned in merge request !597
-
mentioned in merge request !598 (closed)
Please register or sign in to comment