org.apache.camel.component.es.ElasticsearchOperation Maven / Gradle / Ivy
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.camel.component.es;
/**
* The ElasticSearch server operations list which are implemented
*
*
* - Index - Index a document associated with a given index
* - Update - Updates a document based on a script
* - Bulk - Executes a bulk of index / create/ update delete operations
* - GetById - Get an indexed document from its id
* - MultiGet - Multiple get documents
* - Delete - Deletes a document from the index based on the index and id
* - DeleteIndex - Deletes an index based on the index name
* - MultiSearch - Multiple Search across one or more indices with a query
* - Search - Search across one or more indices with a query
* - Exists - Checks whether the index exists or not
* - Ping - Pings the Elasticsearch cluster
*
*
*
*
*
* (using search with size=0 and terminate_after=1 parameters)
*/
public enum ElasticsearchOperation {
Index("Index"),
Update("Update"),
Bulk("Bulk"),
GetById("GetById"),
MultiGet("MultiGet"),
MultiSearch("MultiSearch"),
Delete("Delete"),
DeleteIndex("DeleteIndex"),
Search("Search"),
Exists("Exists"),
Ping("Ping");
private final String text;
ElasticsearchOperation(final String text) {
this.text = text;
}
@Override
public String toString() {
return text;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy