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-24 11:28:00 PDT
Message User: stack
  Date: 00/10/24 11:28:00

  Modified: templates/org/joist/search SearchPage.wm
  Log:
  Finished testing
  
  Revision Changes Path
  1.3 +30 -6 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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SearchPage.wm 2000/10/24 02:48:03 1.2
  +++ SearchPage.wm 2000/10/24 18:27:59 1.3
  @@ -1,7 +1,26 @@
   ## <!-- webmacro variables -->
   ## <!-- Test for presences of $searchresult. It has everything in it. -->
  +## <!-- Get the original query object by doing: #set $query = $searchresult.getQuery( ) -->
  +## <!-- Once you have the query object, you can ask the following: -->
  +## <!-- Query index file name: $query.getSearchIndex( ) -->
  +## <!-- Query results per page: $query.getResultsPerQuery( ) -->
  +## <!-- Query: $query.getQuery( ); -->
  +## <!-- From the searchresult itself you can get the following: -->
  +## <!-- 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( ); -->
  +## <!-- Cycle on list of search result items by doing this: #foreach $item in $searchresult.getSe​archResultItems( ) -->
  +## <!-- For each search result item, you can ask: -->
  +## <!-- $item.getRanking( ) $item.getSize( ) $item.getFile( ) $item.getTitle( ) -->
  +## <!-- Finally, print out the total searchresult object by just putting $searchresult in your page -->
  +##
   
   
  +
  +
   <P>
   <FONT FACE="Arial,Helvetic​a,Geneva,Verdana,san​s-serif" SIZE="+1">
   Simple Search</FONT>
  @@ -33,10 +52,10 @@
       <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( );
  + 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( ) )
  @@ -45,9 +64,14 @@
           <pre>
           #foreach $item in $searchresult.getSe​archResultItems( )
           {
  - $item.getRanking( ) $item.getSize( ) $item.getLocation( ) $item.getTitle( )
  + $item.getRanking( ) $item.getSize( ) $item.getFile( ) $item.getTitle( )
           }
           </pre>
           </p>
       }
  -}
  \ No newline at end of file
  + <p>Total search result as string:
  + <pre>
  + $searchresult
  + </pre>
  + </p>
  +}

« 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-24 11:28:00 PDT
Messages per page: