[jira] [Commented] (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13251875#comment-13251875 ] Jan Høydahl commented on LUCENE-1823: - Luis, are you there? Can you give a status on this. Think this issue needs a general update both the title, description and a strategy for how to proceed. I agree with Robert that incremental progress is better than trying to solve everything in one go. Starting to adopt the new Flex QP framework would accelerate QP development also in Solr camp. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: core/queryparser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 4.0 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- 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
[jira] [Commented] (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13176390#comment-13176390 ] Jan Høydahl commented on LUCENE-1823: - @Luis, still working on this? QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: core/queryparser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 4.0 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- 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
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13007737#comment-13007737 ] Adriano Crestani commented on LUCENE-1823: -- Hi Robert, I completely agree with your statement, the config API scares me also. I would love to submit a patch for it, but I am working for IBM now, and, as a committer, I need to go through some bureaucratic paperwork before doing any new feature for Lucene and it might still take some time :( I had a better idea, I will propose it to be a GSOC project for this year. This way we can also get one more contributor to contrib QP. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 4.0 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. 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
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923867#action_12923867 ] Robert Muir commented on LUCENE-1823: - Looking at the patch, its a bit difficult to review since the patch creates a whole new queryparser (Standard2). This is just my opinion here: # I think it would be good to just modify Standard with the improvements presented here. I think for contrib/queryparser to succeed, we should worry less about providing exact imitations of the core queryparser, and instead focus on trying to provide a framework and concrete implementation that solves the problems people are facing. In other words, fix what we don't like and provide a parser that works the way we want, and forget about exact compatibility with the core queryparser... if someone wants its exact behavior, they can just use it. # It would be much easier if improvements could be on separate patches rather than bundled: For example, LUCENE-1938 was easy for me to commit because it was well-contained and covered one single improvement/feature. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 4.0 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12923078#action_12923078 ] Robert Muir commented on LUCENE-1823: - Adriano, I will take a look at the patch. A few things have changed: the LUCENE-950 issue, I changed the FuzzyQuery syntax to allow for foo~1 foo~2 to support exact edit distances... so I don't think we need to change anything there. Additionally we also added proper regular expression support (via Lucene core's RegexpQuery). But i'll play with the patch, and see if i can bring it up to trunk. As far as using a Map instead of Attributes for configuration, I think this would be a really good step! Are you still interested in working up a patch for this one. At the moment I think all the attributes scare people away from the contrib/queryparser. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 4.0 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12904892#action_12904892 ] Adriano Crestani commented on LUCENE-1823: -- I agree with Michael, AttributeSource was designed for another purpose, and does not really fit for configuration purposes. The map idea is really good and fits well as configuration for the QP, but I would like to restrict the key type, so the user doesn't use a String object as key. String keys may lead to runtime errors, mainly when they are inserted inline. I would prefer to use enums as keys, it would enforce the user to always pass the same object as key when referencing the same configuration. It also avoids duplicated configuration keys, once each enum type has only one instance per JVM. If nobody complains about using a MapEnum?, Object as configuration for QP framework, I will start working on a new patch including these changes soon. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 4.0 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12784709#action_12784709 ] Shai Erera commented on LUCENE-1823: I prefer syntax 2 for the opaque terms. If the idea is to plug in another QP for that opaque term, then it would be best IMO if that QP received the entire string and did what it knows with it. That way, I could pass my::'field1:value OR field2:value2 AND (something else)', and 'my' QP would parse the entire string. I don't see how this can be achieved w/ syntax:field:query, meaning, how can I pass a clause which contains two fields ORed or ANDed? IMO, the simpler the better and it's easy to explain that whatever comes after the '::' (double colons), is passed onto as-is to the assigned QP. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 3.1 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12779672#action_12779672 ] Luis Alves commented on LUCENE-1823: Hi Ali, Here another suggestion for the proximity syntax: ( (john OR james OR mar*) ( smith OR mil*) ) WITHIN 5 I'll see if I have time to put that on the new parser. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 Attachments: lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12779692#action_12779692 ] Luis Alves commented on LUCENE-1823: This patch is the first patch to implement the features described on lucene-1823. contains: - Operator precedence - Opaque terms - ANY operator The new parser is name standard2, I'm open to change this name please post suggestions :) Also included is a implementation for regex, using the syntax discussed in LUCENE-2039. I wrote a simple junit and and RegexQueryParser in the test folder. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 3.1 Attachments: lucene_1823_any_opaque_precedence_fuzzybug.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12779745#action_12779745 ] Luis Alves commented on LUCENE-1823: Operator precedence order is {code} ANY, ~, ^, +, -, NOT, AND, OR {code} For example: {code} a OR b AND c {code} will now be executed as {code} (a OR (b AND c)) {code} The syntax for the ANY operator is: {code} ( a b c d ) ANY 2 {code} Opaque syntax is: {code} extensioName:field:term extensioName:field:phrase {code} Default field: {code} extensioName::term extensioName::phrase {code} In the test folder standard2 there is a Opaque implementation for regex (contrib component), and the syntax to use this test RegexQueryParser is, all the lunece syntax and the above, plus: {code} regex:field:regular expression {code} For example: {code} regex::^.[aeiou]c.*$ {code} QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 3.1 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12779767#action_12779767 ] Luis Alves commented on LUCENE-1823: I forgot to say that the precedence code includes the patch LUCENE-1937, LUCENE-1938 from Adriano Crestani. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Luis Alves Priority: Minor Fix For: 3.1 Attachments: lucene_1823_any_opaque_precedence_fuzzybug_v2.patch, lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12779092#action_12779092 ] Ali Oral commented on LUCENE-1823: -- Proximity query support could be very nice. This definitely requires span queries. (john OR james OR mar*) NEAR/5 ( smith OR mil*) QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 Attachments: lucene_1823_foo_bug_08_26_2009.patch I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12747299#action_12747299 ] Luis Alves commented on LUCENE-1823: We can also implement: - foo~(=1) should really just map to foo. details in LUCENE-950 issue. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12747304#action_12747304 ] Luis Alves commented on LUCENE-1823: LUCENE-167 will be implemented by item 1. Item 1 will support logical NOT - + AND OR operators with precedence. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12747305#action_12747305 ] Luis Alves commented on LUCENE-1823: Item 3 will address LUCENE-995 using a new syntax with = = = QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12747308#action_12747308 ] Luis Alves commented on LUCENE-1823: I'll also want to fix LUCENE-375 as part of this issue - fish*~ parses to PrefixQuery - should be a parse exception QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12745251#action_12745251 ] Michael Busch commented on LUCENE-1823: --- I think Solr has a feature similar to what I called 'Opaque terms: Nested Queries. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12744790#action_12744790 ] Luis Alves commented on LUCENE-1823: {quote} 2 Opaque terms {quote} I propose the following examples for the syntax {code} syntax1: +a -b ::complexPhrase('other syntax') xml('/bookstore/book[price35.00]') googlesyntax('2..20 doughnuts') syntax2: +a -b complexPhrase::'other syntax' xml::'/bookstore/book[price35.00]' googlesyntax::'2..20 doughnuts' syntax3: +a -b complePhrase:'other syntax' xml:'/bookstore/book[price35.00]' googlesyntax:'2..20 doughnuts' {code} We can also have a default SyntaxExtension to make the syntax easier, for example if complexPhrase was the default Syntax Extension, the queries above could be written like this: {code} syntax1: +a -b ::('other syntax') ::xml('/bookstore/book[price35.00]') ::googlesyntax('2..20 doughnuts') syntax2: +a -b ::'other syntax' xml::'/bookstore/book[price35.00]' googlesyntax::'2..20 doughnuts' syntax3: +a -b 'other syntax' xml:'/bookstore/book[price35.00]' googlesyntax:'2..20 doughnuts' {code} I would like to call it Query Parser Syntax extensions instead of Opaque Terms. + 1 for syntax 1 QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12744792#action_12744792 ] Luis Alves commented on LUCENE-1823: {quote} 1. Operator precedence {quote} The new queryparser already supports this internally by disabling the GroupQueryNodeProcessor. But we don't have any tescases and we need to add a simpler interface for the users by creating a new Lucene3QueryParser class (with a diff name). {quote} 2. Opaque terms 5. Complex phrases {quote} We should also implement number 5(Complex phrases) using number 2 (Opaque terms) {quote} 8 Escaped wildcards {quote} LUCENE-1820 is also related to this. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12744795#action_12744795 ] Luis Alves commented on LUCENE-1823: {quote} 8 Escaped wildcards {quote} The new queryparser already supports this in the StandardSyntaxParser and most processor, we just need to make it visible to the underlying lucene classes, on the builders. QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12744797#action_12744797 ] Michael Busch commented on LUCENE-1823: --- Hmm, Syntax 2 looks more intuitive to me... looks a bit strange in syntax one to have the :: in front of the field name? QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org
[jira] Commented: (LUCENE-1823) QueryParser with new features for Lucene 3
[ https://issues.apache.org/jira/browse/LUCENE-1823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12744845#action_12744845 ] Grant Ingersoll commented on LUCENE-1823: - Boosting*Query's support? :-) QueryParser with new features for Lucene 3 -- Key: LUCENE-1823 URL: https://issues.apache.org/jira/browse/LUCENE-1823 Project: Lucene - Java Issue Type: New Feature Components: QueryParser Reporter: Michael Busch Assignee: Michael Busch Priority: Minor Fix For: 3.1 I'd like to have a new QueryParser implementation in Lucene 3.1, ideally based on the new QP framework in contrib. It should share as much code as possible with the current StandardQueryParser implementation for easy maintainability. Wish list (feel free to extend): 1. *Operator precedence*: Support operator precedence for boolean operators 2. *Opaque terms*: Ability to plugin an external parser for certain syntax extensions, e.g. XML query terms 3. *Improved RangeQuery syntax*: Use more intuitive =, =, = instead of [] and {} 4. *Support for trierange queries*: See LUCENE-1768 5. *Complex phrases*: See LUCENE-1486 6. *ANY operator*: E.g. (a b c d) ANY 3 should match if 3 of the 4 terms occur in the same document 7. *New syntax for Span queries*: I think the surround parser supports this? 8. *Escaped wildcards*: See LUCENE-588 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. - To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org