/** * Creates a new index * * <p>{@sample.xml ../../../doc/mongo-connector.xml.sample mongo:create-index} * * @param collection the name of the collection where the index will be created * @param field the name of the field which will be indexed * @param order the indexing order */ @Processor public void createIndex( String collection, String field, @Optional @Default("ASC") IndexOrder order) { client.createIndex(collection, field, order); }