[
http://jira.magnolia.info/browse/MAGNOLIA-2068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gregory Joseph updated MAGNOLIA-2068:
-------------------------------------
Priority: Critical (was: Major)
> SimpleSearchTag does not use jcr:contains properly
> --------------------------------------------------
>
> Key: MAGNOLIA-2068
> URL: http://jira.magnolia.info/browse/MAGNOLIA-2068
> Project: Magnolia
> Issue Type: Improvement
> Components: taglibs
> Affects Versions: 3.5.4
> Reporter: Gregory Joseph
> Assignee: Gregory Joseph
> Priority: Critical
> Fix For: 3.5.x, 3.6
>
>
> The current implementation from the SimpleSearchTag generates queries which
> seem unnecessarily complex and underuse the power of the jcr:contains
> function. As a (rather bad) side effect, they also prevent from doing full
> phrase searches, as words which are normally not indexed (like "the") are not
> ignored.
> An example: if I search for "i love the fresh strawberries from my garden",
> the SimpleSearchTag currently generates a query like
> //[EMAIL PROTECTED]:primaryType='mgnl:content']//*[jcr:contains(., 'i')
> and jcr:contains(., 'love')
> and jcr:contains(., 'the') and jcr:contains(., 'fresh') and
> jcr:contains(., 'strawberries')
> and jcr:contains(., 'from') and jcr:contains(., 'my') and
> jcr:contains(., 'garden')]
> which returns no results.
> If we'd use a query like
> //[EMAIL PROTECTED]:primaryType='mgnl:content']//*[jcr:contains(., 'i
> love the fresh strawberries from my garden')]
> ... then we get the expected results.
> See "6.6.5.2 jcr:contains Function" from the JCR Spec (pages 110-111) for
> details.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia.info/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------