2
* Licensed to the Apache Software Foundation (ASF) under one or more
3
* contributor license agreements. See the NOTICE file distributed with
4
* this work for additional information regarding copyright ownership.
5
* The ASF licenses this file to You under the Apache License, Version 2.0
6
* (the "License"); you may not use this file except in compliance with
7
* the License. You may obtain a copy of the License at
9
* http://www.apache.org/licenses/LICENSE-2.0
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
18
package org.apache.solr.common.params;
21
* A collection of standard params used by Update handlers
23
* @version $Id: UpdateParams.java 1165749 2011-09-06 16:20:07Z janhoy $
26
public interface UpdateParams
28
/** wait till the command has flushed */
29
public static String WAIT_FLUSH = "waitFlush";
31
/** wait for the search to warm up */
32
public static String WAIT_SEARCHER = "waitSearcher";
34
/** overwrite indexing fields */
35
public static String OVERWRITE = "overwrite";
37
/** Commit everything after the command completes */
38
public static String COMMIT = "commit";
40
/** Commit within a certain time period (in ms) */
41
public static String COMMIT_WITHIN = "commitWithin";
43
/** Optimize the index and commit everything after the command completes */
44
public static String OPTIMIZE = "optimize";
46
/** Rollback update commands */
47
public static String ROLLBACK = "rollback";
49
/** Select the update processor chain to use. A RequestHandler may or may not respect this parameter */
50
public static final String UPDATE_CHAIN = "update.chain";
51
// TODO: Include the old deprecated param, for removal in Solr 4.0
52
public static final String UPDATE_CHAIN_DEPRECATED = "update.processor";
55
* If optimizing, set the maximum number of segments left in the index after optimization. 1 is the default (and is equivalent to calling IndexWriter.optimize() in Lucene).
57
public static final String MAX_OPTIMIZE_SEGMENTS = "maxSegments";
59
public static final String EXPUNGE_DELETES = "expungeDeletes";