org.apache.solr.handler
Class RequestHandlerUtils

java.lang.Object
  extended by org.apache.solr.handler.RequestHandlerUtils

public class RequestHandlerUtils
extends java.lang.Object

Common helper functions for RequestHandlers

Since:
solr 1.2
Version:
$Id: RequestHandlerUtils.java 534669 2007-05-03 00:59:09Z ryan $
Author:
ryan

Constructor Summary
RequestHandlerUtils()
           
 
Method Summary
static void addExperimentalFormatWarning(SolrQueryResponse rsp)
          A common way to mark the response format as experimental
static boolean handleCommit(SolrQueryRequest req, SolrQueryResponse rsp, boolean force)
          Check the request parameters and decide if it should commit or optimize.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestHandlerUtils

public RequestHandlerUtils()
Method Detail

addExperimentalFormatWarning

public static void addExperimentalFormatWarning(SolrQueryResponse rsp)
A common way to mark the response format as experimental


handleCommit

public static boolean handleCommit(SolrQueryRequest req,
                                   SolrQueryResponse rsp,
                                   boolean force)
                            throws java.io.IOException
Check the request parameters and decide if it should commit or optimize. If it does, it will check parameters for "waitFlush" and "waitSearcher"

Throws:
java.io.IOException


Copyright © 2006 - 2008 The Apache Software Foundation