Patch committed. See
http://jira.magnolia.info/browse/MAGNOLIA-2068
Cheers,
-g
On Feb 7, 2008, at 17:44 , Grégory Joseph wrote:
If nobody objects I'll then commit a fix for this.
-g
On Jan 31, 2008, at 15:39 , Grégory Joseph wrote:
Hi,
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.
So I guess my question is: is there a reason for generating such
queries that I'm missing ?
Cheers,
-g
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------