Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/templates/org/joist/search SearchPage.wm

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/templates/org/joist/search SearchPage.wm

Author stack
Full name Michael Stack
Date 2000-10-23 19:48:03 PDT
Message User: stack
  Date: 00/10/23 19:48:03

  Modified: templates/org/joist/search SearchPage.wm
  Log:
  Sample search and search result processing page
  
  Revision Changes Path
  1.2 +45 -5 joist/templates/org/​joist/search/SearchP​age.wm
  
  Index: SearchPage.wm
  ====================​====================​====================​=======
  RCS file: /cvs/joist/templates​/org/joist/search/Se​archPage.wm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SearchPage.wm 2000/10/24 00:08:24 1.1
  +++ SearchPage.wm 2000/10/24 02:48:03 1.2
  @@ -1,13 +1,53 @@
  +## <!-- webmacro variables -->
  +## <!-- Test for presences of $searchresult. It has everything in it. -->
  +
  +
   <P>
   <FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
  -SearchServlet</FONT>
  +Simple Search</FONT>
   <P>
   <FONT FACE="TIMES">
  -
   <FORM ACTION="SearchServlet" METHOD="post">
  -<INPUT TYPE="hidden" NAME="results" VALUE="40">
  -<INPUT TYPE="hidden" NAME="what" VALUE="ap">
  -<INPUT NAME="keyword" SIZE="10"><BR>
  +<INPUT TYPE="hidden" NAME="resultsPerPage" VALUE="40">
  +Query: <INPUT NAME="query" SIZE="10"><BR>
   <INPUT TYPE="submit" NAME="Button" VALUE="Search">
   <INPUT TYPE="submit" NAME="Button" VALUE="Cancel"> </FORM>
   </FONT>
  +
  +
  +#if( $searchresult )
  +{
  + <p><FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
  +Search Results:</FONT>
  + </p>
  +
  + #set $query = $searchresult.getQuery( )
  + <p>Query details:
  + <pre>
  + Query index file name: $query.getSearchIndex( )
  + Query results per page: $query.getResultsPerQuery( )
  + Query: $query.getQuery( );
  + </pre>
  + </p>
  + <p>Result details:
  + <pre>
  + Number Of Hits: $searchresult.getNumberOfHits( )
  + Index Name: $searchresult.getIndexName( )
  + Index Mod Date: $searchresult.getIndexModDate( );
  + Index Stats: $searchresult.getIndexStats( );
  + Index Path: $searchresult.getIndexPointer( );
  + Query after searchengine processing: $searchresult.getSe​archengineSearchWord​s( );
  + </pre>
  + </p>
  + #if( $searchresult.getSe​archResultItems( ) )
  + {
  + <p>Result Items:
  + <pre>
  + #foreach $item in $searchresult.getSe​archResultItems( )
  + {
  + $item.getRanking( ) $item.getSize( ) $item.getLocation( ) $item.getTitle( )
  + }
  + </pre>
  + </p>
  + }
  +}
  \ No newline at end of file

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: joist/templates/org/joist/search SearchPage.wm stack Michael Stack 2000-10-23 19:48:03 PDT
Messages per page: