You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jigar Shah (JIRA)" <ji...@apache.org> on 2015/10/28 08:42:27 UTC

[jira] [Comment Edited] (LUCENE-6857) Validate StandardQueryParser with NOT operator with-in parantheses.

    [ https://issues.apache.org/jira/browse/LUCENE-6857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14977888#comment-14977888 ] 

Jigar Shah edited comment on LUCENE-6857 at 10/28/15 7:41 AM:
--------------------------------------------------------------

Original issue description:
--------------------------------------------------------
Thanks for your reply Erick,
I have gone through the document provided by you.
However what I have observed is that there is difference if we parse query with Lucene 4.10.3 and Lucene 5.2.0 onwards.
For example :Query String: lottery AND (NOT ticket)Lucene 4.x parsed it as: +lottery +ticket
Lucene 5.1.x parsed it as: +lottery +(-ticket)
And I want result as 5.1.x produces. But as I am not planning to upgrade lucene now so looking for fix for lucene 4.10.x.
Please could you help on this?
Thanks,Mrugesh
-------------------------------------------------------
Issue still remains in 4.10.3 release. because of LUCENE-6249, above mentioned issue is fixed.

Provided patch for test case. 

Added testcases to validate LUCENE-6249


was (Author: infodroids):
Provide patch.

Added testcases to validate LUCENE-6249

> Validate StandardQueryParser with NOT operator with-in parantheses.
> -------------------------------------------------------------------
>
>                 Key: LUCENE-6857
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6857
>             Project: Lucene - Core
>          Issue Type: Test
>          Components: core/queryparser
>    Affects Versions: 5.3
>            Reporter: Jigar Shah
>            Assignee: Dawid Weiss
>             Fix For: Trunk
>
>         Attachments: LUCENE-6857.patch
>
>
> Provide test case to validate LUCENE-6249,  which validates NOT in parentheses.
> e.g:
> lottery (NOT ticket)
> lottery (-ticket)
> lottery AND (NOT ticket)
> +lottery +(-ticket)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org