[jira] [Commented] (SOLR-14557) eDisMax parser switch + braces regression
[ https://issues.apache.org/jira/browse/SOLR-14557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17133600#comment-17133600 ] David Smiley commented on SOLR-14557: - Thanks for clarifying. Then it seems there is a bug in edismax or the underlying query parser syntax rules that we use javacc for. I know very little of that part so you'll have to dig. I don't think SOLR-11501 is the true cause; the former behavior short circuited the query parser altogether to switch it at a higher level. That basically masked whatever deficiencies edismax had and still has in parsing a Lucene query. > eDisMax parser switch + braces regression > - > > Key: SOLR-14557 > URL: https://issues.apache.org/jira/browse/SOLR-14557 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: query parsers >Reporter: Mikhail Khludnev >Priority: Major > Labels: painful > > h2. Solr 4.5 > {{/select?defType=edismax=\{!lucene}(foo)=true}} > > goes like > {code} > \{!lucene}(foo) > content:foo > LuceneQParser > {code} > fine > h2. Solr 8.2 > with luceneMatchVersion=4.5 following SOLR-11501 I know it's a grey zone but > it's a question of migrating existing queries. > {{/select?defType=edismax=\{!lucene}(foo)=true}} > goes like > {code} > "querystring":"\{!lucene}(foo)", > "parsedquery":"+DisjunctionMaxQuery(((Project.Address:lucene > Project.Address:foo) | (Project.OwnerType:lucene Project.OwnerType:foo) > "QParser":"ExtendedDismaxQParser", > {code} > blah... > but removing braces in 8.2 works perfectly fine > {code} > "querystring":"\{!lucene}foo", > "parsedquery":"+content:foo", > "parsedquery_toString":"+content:foo", > "QParser":"ExtendedDismaxQParser", > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-14557) eDisMax parser switch + braces regression
[ https://issues.apache.org/jira/browse/SOLR-14557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17133301#comment-17133301 ] Mikhail Khludnev commented on SOLR-14557: - Thanks for response , [~dsmiley]. # it seems like bug in syntax parsing # I trust users # they have many old queries in curly braces where they switch different parses (mostly \{!join}) arbitrarily, so defType isn't an option # it seems I achieved what uf does via luceneMatchVersion = 4.5 in config that's I'v got SOLR-11501 notes. So, uf doesn't bring any value to me. Or it should? # So everything seems working (switching \{!parser} inside of edismax query) until users add {{(}}braces{{)}}. So, old query doesn't work for them. It seems like a bug outside of SOLR-11501 or loosely related to it. > eDisMax parser switch + braces regression > - > > Key: SOLR-14557 > URL: https://issues.apache.org/jira/browse/SOLR-14557 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: query parsers >Reporter: Mikhail Khludnev >Priority: Major > Labels: painful > > h2. Solr 4.5 > {{/select?defType=edismax=\{!lucene}(foo)=true}} > > goes like > {code} > \{!lucene}(foo) > content:foo > LuceneQParser > {code} > fine > h2. Solr 8.2 > with luceneMatchVersion=4.5 following SOLR-11501 I know it's a grey zone but > it's a question of migrating existing queries. > {{/select?defType=edismax=\{!lucene}(foo)=true}} > goes like > {code} > "querystring":"\{!lucene}(foo)", > "parsedquery":"+DisjunctionMaxQuery(((Project.Address:lucene > Project.Address:foo) | (Project.OwnerType:lucene Project.OwnerType:foo) > "QParser":"ExtendedDismaxQParser", > {code} > blah... > but removing braces in 8.2 works perfectly fine > {code} > "querystring":"\{!lucene}foo", > "parsedquery":"+content:foo", > "parsedquery_toString":"+content:foo", > "QParser":"ExtendedDismaxQParser", > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org
[jira] [Commented] (SOLR-14557) eDisMax parser switch + braces regression
[ https://issues.apache.org/jira/browse/SOLR-14557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17133288#comment-17133288 ] David Smiley commented on SOLR-14557: - The issue description is a bit unclear to me in terms of what you are saying is the bug (you filed this as a bug after all). Yes there was a change in SOLR-11501 that will affect what you are trying to do. But what is the bug or problem? For the overall use-case of wanting to parse that lucene query, then pass {{defType=lucene}} instead of edismax. You could instead set {{uf=\*,\_query\_}} if you want _users_ to be able to make this choice if you trust them to :-). This is in the upgrade notes written for SOLR-11501 in CHANGES.txt. > eDisMax parser switch + braces regression > - > > Key: SOLR-14557 > URL: https://issues.apache.org/jira/browse/SOLR-14557 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: query parsers >Reporter: Mikhail Khludnev >Priority: Major > Labels: painful > > h2. Solr 4.5 > {{/select?defType=edismax=\{!lucene}(foo)=true}} > > goes like > {code} > \{!lucene}(foo) > content:foo > LuceneQParser > {code} > fine > h2. Solr 8.2 > with luceneMatchVersion=4.5 following SOLR-11501 I know it's a grey zone but > it's a question of migrating existing queries. > {{/select?defType=edismax=\{!lucene}(foo)=true}} > goes like > {code} > "querystring":"\{!lucene}(foo)", > "parsedquery":"+DisjunctionMaxQuery(((Project.Address:lucene > Project.Address:foo) | (Project.OwnerType:lucene Project.OwnerType:foo) > "QParser":"ExtendedDismaxQParser", > {code} > blah... > but removing braces in 8.2 works perfectly fine > {code} > "querystring":"\{!lucene}foo", > "parsedquery":"+content:foo", > "parsedquery_toString":"+content:foo", > "QParser":"ExtendedDismaxQParser", > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org