project-lux / lux-marklogic

Code, issues, and resources related to LUX MarkLogic
Other
3 stars 2 forks source link

Search scope is 'null' and 'undefined' in search response when scope is specified by _scope property #81

Closed brent-hartwig closed 3 months ago

brent-hartwig commented 3 months ago

When the search request specifies the search scope using the search criteria's _scope property (versus the endpoint's scope parameter), the search scope is represented as null in id properties and either null or undefined within en properties. The former breaks the URLs; e.g. https://lux.collections.yale.edu/api/search-estimate/null?q=....

brent-hartwig commented 3 months ago

Addressed in PR https://github.com/project-lux/lux-marklogic/pull/82, which awaits review/merge.