You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Anuj <86...@gmail.com> on 2007/08/24 07:36:34 UTC
help
Hi,
I am working on XWiki. Presently the search tool for searching in attachment
contents is case sensitive .If I want to make it case insensitive, what
changes I have to make in its code.
Here is the code for attachment content search in xwiki.
1.1 Search in attachment file content
#set($sql= ", XWikiAttachment attach, XWikiAttachmentContent as attachc
where doc.id = attach.docId and attach.id = attachc.id and attachc.content
like '%$text%' ")
#foreach ( $item in $xwiki.searchDocuments($sql , $nb , $start))
#if ($xwiki.hasAccessLevel("view", $context.user,
"${context.database}:${item}"))
#set($bentrydoc = $xwiki.getDocument($item)) *
[$bentrydoc.name>${bentrydoc.web}.$bentrydoc.name] by
$xwiki.getLocalUserName($bentrydoc.author) on
$xwiki.formatDate($bentrydoc.date, $formatDate)
#end
#end
Thanks,
Anuj
Re: help
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Anuj
Anuj wrote:
> I am working on XWiki. Presently the search tool for searching in attachment
> contents is case sensitive .If I want to make it case insensitive, what
> changes I have to make in its code.
This is a question better asked on the Velocity-User list, not the
developer list. If you have a question about implementation, or a
possible bug to report, this is the right place. It is not the right
place for questions about how to /use/ Velocity.
The mailing list you want is user@velocity.apache.org
Thanks,
-chris