-
Notifications
You must be signed in to change notification settings - Fork 4
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
Enabler: Support multiple sites for DOC collection #85
Comments
The DOC search queries for both English and Spanish use the same sub-query to eliminate results which aren't from sites matching the "bool": {
"must": [
{ "exists": { "field": "searchtitle" } },
{ "prefix": { "searchurl.raw": { "value": "<SITE>" } } }
]
} where To allow multiple sites, this query is modified to
* By default, if a Match for a single site
Match for multiple sites
|
The URL change for this is very straightforward. The In
Additional logic is required in the service classes to change their |
Tweak description of controller's collection parameter. Closes NCIOCPL#85
Tweak description of controller's collection parameter. Closes NCIOCPL#85
QA Notes:This update changes the way search results are filtered. Previously, your options were "All the results for the search string" or "Only the results that came from a specific site" (e.g. "Only results from This change allows the filtering to be multiple sites (e.g. "Only results that came from either Given param site = "all"
Then expect results to be from multiple sites
Given param site = "www.cancer.gov/nano"
And param collection = "doc"
Then expect results.url to only start with "www.cancer.gov/nano"
Given param site = "physics.cancer.gov"
And param collection = "doc"
Then expect results.url to only start with "physics.cancer.gov"
Given params { site: ["dceg.cancer.gov", "www.cancer.gov/connect-prevention-study"] }
And param collection = "doc"
Then expect results.url to only start with "dceg.cancer.gov" or "www.cancer.gov/connect-prevention-study" It's a bit weedy, but for that fourth case, the query string should be |
Tweak description of controller's collection parameter. Closes #85
Allow searches using the DOC collection to request results from multiple sites.
As presently implemented, when the DOC collection is specified, the user must supply exactly one site to return results for.
Some of the DOCs have more than one site which should show up in the results. (e.g. Search results on a DCEG microsite should return results for dceg.cancer.gov, and www.cancer.gov/connect-prevention-study.) There should be no hard limit on the number of sites.
Existing site configurations must not require updates in order to continue working.
A preliminary list of tasks:
This will require coordination with product owners to determine success criteria.
Resources:
Prerequisites
Sub-Tasks
Notes
DCCPS Site to index in Search
DCCPS Search - Sites to Index.xlsx
The text was updated successfully, but these errors were encountered: