[jira] Created: (LUCENE-542) QueryParser doesn't support keywords staring with *

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LUCENE-542) QueryParser doesn't support keywords staring with *

JIRA jira@apache.org
QueryParser doesn't support keywords staring with *
---------------------------------------------------

         Key: LUCENE-542
         URL: http://issues.apache.org/jira/browse/LUCENE-542
     Project: Lucene - Java
        Type: Bug

  Components: QueryParser  
    Versions: 1.9    
 Environment: Windows Server 2003, Linux ES 3.0
    Reporter: Colin Yu


It seems that the QueryParser can't handle the keyword starting with "*", such as *test. It throws out ParserException. But this syntax is a valid one, even "dir" or "ls" supports it.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (LUCENE-542) QueryParser doesn't support keywords staring with *

JIRA jira@apache.org
     [ http://issues.apache.org/jira/browse/LUCENE-542?page=all ]
     
Erik Hatcher closed LUCENE-542:
-------------------------------

    Resolution: Invalid

Colin - as I said in my private e-mail reply to you, this is by design.  Tune into java-user, catch up on past threads discussing this, and you'll come to understand the situation.

> QueryParser doesn't support keywords staring with *
> ---------------------------------------------------
>
>          Key: LUCENE-542
>          URL: http://issues.apache.org/jira/browse/LUCENE-542
>      Project: Lucene - Java
>         Type: Bug

>   Components: QueryParser
>     Versions: 1.9
>  Environment: Windows Server 2003, Linux ES 3.0
>     Reporter: Colin Yu

>
> It seems that the QueryParser can't handle the keyword starting with "*", such as *test. It throws out ParserException. But this syntax is a valid one, even "dir" or "ls" supports it.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (LUCENE-542) QueryParser doesn't support keywords staring with *

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

jianwu chen commented on LUCENE-542:
------------------------------------

Hi, Erik
I can't find more information on this issue. Could you provide more information or some links to that issue. I badly require this feature in my project. But now I can't find a solution unless to write another QueryPaser from scratch.
Thanks

> QueryParser doesn't support keywords staring with *
> ---------------------------------------------------
>
>                 Key: LUCENE-542
>                 URL: https://issues.apache.org/jira/browse/LUCENE-542
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 1.9
>         Environment: Windows Server 2003, Linux ES 3.0
>            Reporter: Colin Yu
>
> It seems that the QueryParser can't handle the keyword starting with "*", such as *test. It throws out ParserException. But this syntax is a valid one, even "dir" or "ls" supports it.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (LUCENE-542) QueryParser doesn't support keywords staring with *

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Steven Rowe commented on LUCENE-542:
------------------------------------

Hi Jianwu,

See the FAQ entry: <a href="http://wiki.apache.org/jakarta-lucene/LuceneFAQ#head-4d62118417eaef0dcb87f4370583f809848ea695">What wildcard search support is available from Lucene?</a>


> QueryParser doesn't support keywords staring with *
> ---------------------------------------------------
>
>                 Key: LUCENE-542
>                 URL: https://issues.apache.org/jira/browse/LUCENE-542
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 1.9
>         Environment: Windows Server 2003, Linux ES 3.0
>            Reporter: Colin Yu
>
> It seems that the QueryParser can't handle the keyword starting with "*", such as *test. It throws out ParserException. But this syntax is a valid one, even "dir" or "ls" supports it.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (LUCENE-542) QueryParser doesn't support keywords staring with *

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Steven Parkes commented on LUCENE-542:
--------------------------------------

Actually, this has been changed as of the commit of LUCENE-489. It's disabled by default, but you can call QueryParser.setAllowLeadingWildcard( true ).

This has been committed to the trunk but is not in any release at this point.

I've updated the wiki.

> QueryParser doesn't support keywords staring with *
> ---------------------------------------------------
>
>                 Key: LUCENE-542
>                 URL: https://issues.apache.org/jira/browse/LUCENE-542
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: QueryParser
>    Affects Versions: 1.9
>         Environment: Windows Server 2003, Linux ES 3.0
>            Reporter: Colin Yu
>
> It seems that the QueryParser can't handle the keyword starting with "*", such as *test. It throws out ParserException. But this syntax is a valid one, even "dir" or "ls" supports it.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]