[
https://issues.apache.org/jira/browse/SOLR-422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Pugh resolved SOLR-422.
----------------------------
Resolution: Fixed
Closing as fixed. Classic DisMax now runs the query through
SolrPluginUtils.stripUnbalancedQuotes() before parsing, which strips all "
characters when the count is unbalanced (e.g. a lone "), avoiding malformed
phrase syntax. Extended DisMax's splitIntoClauses() detects an unterminated
quote at end-of-string and retries the parse with ignoreQuote=true, with
parseOriginalQuery() also falling back to parseEscapedQuery() on any exception
as a second safety net. Neither parser throws for q=" or q="" today. (Note:
there's no direct regression test reproducing this exact input — might be worth
adding one in a follow-up, but the underlying bug is gone.)
> one double quote or two double quotes only break search
> -------------------------------------------------------
>
> Key: SOLR-422
> URL: https://issues.apache.org/jira/browse/SOLR-422
> Project: Solr
> Issue Type: Bug
> Components: search
> Reporter: Doug Daniels
> Priority: Minor
> Fix For: 6.0, 4.9
>
>
> Using Dismax, searching for either one double quote character:
> q="
> or two double quote characters with no text between them:
> q=""
> throws an exception. Not sure whether this is also the case for other
> request handlers.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]