All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.autonomy.nonaci.indexing.impl.DreDeleteDocCommand Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
/*
 * (c) Copyright 2008-2015 Micro Focus or one of its affiliates.
 *
 * Licensed under the MIT License (the "License"); you may not use this file
 * except in compliance with the License.
 *
 * The only warranties for products and services of Micro Focus and its affiliates
 * and licensors ("Micro Focus") are as may be set forth in the express warranty
 * statements accompanying such products and services. Nothing herein should be
 * construed as constituting an additional warranty. Micro Focus shall not be
 * liable for technical or editorial errors or omissions contained herein. The
 * information contained herein is subject to change without notice.
 */
package com.autonomy.nonaci.indexing.impl;

/**
 * Allows you to identify individual documents and/or ranges of documents by their ID, and delete them from IDOL server.
 * 

* To restore a document that was deleted using DREDELETEDOC, use the DREUNDELETEDOC * command. * * @author boba */ public class DreDeleteDocCommand extends IndexCommandImpl { /** Creates a new instance of DreDeleteDocCommand */ public DreDeleteDocCommand() { super(CMD_DREDELETEDOC); } public String getDocs() { return get(PARAM_DOCS); } /** * Specify one or more individual documents and / or a range of documents that you want to delete. You can use the * following formats to do this (if you want to combine the two formats you must separate them with plus symbols * with no spaces before or after a plus symbol): *

*
doc IDs
*
Specify the IDs of one or more documents. If you want to specify multiple document IDs, you must separate * them with plus symbols (there must be no space before or after a plus symbol).
*
range=[<first doc>,<last doc>]
*
Enter the document ID of the first and last document in a range of documents that you want to delete. You * can delete up to 5000 documents at a time.
*
* * @param docs The IDs of the documents to be deleted. */ public void setDocs(final String docs) { put(PARAM_DOCS, docs); } public String getStateId() { return get(PARAM_STATE_ID); } /** * Enter the name of a state token (created earlier with the StoreState parameter of the * Query, Suggest, or SuggestOnText action) that lists the documents do * be deleted. *

* If you specify the token name only, all documents listed in the token are deleted. If you add a (zero-based) * index range -- or individual numbers separated by plus signs -- in square brackets after the token name, only * that range or set of documents is deleted. (Note that you must list the entries in increasing numerical order.) * * @param stateId The name of a state token that specifies the documents to be deleted. */ public void setStateId(final String stateId) { put(PARAM_STATE_ID, stateId); } } // End of class DreDeleteDocCommand...





© 2015 - 2024 Weber Informatics LLC | Privacy Policy