[opencms-dev] search taglib for OpenCms Search API

Ernesto De Santis ernesto.desantis at colaborativa.net
Mon Sep 26 16:09:50 CEST 2005


Hi

I developed a search taglib for the OpenCms Search API.
I think that the taglib code for search is too more simple that the 
scriplet code.

Here, I copy an example:

<sch:search query="${param.query}"
            index="online"
            field="title, content"
            page="<%= pageNumber %>"
            matchesPerPage="4"
            displayPages="5"
            queryLength="3">

   <h1>Results: <sch:searchResultCount/></h1>
   <sch:searchResults>
       <sch:searchHitNumber /> -
         <b>title:    <sch:searchHit property="title"/></b><br>
         path:        <sch:searchHit property="path"/><br>
         score:       <sch:searchHit property="score"/><br>
       <br>
   </sch:searchResults>
   <sch:searchPaging>
      <sch:searchPagingPage/>
   </sch:searchPaging>
</sch:search>

This is the first version. Maybe, if the opencms developers want, can be 
included in the next opencms release.

Regards,
Ernesto

-- 
Ernesto De Santis - Colaborativa.net
La Plata, Argentina.
http://www.colaborativa.net/




More information about the opencms-dev mailing list