Just wondering if it’s possible to add an additional query parameter, specifically a negated metadata one (-error:found or &meta_error_not=found) to the user supplied query, but not have it displayed to the user:
i.e. 1 to 10 results for [query] not: 1 to 10 results for [query] -error:found
You could try to use the system query parameter for this.
There are smeta CGI parameters that can be used (e.g. &smeta_Name=bob), though I’m not sure if all the modifiers are supported, or you can supply the value defined in the query language to the s parameter (e.g. &s=-error:found)
The smeta_not parameter will be helpful, but you’ll need to ensure you’re rendering the appropriate element in the UI.
response.resultPacket.queryAsProcessed will contain both the organic query and the system-generated constraint, whereas displaying response.resultPacket.query will display only the organic term.