project-lux / lux-marklogic

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

#236: expanded scope to all invalid search requests and the search will match context #249

Closed brent-hartwig closed 4 months ago

brent-hartwig commented 4 months ago

Introduced the InvalidSearchRequestError, which adds "Invalid search request" to the given message. Changed many instances of BadRequestError to InvalidSearchRequestError. Updated the facet and search estimate contexts to use isInvalidSearchRequestError to differentiate logging. Search will match now also logs differently when the reason for failure is an invalid search request.