David Smiley created SOLR-15906:
-----------------------------------
Summary: Query parsing ignores rest of query when 'v' local-param
is used
Key: SOLR-15906
URL: https://issues.apache.org/jira/browse/SOLR-15906
Project: Solr
Issue Type: Bug
Security Level: Public (Default Security Level. Issues are Public)
Components: query parsers
Reporter: David Smiley
One of Solr's nasty/tricky gotchas is debugging a query that looks like this:
{noformat}
q={!parser v=queryString} OR ignored
{noformat}
Because this query string starts with {{\{\!}} and it has a {{v}} local-param,
it means everything after the first {{\}}} is ignored!
Experienced Solr users figure out to put a leading space on this as a hack.
I've had to explain this several times and, really, Solr should fix this.
Basically, if there is text following that bracket, then parse the whole string
using Solr's lucene query parser which can recognize embedded queries like this.
Example of a confused user:
https://stackoverflow.com/questions/70658152/showing-parents-without-children-in-solr-search-too
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]