Skip to content
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

Add structured search methods to the Search service #27

Merged
merged 9 commits into from
Apr 7, 2020

Conversation

pyrocumulus
Copy link
Owner

Closes #10 .

A lot of details on the PVOutput side for the query text still hazy. Some queries do not return anything.
@pyrocumulus pyrocumulus added the enhancement New feature or request label Mar 31, 2020
@pyrocumulus pyrocumulus added this to the 0.7.0 milestone Mar 31, 2020
@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #27 into develop will increase coverage by 0.77%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##           develop      #27      +/-   ##
===========================================
+ Coverage    89.83%   90.61%   +0.77%     
===========================================
  Files          109      109              
  Lines         1800     1928     +128     
===========================================
+ Hits          1617     1747     +130     
+ Misses         183      181       -2     

… proved impossible.

- Added new separate Search methods for each parameter.
@pyrocumulus pyrocumulus changed the title Add a SearchQueryBuilder to create structured queries to the Search service Add structured search methods to the Search service Apr 3, 2020
@pyrocumulus
Copy link
Owner Author

Because only specific terms can be combined in the query parameter, a builder solution does not fit here. I've rewritten the PR to make specific search methods per type of query.

pyrocumulus added a commit that referenced this pull request Apr 3, 2020
@pyrocumulus pyrocumulus modified the milestones: 0.7.0, 0.6.1 Apr 3, 2020
@pyrocumulus
Copy link
Owner Author

Implementation seems correct, however the PVOutput api has a couple of queries that do not work or work different as expected.

https://forum.pvoutput.org/t/search-jsp-returning-blank-data-when-searching-for-size/2954

This PR is on hold until those issues are resolved.

@pyrocumulus pyrocumulus modified the milestones: 0.6.1, 0.7.0 Apr 3, 2020
Also added html encoding to the * and + characters in some queries
All structured search methods now have their own logging scope
Removed the util method for structured searches in the SearchService, wasn't that useful anymore
It's broken in the PVOutput api at the moment. And it has fairly limited use, considering this search can also be done by either postcode or size; and those queries do actually work. It might come back when it's fixed.
@pyrocumulus pyrocumulus merged commit 3af6b3a into develop Apr 7, 2020
@pyrocumulus pyrocumulus deleted the searchquerybuilder branch April 7, 2020 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a search query builder for the Search service
1 participant