org.springbyexample.httpclient.solr
Class SolrRequestAttributes

java.lang.Object
  extended by org.springbyexample.httpclient.solr.SolrRequestAttributes

public class SolrRequestAttributes
extends Object

Optional attributes for a commit or optimize request.

Author:
David Winterfeldt

Constructor Summary
SolrRequestAttributes()
           
 
Method Summary
 Integer getMaxSegments()
          Gets max segments.
 Boolean getWaitFlush()
          Gets whether or not to wait flush.
 Boolean getWaitSearcher()
          Gets whether or not to wait for the searcher.
 void setMaxSegments(Integer maxSegments)
          Sets max segments.
 void setWaitFlush(Boolean waitFlush)
          Sets whether or not to wait flush.
 void setWaitSearcher(Boolean waitSearcher)
          Sets whether or not to wait for the searcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrRequestAttributes

public SolrRequestAttributes()
Method Detail

getMaxSegments

public Integer getMaxSegments()
Gets max segments. Used to optimize down to at most this number of segments. Defaults to '1'.


setMaxSegments

public void setMaxSegments(Integer maxSegments)
Sets max segments. Used to optimize down to at most this number of segments. Defaults to '1'.


getWaitFlush

public Boolean getWaitFlush()
Gets whether or not to wait flush. Will block until index changes are flushed to disk. Defaults to true.


setWaitFlush

public void setWaitFlush(Boolean waitFlush)
Sets whether or not to wait flush. Will block until index changes are flushed to disk. Defaults to true.


getWaitSearcher

public Boolean getWaitSearcher()
Gets whether or not to wait for the searcher. Will block until a new searcher is opened and registered as the main query searcher, making the changes visible. Defaults to true.


setWaitSearcher

public void setWaitSearcher(Boolean waitSearcher)
Sets whether or not to wait for the searcher. Will block until a new searcher is opened and registered as the main query searcher, making the changes visible. Defaults to true.



Copyright © 2008-2009 Spring by Example. All Rights Reserved.