[ https://issues.apache.org/jira/browse/LUCENE-4004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13259246#comment-13259246 ]
Benson Margulies commented on LUCENE-4004: ------------------------------------------ Using the syntax ( q | q | q ) might be doable in javacc, but I worry that it's undesirable. Right now, what's in parens are boolean clauses (with +/-). The insides of a disjunct aren't boolean clauses, they are queries. This could be pretty confusing all around. It would be really better to introduce some syntax that allows for various sorts of grouping, but I don't want to step on the Solr parser's use of {}. Further, DisjunctionMaxQuery is just one thing, and using up | for it seems ill-advised. % isn't doing anything for a living, so that an option would be (%disjunctionmax q q q q q ) would serve, and also open a door to supporting other things. ? > Add syntax for DisjunctionMaxQuery to the Query Parser > ------------------------------------------------------ > > Key: LUCENE-4004 > URL: https://issues.apache.org/jira/browse/LUCENE-4004 > Project: Lucene - Java > Issue Type: Improvement > Components: core/queryparser > Affects Versions: 3.6 > Reporter: Benson Margulies > Attachments: LUCENE-4004.patch, LUCENE-4004.patch > > > I've come up with a use for DisjunctionMaxQuery, but not the dismax parser. I > note that the toString() method on that item proposes a syntax with vertical > bars. Is there any sympathy for a patch that added this to the standard > parser, or some other syntax? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org