Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: joist/java/org/joist/search SearchServlet.java SearchServletConstants.java

Project highlights: Architectural Overview

joist
Discussion topic

Back to topic list

CVS update: joist/java/org/joist/search SearchServlet.java SearchServletConstants.java

Author stack
Full name Michael Stack
Date 2000-10-30 22:03:51 PST
Message User: stack
  Date: 00/10/30 22:03:51

  Modified: java/org/joist/search SearchServlet.java
                        SearchServletConstants.java
  Log:
  Pass in docroot to search classes. Made new constant for the docroot key for myproperties in SearchServletConstants
  
  Revision Changes Path
  1.5 +5 -3 joist/java/org/joist​/search/SearchServle​t.java
  
  Index: SearchServlet.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/search/SearchS​ervlet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SearchServlet.java 2000/10/30 23:02:32 1.4
  +++ SearchServlet.java 2000/10/31 06:03:51 1.5
  @@ -97,7 +97,7 @@
   * </ol>
   *
   * @author <a href="mailto:stack@c​ollab.net">St.Ack​</a>
  -* @version $Id: SearchServlet.java,v 1.4 2000/10/30 23:02:32 stack Exp $
  +* @version $Id: SearchServlet.java,v 1.5 2000/10/31 06:03:51 stack Exp $
   */
   public class SearchServlet
       extends org.joist.security.U​nsecureServlet
  @@ -106,7 +106,7 @@
       /** Class version string
       */
       public static final String versionID
  - = "$Id: SearchServlet.java,v 1.4 2000/10/30 23:02:32 stack Exp $";
  + = "$Id: SearchServlet.java,v 1.5 2000/10/31 06:03:51 stack Exp $";
       
       
       /** Logging object.
  @@ -184,7 +184,9 @@
                               Integer.parseInt( resultsPerPage ) );
                   
                       SearchSwishe swishe
  - = new SearchSwishe( myProperties.getProperty( BINARY_PATH ) );
  + = new SearchSwishe(
  + myProperties.getProperty( BINARY_PATH ),
  + myProperties.getProperty( DOC_ROOT ) );
                           
                       SearchResult searchresult
                           = swishe.search( objQuery );
  
  
  
  1.2 +9 -3 joist/java/org/joist​/search/SearchServle​tConstants.java
  
  Index: SearchServletConstants.java
  ====================​====================​====================​=======
  RCS file: /cvs/joist/java/org/​joist/search/SearchS​ervletConstants.java​,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SearchServletConstants.java 2000/10/30 23:02:32 1.1
  +++ SearchServletConstants.java 2000/10/31 06:03:51 1.2
  @@ -49,7 +49,7 @@
   /** Constants used by search servlets.
   * All are read-only (Static finals).
   * @author <a href="mailto:stack@c​ollab.net">St.Ack​</a>
  -* @version $Id: SearchServletConstants.java,v 1.1 2000/10/30 23:02:32 stack Exp $
  +* @version $Id: SearchServletConstants.java,v 1.2 2000/10/31 06:03:51 stack Exp $
   * @see org.joist.search.SearchServlet
   */
   public interface SearchServletConstants
  @@ -57,7 +57,7 @@
       /** Class version string
       */
       public static final String versionID
  - = "$Id: SearchServletConstants.java,v 1.1 2000/10/30 23:02:32 stack Exp $";
  + = "$Id: SearchServletConstants.java,v 1.2 2000/10/31 06:03:51 stack Exp $";
       
       
       /** Property in zone.properties file w/ path to index.
  @@ -72,7 +72,7 @@
           = "swisheBinary";
       
       
  - /** Key to pull 'action' from context w/ getForm( )
  + /** Key to pull 'action' from context w/ getForm( )
       */
       public static final String ACTION_KEY
           = "action";
  @@ -100,4 +100,10 @@
       */
       public static final String SEARCH_RESULT_KEY
           = "searchresult";
  +
  +
  + /** Key to pull documentRoot from myProperties.
  + */
  + public static final String DOC_ROOT
  + = "documentRoot";
   }

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

Messages

Show all messages in topic

CVS update: joist/java/org/joist/search SearchServlet.java SearchServletConstants.java stack Michael Stack 2000-10-30 22:03:51 PST
Messages per page: