YangCatalog / backend

YANG Catalog's REST API and internal module processing pipeline
https://yangcatalog.org
Apache License 2.0
2 stars 11 forks source link

feat: new advanced search backend #721

Closed richardzilincikPantheon closed 1 year ago

richardzilincikPantheon commented 1 year ago

A new endpoint has been created for advanced search. Advanced search will make use of ES functionality instead of filtering over the results of the basic search in python code.

codecov[bot] commented 1 year ago

Codecov Report

Merging #721 (c619366) into develop (0928de4) will decrease coverage by 0.04%. The diff coverage is 38.09%.

:exclamation: Current head c619366 differs from pull request most recent head f490d5f. Consider uploading reports for the commit f490d5f to get more accurate results

@@             Coverage Diff             @@
##           develop     #721      +/-   ##
===========================================
- Coverage    77.71%   77.68%   -0.04%     
===========================================
  Files          114      114              
  Lines        12309    12348      +39     
===========================================
+ Hits          9566     9592      +26     
- Misses        2743     2756      +13     
Impacted Files Coverage Δ
api/views/yangSearch/elkSearch.py 17.12% <4.76%> (-1.72%) :arrow_down:
api/views/yangSearch/yangSearch.py 14.25% <9.37%> (-0.40%) :arrow_down:
api/views/yangSearch/response_row.py 29.78% <10.00%> (+8.35%) :arrow_up:
api/views/yangSearch/search_params.py 100.00% <100.00%> (ø)
redisConnections/redisConnection.py 92.82% <100.00%> (ø)
...isConnections/tests/test_redisModulesConnection.py 99.61% <100.00%> (ø)
richardzilincikPantheon commented 1 year ago

Since there needs to be additional data in the ES source JSONs, all modules need to be repopulated to the new yindex. This can be done with this script https://gist.github.com/richardzilincikPantheon/007dce495c874df756d8e98f71e93e1a. Needs to be run with the name of the new index as a command line arg.