You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2005/10/06 12:37:48 UTC

[jira] Created: (JCR-244) Support contains queries with wildcard prefix

Support contains queries with wildcard prefix
---------------------------------------------

         Key: JCR-244
         URL: http://issues.apache.org/jira/browse/JCR-244
     Project: Jackrabbit
        Type: Improvement
    Reporter: Marcel Reutegger
 Assigned to: Marcel Reutegger 
    Priority: Minor
     Fix For: 1.0


The current implementation only allows wildcards in the middle or at the end of a search term. 

The following queries work right now:
//*[jcr:contains(., 'foo*')
//*[jcr:contains(., 'fo?o')

But the following does not:
//*[jcr:contains(., '*bar')

There was already a thread in the mailing list on this topic:
http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/3304

-- 
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


[jira] Closed: (JCR-244) Support contains queries with wildcard prefix

Posted by "Marcel Reutegger (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JCR-244?page=all ]
     
Marcel Reutegger closed JCR-244:
--------------------------------

    Resolution: Fixed

Added customized parser for contains clause.

Committed in revision: 306615

> Support contains queries with wildcard prefix
> ---------------------------------------------
>
>          Key: JCR-244
>          URL: http://issues.apache.org/jira/browse/JCR-244
>      Project: Jackrabbit
>         Type: Improvement
>     Reporter: Marcel Reutegger
>     Assignee: Marcel Reutegger
>     Priority: Minor
>      Fix For: 1.0

>
> The current implementation only allows wildcards in the middle or at the end of a search term. 
> The following queries work right now:
> //*[jcr:contains(., 'foo*')
> //*[jcr:contains(., 'fo?o')
> But the following does not:
> //*[jcr:contains(., '*bar')
> There was already a thread in the mailing list on this topic:
> http://thread.gmane.org/gmane.comp.apache.jackrabbit.devel/3304

-- 
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