diff --git a/.ci/doc/config.yml b/.ci/doc/config.yml
new file mode 100644
index 00000000..9bd2fe99
--- /dev/null
+++ b/.ci/doc/config.yml
@@ -0,0 +1,18 @@
+---
+
+snippets:
+ mount: /mnt
+ path: 'doc/**/snippets/*.test.yml'
+ templates: /mnt/.ci/doc/templates
+
+runners:
+ default: java
+
+ java:
+ service: doc-runner-java
+ path: /var/snippets/java
+ build:
+ cmd: cd /mnt && ./gradlew jar
+ run:
+ before: timeout 600 bash -c 'until stat /tmp/runner_is_ready && curl -f -s -o /dev/null http://kuzzle:7512/_now; do sleep 1; done'
+ cmd: cp /mnt/build/libs/sdk-java-[0-9+].[0-9+].[0-9+].jar /mnt/.ci/doc/project/libs/ && cp {{ snippet.source }} /mnt/.ci/doc/project/src/main/java/SnippetTest.java && cd /mnt/.ci/doc/project/ && ./gradlew build && java -classpath 'libs/sdk-java-3.0.0.jar:' -jar build/libs/project-1.jar
diff --git a/.ci/doc/docker-compose.yml b/.ci/doc/docker-compose.yml
new file mode 100644
index 00000000..5a2e9223
--- /dev/null
+++ b/.ci/doc/docker-compose.yml
@@ -0,0 +1,56 @@
+version: '3'
+
+services:
+ kuzzle:
+ image: kuzzleio/kuzzle:2
+ ports:
+ - "7512:7512"
+ cap_add:
+ - SYS_PTRACE
+ depends_on:
+ - redis
+ - elasticsearch
+ environment:
+ - kuzzle_services__storageEngine__client__node=http://elasticsearch:9200
+ - kuzzle_services__internalCache__node__host=redis
+ - kuzzle_services__memoryStorage__node__host=redis
+ - kuzzle_services__storageEngine__commonMapping__dynamic=true
+ - NODE_ENV=production
+
+ redis:
+ image: redis:5
+
+ elasticsearch:
+ image: kuzzleio/elasticsearch:7
+ ulimits:
+ nofile: 65536
+
+ doc-tests:
+ image: kuzzleio/snippets-tests
+ privileged: true
+ ports:
+ - '9229:9229'
+ depends_on:
+ - kuzzle
+ - doc-runner-java
+ volumes:
+ - ../..:/mnt
+ - /var/run/docker.sock:/var/run/docker.sock
+ - snippets:/var/snippets
+ environment:
+ - CONFIG_FILE=/mnt/.ci/doc/config.yml
+
+ doc-runner-java:
+ image: adoptopenjdk/openjdk8
+ command: >
+ bash -c '
+ mkdir -p /var/snippets/java;
+ touch /tmp/runner_is_ready;
+ tail -f /dev/null
+ '
+ volumes:
+ - ../..:/mnt
+ - snippets:/var/snippets
+
+volumes:
+ snippets:
diff --git a/.ci/doc/project/build.gradle b/.ci/doc/project/build.gradle
new file mode 100644
index 00000000..99b9cd83
--- /dev/null
+++ b/.ci/doc/project/build.gradle
@@ -0,0 +1,31 @@
+plugins {
+ id 'java'
+}
+
+group 'test.example.java'
+version '1'
+
+sourceCompatibility = 1.8
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+ compile fileTree(dir: 'libs', include: ['*.jar'])
+ compile 'com.neovisionaries:nv-websocket-client:2.9'
+ compile 'com.google.code.gson:gson:2.8.5'
+}
+
+jar {
+ manifest {
+ attributes(
+ 'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
+ 'Main-Class': 'SnippetTest'
+ )
+ }
+ from {
+ configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
+ }
+}
\ No newline at end of file
diff --git a/.ci/doc/project/gradle/wrapper/gradle-wrapper.jar b/.ci/doc/project/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 00000000..f3d88b1c
Binary files /dev/null and b/.ci/doc/project/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/.ci/doc/project/gradle/wrapper/gradle-wrapper.properties b/.ci/doc/project/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 00000000..718c0f3d
--- /dev/null
+++ b/.ci/doc/project/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Fri Jan 17 11:19:10 CET 2020
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.1-all.zip
diff --git a/.ci/doc/project/gradlew b/.ci/doc/project/gradlew
new file mode 100755
index 00000000..2fe81a7d
--- /dev/null
+++ b/.ci/doc/project/gradlew
@@ -0,0 +1,183 @@
+#!/usr/bin/env sh
+
+#
+# Copyright 2015 the original author or authors.
+#
+# Licensed 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
+#
+# https://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.
+#
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=`expr $i + 1`
+ done
+ case $i in
+ 0) set -- ;;
+ 1) set -- "$args0" ;;
+ 2) set -- "$args0" "$args1" ;;
+ 3) set -- "$args0" "$args1" "$args2" ;;
+ 4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=`save "$@"`
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+exec "$JAVACMD" "$@"
diff --git a/.ci/doc/project/gradlew.bat b/.ci/doc/project/gradlew.bat
new file mode 100644
index 00000000..24467a14
--- /dev/null
+++ b/.ci/doc/project/gradlew.bat
@@ -0,0 +1,100 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/.ci/doc/project/libs/.keep b/.ci/doc/project/libs/.keep
new file mode 100644
index 00000000..e69de29b
diff --git a/.ci/doc/project/settings.gradle b/.ci/doc/project/settings.gradle
new file mode 100644
index 00000000..682509ee
--- /dev/null
+++ b/.ci/doc/project/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'project'
diff --git a/.ci/doc/project/src/main/java/.keep b/.ci/doc/project/src/main/java/.keep
new file mode 100644
index 00000000..e69de29b
diff --git a/.ci/doc/templates/catch.tpl.java b/.ci/doc/templates/catch.tpl.java
new file mode 100644
index 00000000..bd56af5f
--- /dev/null
+++ b/.ci/doc/templates/catch.tpl.java
@@ -0,0 +1,25 @@
+import io.kuzzle.sdk.Kuzzle;
+import io.kuzzle.sdk.Protocol.WebSocket;
+import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
+import io.kuzzle.sdk.Options.KuzzleOptions;
+import java.util.concurrent.ConcurrentHashMap;
+import io.kuzzle.sdk.CoreClasses.Responses.Response;
+
+public class SnippetTest {
+ private static Kuzzle kuzzle;
+
+ public static void main(String[] argv) {
+ try {
+ kuzzle = new Kuzzle(new WebSocket("kuzzle"));
+ kuzzle.connect();
+ [snippet-code]
+ System.out.println("Error");
+ } catch (Exception e) {
+ System.out.println(e.getMessage());
+ } finally {
+ if (kuzzle != null) {
+ kuzzle.disconnect();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/.ci/doc/templates/default.tpl.java b/.ci/doc/templates/default.tpl.java
new file mode 100644
index 00000000..8bfc6f53
--- /dev/null
+++ b/.ci/doc/templates/default.tpl.java
@@ -0,0 +1,31 @@
+import io.kuzzle.sdk.Kuzzle;
+import java.util.ArrayList;
+import io.kuzzle.sdk.Protocol.WebSocket;
+import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
+import io.kuzzle.sdk.Options.KuzzleOptions;
+import java.util.concurrent.ConcurrentHashMap;
+import io.kuzzle.sdk.CoreClasses.Responses.Response;
+import io.kuzzle.sdk.CoreClasses.SearchResult;
+import io.kuzzle.sdk.Options.SubscribeOptions;
+import io.kuzzle.sdk.Options.UpdateOptions;
+import io.kuzzle.sdk.Options.CreateOptions;
+import io.kuzzle.sdk.Options.SearchOptions;
+
+public class SnippetTest {
+ private static Kuzzle kuzzle;
+
+ public static void main(String[] argv) {
+ try {
+ kuzzle = new Kuzzle(new WebSocket("kuzzle"));
+ kuzzle.connect();
+ [snippet-code]
+ System.out.println("Success");
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ if (kuzzle != null) {
+ kuzzle.disconnect();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/.ci/doc/templates/empty.tpl.java b/.ci/doc/templates/empty.tpl.java
new file mode 100644
index 00000000..f6c250ed
--- /dev/null
+++ b/.ci/doc/templates/empty.tpl.java
@@ -0,0 +1 @@
+[snippet-code]
\ No newline at end of file
diff --git a/.ci/doc/templates/print-result-array.tpl.java b/.ci/doc/templates/print-result-array.tpl.java
new file mode 100644
index 00000000..c4fd68cd
--- /dev/null
+++ b/.ci/doc/templates/print-result-array.tpl.java
@@ -0,0 +1,30 @@
+import io.kuzzle.sdk.Kuzzle;
+import io.kuzzle.sdk.Protocol.WebSocket;
+import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
+import io.kuzzle.sdk.Options.KuzzleOptions;
+import io.kuzzle.sdk.Options.SubscribeOptions;
+import io.kuzzle.sdk.CoreClasses.Responses.Response;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.ArrayList;
+
+public class SnippetTest {
+ private static Kuzzle kuzzle;
+
+ public static void main(String[] argv) {
+ try {
+ kuzzle = new Kuzzle(new WebSocket("kuzzle"));
+ kuzzle.connect();
+ [snippet-code]
+ for (Object o : result.get("successes")) {
+ System.out.println(o);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ if (kuzzle != null) {
+ kuzzle.disconnect();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/.ci/doc/templates/print-result-arraylist.tpl.java b/.ci/doc/templates/print-result-arraylist.tpl.java
new file mode 100644
index 00000000..ca5a96dc
--- /dev/null
+++ b/.ci/doc/templates/print-result-arraylist.tpl.java
@@ -0,0 +1,30 @@
+import io.kuzzle.sdk.Kuzzle;
+import io.kuzzle.sdk.Protocol.WebSocket;
+import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
+import io.kuzzle.sdk.Options.KuzzleOptions;
+import io.kuzzle.sdk.Options.SubscribeOptions;
+import io.kuzzle.sdk.CoreClasses.Responses.Response;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.ArrayList;
+
+public class SnippetTest {
+ private static Kuzzle kuzzle;
+
+ public static void main(String[] argv) {
+ try {
+ kuzzle = new Kuzzle(new WebSocket("kuzzle"));
+ kuzzle.connect();
+ [snippet-code]
+ for (Object o : result) {
+ System.out.println(o);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ if (kuzzle != null) {
+ kuzzle.disconnect();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/.ci/doc/templates/print-result.tpl.java b/.ci/doc/templates/print-result.tpl.java
new file mode 100644
index 00000000..7ab9a27f
--- /dev/null
+++ b/.ci/doc/templates/print-result.tpl.java
@@ -0,0 +1,30 @@
+import io.kuzzle.sdk.Kuzzle;
+import io.kuzzle.sdk.Protocol.WebSocket;
+import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
+import io.kuzzle.sdk.Options.KuzzleOptions;
+import io.kuzzle.sdk.Options.SubscribeOptions;
+import io.kuzzle.sdk.Options.UpdateOptions;
+import io.kuzzle.sdk.Options.CreateOptions;
+import io.kuzzle.sdk.CoreClasses.Responses.Response;
+
+import java.util.concurrent.ConcurrentHashMap;
+import java.util.ArrayList;
+
+public class SnippetTest {
+ private static Kuzzle kuzzle;
+
+ public static void main(String[] argv) {
+ try {
+ kuzzle = new Kuzzle(new WebSocket("kuzzle"));
+ kuzzle.connect();
+ [snippet-code]
+ System.out.println(result.toString());
+ } catch (Exception e) {
+ e.printStackTrace();
+ } finally {
+ if (kuzzle != null) {
+ kuzzle.disconnect();
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/.ci/doc/templates/without-connect.tpl.java b/.ci/doc/templates/without-connect.tpl.java
new file mode 100644
index 00000000..06da4d92
--- /dev/null
+++ b/.ci/doc/templates/without-connect.tpl.java
@@ -0,0 +1,20 @@
+import io.kuzzle.sdk.Kuzzle;
+import io.kuzzle.sdk.Protocol.WebSocket;
+
+public class SnippetTest {
+ private static Kuzzle kuzzle;
+
+ public static void main(String[] argv) {
+ try {
+ kuzzle = new Kuzzle(new WebSocket("kuzzle"));
+ [snippet-code]
+ System.out.println("Success");
+ } catch (Exception e) {
+ System.err.println(e.getMessage());
+ } finally {
+ if (kuzzle != null) {
+ kuzzle.disconnect();
+ }
+ }
+ }
+}
diff --git a/.ci/doc/templates/without-ctor.tpl.java b/.ci/doc/templates/without-ctor.tpl.java
new file mode 100644
index 00000000..0050e727
--- /dev/null
+++ b/.ci/doc/templates/without-ctor.tpl.java
@@ -0,0 +1,15 @@
+import io.kuzzle.sdk.Kuzzle;
+import io.kuzzle.sdk.Protocol.WebSocket;
+import io.kuzzle.sdk.Options.Protocol.WebSocketOptions;
+import io.kuzzle.sdk.Options.KuzzleOptions;
+
+public class SnippetTest {
+ public static void main(String[] argv) {
+ try {
+ [snippet-code]
+ System.out.println("Success");
+ } catch (Exception e) {
+ System.err.println((e.getMessage()));
+ }
+ }
+}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 2e9487e3..ea7a48bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,5 +2,12 @@
build
out
.idea
+bin
+*.iml
+*.class
+bin
+.classpath
+.project
-doc/framework
\ No newline at end of file
+doc/framework
+node_modules
diff --git a/.settings/org.eclipse.buildship.core.prefs b/.settings/org.eclipse.buildship.core.prefs
new file mode 100644
index 00000000..e8895216
--- /dev/null
+++ b/.settings/org.eclipse.buildship.core.prefs
@@ -0,0 +1,2 @@
+connection.project.dir=
+eclipse.preferences.version=1
diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 00000000..cd6e3b3f
--- /dev/null
+++ b/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,281 @@
+eclipse.preferences.version=1
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=48
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=48
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=48
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=true
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
+org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
+org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
+org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=true
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=80
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_on_off_tags=false
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
+org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
+org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
diff --git a/.settings/org.eclipse.jdt.ui.prefs b/.settings/org.eclipse.jdt.ui.prefs
new file mode 100644
index 00000000..9de95cfa
--- /dev/null
+++ b/.settings/org.eclipse.jdt.ui.prefs
@@ -0,0 +1,60 @@
+cleanup.add_default_serial_version_id=true
+cleanup.add_generated_serial_version_id=false
+cleanup.add_missing_annotations=true
+cleanup.add_missing_deprecated_annotations=true
+cleanup.add_missing_methods=false
+cleanup.add_missing_nls_tags=false
+cleanup.add_missing_override_annotations=true
+cleanup.add_missing_override_annotations_interface_methods=true
+cleanup.add_serial_version_id=false
+cleanup.always_use_blocks=true
+cleanup.always_use_parentheses_in_expressions=false
+cleanup.always_use_this_for_non_static_field_access=false
+cleanup.always_use_this_for_non_static_method_access=false
+cleanup.convert_to_enhanced_for_loop=false
+cleanup.correct_indentation=true
+cleanup.format_source_code=true
+cleanup.format_source_code_changes_only=false
+cleanup.make_local_variable_final=true
+cleanup.make_parameters_final=false
+cleanup.make_private_fields_final=true
+cleanup.make_type_abstract_if_missing_method=false
+cleanup.make_variable_declarations_final=false
+cleanup.never_use_blocks=false
+cleanup.never_use_parentheses_in_expressions=true
+cleanup.organize_imports=true
+cleanup.qualify_static_field_accesses_with_declaring_class=false
+cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
+cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
+cleanup.qualify_static_member_accesses_with_declaring_class=true
+cleanup.qualify_static_method_accesses_with_declaring_class=false
+cleanup.remove_private_constructors=true
+cleanup.remove_trailing_whitespaces=true
+cleanup.remove_trailing_whitespaces_all=true
+cleanup.remove_trailing_whitespaces_ignore_empty=false
+cleanup.remove_unnecessary_casts=true
+cleanup.remove_unnecessary_nls_tags=true
+cleanup.remove_unused_imports=true
+cleanup.remove_unused_local_variables=false
+cleanup.remove_unused_private_fields=true
+cleanup.remove_unused_private_members=false
+cleanup.remove_unused_private_methods=true
+cleanup.remove_unused_private_types=true
+cleanup.sort_members=true
+cleanup.sort_members_all=true
+cleanup.use_blocks=true
+cleanup.use_blocks_only_for_return_and_throw=false
+cleanup.use_parentheses_in_expressions=false
+cleanup.use_this_for_non_static_field_access=false
+cleanup.use_this_for_non_static_field_access_only_if_necessary=true
+cleanup.use_this_for_non_static_method_access=false
+cleanup.use_this_for_non_static_method_access_only_if_necessary=true
+cleanup_profile=_Eclipse [built-in] custom
+cleanup_settings_version=2
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] custom
+formatter_settings_version=12
+org.eclipse.jdt.ui.ignorelowercasenames=true
+org.eclipse.jdt.ui.importorder=java;javax;org;com;
+org.eclipse.jdt.ui.ondemandthreshold=99
+org.eclipse.jdt.ui.staticondemandthreshold=99
diff --git a/.settings/org.eclipse.ltk.core.refactoring.prefs b/.settings/org.eclipse.ltk.core.refactoring.prefs
new file mode 100644
index 00000000..b196c64a
--- /dev/null
+++ b/.settings/org.eclipse.ltk.core.refactoring.prefs
@@ -0,0 +1,2 @@
+eclipse.preferences.version=1
+org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false
diff --git a/.travis.yml b/.travis.yml
index 674ad6f2..bdb9085b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,38 +1,45 @@
-
env:
global:
- # BINTRAY_USER
- - secure: "LxONQZ8tHhxTqgu+kqx9fMCubCfTQHZsy/3ibE+l72xG8sOAYfj4hB5k1p4kklnv3skeFQEiL6B++B2qRITOEAPRdD8FExkc+UF/TM1rY5aUtjIjoA3uH4n9hYjHirTO5qNKf4KxDr1Zbcn4ISGebJ0EYwE0SG/ptrd06wPp1G8AHshc8XaZgen6gDaik66OWpQkOkmGsRz2EPmIBVgo7L2LGK21DSxE4/PTo+ou0WYCyxyyWSKLTLt1xZpt9LOtk7IckrHl+Nenl6IbV/CjHb3+5vwdifyFQd+K6AVe32iTIVjdxj7rDhEHYD0EqKb79ey+u8p9HquLnGH03gcVBeFQu/qhhQStsiwrD/S9c8jwBjWOOUnVI4bEbqjqxFaRlPfVnRaAjQZLRKHdqxyTJCdC2Ls79LmkqSCyTxM7WBwwgu4Slf6RJSbKJb5naHYlwDuKPbeyHLAYrxgjEHC28bxQiTr5wwBWxE9BLxUcnkFAXzsy3qE74FQOIjvQbtrruLIOGwRGRYtzyfygGA3MfTHug6JwZGngqFf3k+kbznE8fZe7zxMwT63P6/54rR5fU/plLoTNFqdQsZGAfGOSYuHIEzWXOkWxffqsOwxPa1VxQTLD32O95oBcrcvmw4toC2NeFTe/+zZRMfGMbu7QIi0AL3qFpky3j12zcyA/M2I="
- # BINTRAY_KEY
- - secure: "Iqn4ImAwFmQeoXXDb5JOsfcunSiSeLvdp4+AEsIeniMhpIk++ZJPDSxecC+NrvndTrxOXVqHEsFUfHnZYvPHMuvg9nhXvz/rmmyYH0hZqkKg2q2qM+Sz2UJBCvs6D1sJv3ZEVi8d6fVx5bbKXMzSE023XFBBK7l8nBsG5ObXBOzTzrus9UP+fk4FXif/QKJNcUSN7rLejUIxMCk36gMQYqYGiiqL3VE60aTpaUh7Vqj/8nCEPcO3K3gXTVybcGBcmsvinV5YEc+5s5ue8eX10ONY0oYF5GFd7aEsrKEFzT2d7MVq0a29cH1rWrxt6q7vXGZNKAdAQrDyRZUz9rMFtqH+2xOgagm22UiUYNlzrn2eDYRBd08X0y043gumdgmOq/CsyaI5bcUSKMr+rsZ2XIzBjefl8MU0xBhtKMO9g9WRfGBxjRbdg0ivRQoVGJbcUXTDl2WrLMgMjt8DT4nQP+PHdIV2FjZVNioqucqmEzfHIJt+hiw7EonGDnZ9uqkW6hm6b4JpGr5QF1yY6kKVCUQxLueUBAVdiZpULdevL7uYEUzdWIES2wTFE7LaWpHqnCOHYVpkIQpdole6+R0OhINhSHK0FW858xhZ2QGjtL1SSh5yzK4th6dpGKCiwMUSGSj5frpIeWPi+GqYoUQz+TvMGLGG2XGfihx74kQE0FA="
- AWS_ACCESS_KEY_ID=AKIAIYAXFUAHXOWP2MJA
# AWS_SECRET_ACCESS_KEY
- - secure: "dIcQzFpHKRf92cAiMA+SYsudtHWNcbYadVDb7zlJayWGUGy0i4CGwwOoOOrUcWgHxYhdN9XGwvFJTSswjHLRiHEyPFBwW8x/VfaCRS+jAcblMXyWNajvm0930S/3fRv5LA+4UKNmeXMuCGSf35ZqyEIEeuThkIomYvB/tBD1wcMpBUtQfmilLm3sUTaGUnFB651jBHshlYOZ8BAGLLmX1PAfT1wCrpVcrjq5kayNOIilJkwKGSr6q9C0p7+ULNZ4bHsATKLlYNs7Xcs+9a66p1EtKetP72DQsHrr8x3wB2Hhk3U425kmjIoE3gYnF7x3h3EpO5m0rGessbgdRF1SF7XK7Bsj4ukLb4HoktA8G7734ox4848RpH60aKUHRCsiebX7JKgJe1eEwU5BZK8+PFPGH6bI1YG1HQNqthzotTHFXu058uMHnyLv2PmDWWEYMM79fCyuRo8gJJ8GJhDgaGLgtizzEb6grcNW+QwunjA6nP4o7F9o+9b3lfGlsgL595V/CeWLNnHvENkSr67RN2NkDZm6q6EHbOk8AWtQc24mVawCwCbcJjp0sPkbQdCHUXSBNXjdwrvJLA3h94A2uVEmrV7mzMdfj+i9X3IS/HXRLeQk6Ivq2s/b1W6c7rBfz4zZUO7Uu5iYpVzT71yNFra13JkW3REFgHgETEvGkko="
-
-
-sudo: true
-
+ - secure: NElUP03Z1jbkOO20zYOo6WTdXrHa+b1UbMQJJX1rvG8wLHcEEid5m5VUa9UdSrBT4OxeVLKTVqEtEgFshz8Jjcc7JJ4pZBtGq4ty+S+nG6F9DJ+IMS2kD8h5qtoqh1TBLhov19s0mRNCG53No2+8VSk8STAeSG7x2hL2PAgJq3LCCy5lYVbmhnrCXObtd1a7Nq8XV7EHM+R9aITq3+jKa/NpdADoUv/WcoQAqjc8W3GhACRiNxRaGM58OF2WTojLM5fD3wwuicGkcsBkZkxho4cs0u36EEoxhZuy9U2/Emp7uhs9yCrhY0AwqYbSqvZ6jiwtJflvHHAsW2ZTgHWUekKippAyPIqF+QTeBvkg+q7tabOkfQLaZcREDzUBMI5AQiIW0Sv1fTPEs5jJv2+dE4bzi6BJmzFFGE0iHt4Nui7TLYMeAN17RYB5rJK50AGBA42Puzjr8CaV1FfnqLXOwiDXjGwvz7iHk4MMHFT/vvLcgDgHM16SM5QvhfbfX6Aj13VIG9lWUfKsalMSug8+zrXadtnZoz5XPskw1oA2iEUmgNzS33EVedgtxWDykadn3zhA+Ii+4C+Gge1dPG0sNXYiyI0/XKwlHBe6/Ar/DzKAf9Fo7/Z2haYGHC8XXmblagzVTxqX1FZVeiI3kyDBtduMSILU5ir5VA0dNtGdKVY=
+# ------------------------
+# Jobs configuration
+# ------------------------
jobs:
include:
- stage: Tests
name: Dead link check
- if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/ OR type = cron
+ if:
+ type = pull_request OR type = push AND branch =~ /^master|[0-9]+-(dev|stable)$/
+ OR type = cron
language: node_js
- node_js: 10
-
+ node_js: 12
before_script:
+
+ - npm ci
- npm run doc-prepare
- - npm run --prefix doc/framework clone-repos
+ - $(npm bin)/kuzdoc iterate-repos:install --repos_path doc/framework/.repos/
+ - $(npm bin)/kuzdoc framework:link -d /sdk/java/3/ -v 3
script:
- gem install typhoeus
- - HYDRA_MAX_CONCURRENCY=20 npm run --prefix doc/framework dead-links
+ - cd doc/framework/ && HYDRA_MAX_CONCURRENCY=20 ruby .ci/dead-links.rb -p src/sdk/java/3/
+
+ - stage: Tests
+ name: Documentation Snippets
+ if: type = pull_request OR type = push AND branch =~ /^master|[0-9]+-dev$/ OR type = cron
+ language: node_js
+ node_js: 12
+ script:
+ - docker-compose -f .ci/doc/docker-compose.yml run doc-tests index
- stage: Deployment Doc Dev
name: Deploy next-docs.kuzzle.io
- if: type = push AND branch =~ .*-dev
+ if: type = push AND branch =~ /^[0-9]+-dev$/
language: node_js
- node_js: 10
+ node_js: 12
env:
+ - BRANCH=dev
- NODE_ENV=production
- S3_BUCKET=docs-next.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E2ZCCEK9GRB49U
@@ -40,12 +47,14 @@ jobs:
addons:
apt:
+ update: true
packages:
- python
- python-pip
install:
- pip install awscli --upgrade --user
+ - npm ci
script:
- npm run doc-prepare
@@ -56,6 +65,8 @@ jobs:
script:
- npm run doc-upload
skip_cleanup: true
+ on:
+ all_branches: true
after_deploy:
- npm run doc-cloudfront
@@ -64,56 +75,76 @@ jobs:
name: Deploy docs.kuzzle.io
if: type = push AND branch =~ /^master|[0-9]+-stable$/
language: node_js
- node_js: 10
+ node_js: 12
env:
- NODE_ENV=production
- S3_BUCKET=docs.kuzzle.io
- CLOUDFRONT_DISTRIBUTION_ID=E3D6RP0POLCJMM
- AWS_DEFAULT_REGION=us-west-2
-
addons:
apt:
packages:
- python
- python-pip
-
install:
- pip install awscli --upgrade --user
-
+ - npm ci
script:
- npm run doc-prepare
- npm run doc-build
-
deploy:
provider: script
script:
- npm run doc-upload
skip_cleanup: true
-
+ on:
+ all_branches: true
after_deploy:
- npm run doc-cloudfront
+ - stage: Builds
+ name: Build SDK Java
+ jdk: openjdk8
+ sudo: false
+ before_cache:
+ - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
+ - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
+ cache:
+ directories:
+ - "$HOME/.gradle/caches/"
+ - "$HOME/.gradle/wrapper/"
+ install:
+ - cd $TRAVIS_BUILD_DIR/
+ - ./gradlew assemble
+ script:
+ - ./gradlew build
- - stage: Deployment
- name: Deploy to Bintray
- if: branch = master AND tag IS present AND type != cron
+ - stage: Unit tests
+ name: Unit tests SDK Java
language: java
-
- jdk:
- - openjdk8
-
+ jdk: openjdk8
+ sudo: false
+ before_cache:
+ - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
+ - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
+ cache:
+ directories:
+ - "$HOME/.gradle/caches/"
+ - "$HOME/.gradle/wrapper/"
+ install:
+ - cd $TRAVIS_BUILD_DIR/
script:
- bash gradlew test jacocoTestReport
-
- notifications:
- email: false
-
- after_success:
- - bash <(curl -s https://codecov.io/bash)
-
- deploy:
- provider: script
- script: ./gradlew bintrayUpload
- skip_cleanup: true
- on:
- condition: $TRAVIS_BRANCH = master
+ - ./gradlew test
+
+stages:
+ - name: Unit Tests
+ if: type =~ /(cron|push|pull_request)/ AND branch =~ /^master|[0-9]+-(dev|stable)$/
+ - name: Builds
+ if: type =~ /(cron|push|pull_request)/ AND branch =~ /^master|[0-9]+-(dev|stable)$/
+
+notifications:
+ slack:
+ rooms:
+ - secure: ACjz4TJEYBEzmwVOYrCNnr4+jC0FaX+qh150QacYGIgaQYL+U3xLEQmWNlZ3oxaPPMDAk42m+diHolqNwh6qsOWaPSWRlGfLKhHLSzRI98bhF7HQ+3eLMYmx7y7SKwRzyRjus0jgxp0Kc2mq0nhKqv+7rarQtIgWlC1PLrzZ35CUbUlqYSoeYAlXoyDB1eZgYsvjt+eC5yCvGePsfKbupWC2/hIVl+qZ+9AhVmOfiMv7daFW29Vu300aoY+0IqwX7jHGcmHn/7QCRsx0IBy/SL24TzfSV9SUSnbjK4fTrcrhjYDEZdH1lpvDtvr50GgkrTjy1wPVz8XIyCZ7LZolylkx+nR1MWyvum20QRFub2Qhz/+rS+OFiQZ8H01BPuklLUTSQhBksfpGBck3d2yNLiTqGEVWYTnZ9mkCnMQ3BzJXEF04KLHG7wYn2rk6wjPghVmFQH5GMsxM5v33CFgcNzp6lRJOX9CmjZosck6o9SA0WlazHH/CLWWKk1wrQ1ygDayW5m+N/o58UIxgW2LIUlp4tV1z/bRtO2yTd020yWchlKPVmf1A5OMfigJNMRsQGNZNadS7qA2M394OJw3/Hg+0EVF8gai/V8FRijmkxmhYyCIYMcjaGwx8JxfoMrRKcM76haBAhg0JQxsSVKzyXfONGzd5DXjcxSGZ2wuEdu0=
+ on_success: never
+ on_failure: always
diff --git a/README.md b/README.md
index a5e7b9fd..0d236d14 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ https://bintray.com/kuzzle/maven
```xml
io.kuzzle
- kuzzle-sdk-java
+ sdk-java
2.0.0
pom
@@ -52,11 +52,11 @@ https://bintray.com/kuzzle/maven
### Gradle
```groovy
-compile 'io.kuzzle:kuzzle-sdk-java:2.0.0'
+compile 'io.kuzzle:sdk-java:2.0.0'
```
For amd64:
```groovy
-compile 'io.kuzzle:kuzzle-sdk-java:2.0.0'
+compile 'io.kuzzle:sdk-java:2.0.0'
```
diff --git a/build.gradle b/build.gradle
index 4ab207a4..69729b57 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,33 +1,30 @@
-/*
- * This file was generated by the Gradle 'init' task.
- *
- * This is a general purpose Gradle build.
- * Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds/
- */
-
-buildscript {
- repositories {
- jcenter()
- }
-}
+import org.gradle.api.JavaVersion
plugins {
id "com.jfrog.bintray" version "1.7.3"
id 'jacoco'
+ id 'java'
}
-group = 'io.kuzzle'
-version = '2.0.0'
-
allprojects {
repositories {
jcenter()
}
+ apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'java'
apply plugin: 'java-library'
}
+group 'io.kuzzle'
+version '3.0.0'
+
+sourceCompatibility = 1.8
+
+repositories {
+ mavenCentral()
+}
+
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
@@ -86,12 +83,12 @@ publishing {
artifact sourcesJar
artifact javadocJar
groupId 'io.kuzzle'
- artifactId 'kuzzle-sdk-java'
+ artifactId 'sdk-java'
version version
pom.withXml {
def root = asNode()
root.appendNode('description', 'Kuzzle JAVA SDK')
- root.appendNode('name', 'kuzzle-sdk-java')
+ root.appendNode('name', 'sdk-java')
root.appendNode('url', 'https://github.com/kuzzleio/sdk-java')
root.children().last() + pomConfig
}
@@ -100,8 +97,8 @@ publishing {
}
dependencies {
- compile group: 'org.json', name: 'json', version: '20180813'
- compile 'tech.gusavila92:java-android-websocket-client:1.2.2'
+ implementation 'com.neovisionaries:nv-websocket-client:2.9'
+ implementation 'com.google.code.gson:gson:2.8.5'
testImplementation 'junit:junit:4.12'
testImplementation 'org.hamcrest:hamcrest-junit:2.0.0.0'
testImplementation 'org.mockito:mockito-core:1.9.5'
@@ -117,15 +114,14 @@ jacocoTestReport {
check.dependsOn jacocoTestReport
-sourceSets {
- test {
- java {
- srcDirs = ["test"]
- }
- }
+compileJava {
+ sourceCompatibility = JavaVersion.VERSION_1_8
+ targetCompatibility = JavaVersion.VERSION_1_8
+}
+
+test {
+ useJUnit()
+
+ maxHeapSize = '1G'
}
-artifacts {
- archives sourcesJar
- archives javadocJar
-}
\ No newline at end of file
diff --git a/doc/2/core-classes/collection-mapping/apply/index.md b/doc/2/core-classes/collection-mapping/apply/index.md
deleted file mode 100644
index 8dab0698..00000000
--- a/doc/2/core-classes/collection-mapping/apply/index.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-code: true
-type: page
-title: apply
-description: CollectionMapping:apply
----
-
-# apply
-
-Applies the new mapping to the collection.
-
----
-
-## apply([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns this `CollectionMapping` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the updated `CollectionMapping` object.
-
-## Usage
-
-<<< ./snippets/apply-1.java
diff --git a/doc/2/core-classes/collection-mapping/apply/snippets/apply-1.java b/doc/2/core-classes/collection-mapping/apply/snippets/apply-1.java
deleted file mode 100644
index 0fc3a79e..00000000
--- a/doc/2/core-classes/collection-mapping/apply/snippets/apply-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-dataMapping.apply(new ResponseListener() {
- @Override
- public void onSuccess(CollectionMapping object) {
- // called once the mapping action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/collection-mapping/constructor/index.md b/doc/2/core-classes/collection-mapping/constructor/index.md
deleted file mode 100644
index 5627fb6a..00000000
--- a/doc/2/core-classes/collection-mapping/constructor/index.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: CollectionMapping:constructor
-order: 1
----
-
-# CollectionMapping
-
-When creating a new collection in the persistent data storage layer, Kuzzle uses a default mapping.
-This means that, by default, you won't be able to exploit the full capabilities of our persistent data storage layer (currently handled by [ElasticSearch](https://www.elastic.co/products/elasticsearch)), and your searches may suffer from below-average performance, depending on the amount of data you stored in a collection and the complexity of your database.
-
-The CollectionMapping object allows you to get the current mapping in a collection and to modify it if necessary.
-
-:::info
-Once a field mapping has been set, it cannot be removed without reconstructing the collection.
-:::
-
----
-
-## CollectionMapping(Collection, [mapping])
-
-| Arguments | Type | Description |
-| ------------ | ---------------------------------------------------- | --------------------------------- |
-| `Collection` | [Collection](/sdk/java/2/core-classes/collection) | An instantiated Collection object |
-| `mapping` | JSON Object | Optional mapping |
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ------------- | ----------- | --------------------------------------------- | ------- |
-| `headers` | JSON Object | Common headers for all sent documents. | get/set |
-| `mapping` | object | Easy-to-understand list of mappings per field | get/set |
-
-**Note:** the `headers` property is inherited from the provided [Collection](/sdk/java/2/core-classes/collection) object and can be overrided
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/collection-mapping/constructor/snippets/constructor-1.java b/doc/2/core-classes/collection-mapping/constructor/snippets/constructor-1.java
deleted file mode 100644
index 179c1145..00000000
--- a/doc/2/core-classes/collection-mapping/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,9 +0,0 @@
-
-CollectionMapping dataMapping = new CollectionMapping(dataCollection);
-
-JSONObject mapping = new JSONObject();
-JSONObject type = new JSONObject();
-type.put("type", "string");
-mapping.put("foo", type);
-
-CollectionMapping dataMapping = new CollectionMapping(dataCollection, mapping);
diff --git a/doc/2/core-classes/collection-mapping/index.md b/doc/2/core-classes/collection-mapping/index.md
deleted file mode 100644
index e2a17cc9..00000000
--- a/doc/2/core-classes/collection-mapping/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: CollectionMapping
-description: CollectionMapping documentation
----
diff --git a/doc/2/core-classes/collection-mapping/refresh/index.md b/doc/2/core-classes/collection-mapping/refresh/index.md
deleted file mode 100644
index 1ef27ec2..00000000
--- a/doc/2/core-classes/collection-mapping/refresh/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: refresh
-description: CollectionMapping:refresh
----
-
-# refresh
-
-Instantiates a new CollectionMapping object with an up-to-date content.
-
----
-
-## refresh([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the updated `CollectionMapping` object.
-
-## Usage
-
-<<< ./snippets/refresh-1.java
diff --git a/doc/2/core-classes/collection-mapping/refresh/snippets/refresh-1.java b/doc/2/core-classes/collection-mapping/refresh/snippets/refresh-1.java
deleted file mode 100644
index 6c562b46..00000000
--- a/doc/2/core-classes/collection-mapping/refresh/snippets/refresh-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-dataMapping.refresh(new ResponseListener() {
- @Override
- public void onSuccess(CollectionMapping object) {
- // called once the mapping has been retrieved from Kuzzle
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/collection-mapping/set-headers/index.md b/doc/2/core-classes/collection-mapping/set-headers/index.md
deleted file mode 100644
index b081b8b0..00000000
--- a/doc/2/core-classes/collection-mapping/set-headers/index.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-code: true
-type: page
-title: setHeaders
-description: CollectionMapping:setHeaders
----
-
-# setHeaders
-
-This is a helper function returning itself, allowing to easily chain calls.
-
----
-
-## setHeaders(content, [replace])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------------------------------------------------------- |
-| `content` | JSON Object | New content |
-| `replace` | boolean | true: replace the current content with the provided data, false: merge it |
-
-**Note:** by default, the `replace` argument is set to `false`
-
----
-
-## Return value
-
-Returns this `CollectionMapping` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-headers-1.java
diff --git a/doc/2/core-classes/collection-mapping/set-headers/snippets/set-headers-1.java b/doc/2/core-classes/collection-mapping/set-headers/snippets/set-headers-1.java
deleted file mode 100644
index 4ba87e2c..00000000
--- a/doc/2/core-classes/collection-mapping/set-headers/snippets/set-headers-1.java
+++ /dev/null
@@ -1,4 +0,0 @@
-
-JSONObject headers = new JSONObject();
-headers.put("someContent", "someValue");
-dataMapping.setHeaders(headers, true);
diff --git a/doc/2/core-classes/collection-mapping/set/index.md b/doc/2/core-classes/collection-mapping/set/index.md
deleted file mode 100644
index 7c8e9199..00000000
--- a/doc/2/core-classes/collection-mapping/set/index.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-code: true
-type: page
-title: set
-description: CollectionMapping:set
----
-
-# set
-
-Adds or updates a field mapping.
-
-:::info
-Changes made by this function won't be applied until you call the `apply` method
-:::
-
----
-
-## set(field, mapping)
-
-| Arguments | Type | Description |
-| --------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
-| `field` | string | Name of the field from which the mapping is to be added or updated |
-| `mapping` | JSON Object | Mapping for this field, following the [Elasticsearch Mapping format](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/mapping.html) |
-
----
-
-## Return Value
-
-Returns this `CollectionMapping` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-1.java
diff --git a/doc/2/core-classes/collection-mapping/set/snippets/set-1.java b/doc/2/core-classes/collection-mapping/set/snippets/set-1.java
deleted file mode 100644
index 8631d14a..00000000
--- a/doc/2/core-classes/collection-mapping/set/snippets/set-1.java
+++ /dev/null
@@ -1,7 +0,0 @@
-
-JSONObject mapping = new JSONObject();
-mapping.put("type", "string");
-mapping.put("index", "analyzed");
-mapping.put("null_value", "");
-
-dataMapping.set("field", mapping);
diff --git a/doc/2/core-classes/collection/collection-mapping/index.md b/doc/2/core-classes/collection/collection-mapping/index.md
deleted file mode 100644
index 68e15885..00000000
--- a/doc/2/core-classes/collection/collection-mapping/index.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-code: true
-type: page
-title: collectionMapping
-description: Collection:collectionMapping
----
-
-# collectionMapping
-
-Creates a new [CollectionMapping](/sdk/java/2/core-classes/collection-mapping) object, using its constructor.
-
----
-
-## collectionMapping([mapping])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ---------------- |
-| `mapping` | JSON Object | Optional mapping |
-
----
-
-## Return Value
-
-Returns the newly created [CollectionMapping](/sdk/java/2/core-classes/collection-mapping) object.
-
-## Usage
-
-<<< ./snippets/collection-mapping-1.java
diff --git a/doc/2/core-classes/collection/collection-mapping/snippets/collection-mapping-1.java b/doc/2/core-classes/collection/collection-mapping/snippets/collection-mapping-1.java
deleted file mode 100644
index 2205594c..00000000
--- a/doc/2/core-classes/collection/collection-mapping/snippets/collection-mapping-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-CollectionMapping dataMapping = kuzzle
- .collection("collection", "index")
- .collectionMapping(new JSONObject().put("someFiled", new JSONObject().put("type", "string").put("index", "analyzed"))
- .apply(new ResponseListener() {
- @Override
- public void onSuccess(CollectionMapping object) {
- // called once the mapping action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/constructor/index.md b/doc/2/core-classes/collection/constructor/index.md
deleted file mode 100644
index 4506e554..00000000
--- a/doc/2/core-classes/collection/constructor/index.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: Collection:constructor
-order: 1
----
-
-# Collection
-
-In Kuzzle, you manipulate documents and subscriptions, both related to collections.
-
-A collection is a set of data managed by Kuzzle. It acts like a data table for persistent documents, or like a room for pub/sub messages.
-
----
-
-## Collection(kuzzle, collection, index)
-
-| Arguments | Type | Description |
-| ------------ | ------ | ------------------------------------------------------ |
-| `kuzzle` | object | Kuzzle object |
-| `collection` | string | The name of the collection you want to manipulate |
-| `index` | string | Name of the index containing the collection |
-
-**Note:** We recommend you instantiate a Collection object by calling [Kuzzle.collection](/sdk/java/2/core-classes/kuzzle/collection) rather than using the constructor directly
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ------------- | ------ | -------------------------------------------------------- | ------- |
-| `collection` | string | The name of the collection handled by this instance | get |
-| `index` | object | Name of the index containing the collection | get |
-| `headers` | object | Headers for all sent documents. | get/set |
-| `kuzzle` | object | linked Kuzzle instance | get |
-
-**Note:** the `headers` property is inherited from the main `Kuzzle` object and can be overrided
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/collection/constructor/snippets/constructor-1.java b/doc/2/core-classes/collection/constructor/snippets/constructor-1.java
deleted file mode 100644
index 6a97b6a3..00000000
--- a/doc/2/core-classes/collection/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
- Collection myCollection = new Collection(kuzzle, "my-collection", "my-index");
diff --git a/doc/2/core-classes/collection/count/index.md b/doc/2/core-classes/collection/count/index.md
deleted file mode 100644
index 631d4abc..00000000
--- a/doc/2/core-classes/collection/count/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: count
-description: Collection:count
----
-
-# count
-
-Returns the number of documents matching the provided set of filters.
-
-:::info
-There is a small delay between the time a document is created and its availability in our search layer (usually a couple of seconds). That means that a document that was just created might not be immediately returned by this function.
-:::
-
----
-
-## count(filters, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------- |
-| `filters` | JSON Object | Filters in [ElasticSearch Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/query-dsl.html) format |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a count for the number of document matches as an `integer`.
-
-## Usage
-
-<<< ./snippets/count-1.java
-
-> Callback response:
-
-```json
-12
-```
diff --git a/doc/2/core-classes/collection/count/snippets/count-1.java b/doc/2/core-classes/collection/count/snippets/count-1.java
deleted file mode 100644
index f9f9ea2a..00000000
--- a/doc/2/core-classes/collection/count/snippets/count-1.java
+++ /dev/null
@@ -1,16 +0,0 @@
-
-JSONObject filters = new JSONObject();
-
-kuzzle
- .collection("collection", "index")
- .count(filters, new ResponseListener() {
- @Override
- public void onSuccess(Integer object) {
- // Handle success
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/create-document/index.md b/doc/2/core-classes/collection/create-document/index.md
deleted file mode 100644
index dcc286e3..00000000
--- a/doc/2/core-classes/collection/create-document/index.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-code: true
-type: page
-title: createDocument
-description: Collection:createDocument
----
-
-# createDocument
-
-Create a new document in Kuzzle and instantiate a [Document](/sdk/java/2/core-classes/document) object.
-
----
-
-## createDocument(Document, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------- |
-| `Document` | object | [Document](/sdk/java/2/core-classes/document) object |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## createDocument([id], content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------- |
-| `id` | string | Optional document identifier |
-| `content` | JSON object | Content of the document to create |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `volatile` | JSON object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-| `ifExist` | string | If the same document already exists: resolves to an `error`. Replaces the existing document if set to `replace` | `false` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a [Document](/sdk/java/2/core-classes/document) object containing the newly created document.
-
-## Usage
-
-<<< ./snippets/create-document-1.java
diff --git a/doc/2/core-classes/collection/create-document/snippets/create-document-1.java b/doc/2/core-classes/collection/create-document/snippets/create-document-1.java
deleted file mode 100644
index 7f4681c6..00000000
--- a/doc/2/core-classes/collection/create-document/snippets/create-document-1.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-Document myDocument = new Document(collection);
-myDocument.setContent("title", "foo");
-myDocument.setContent("content", "bar");
-
-Options opts = new Options();
-opts.setIfExist = "replace";
-
-kuzzle
- .collection("collection", "index")
- .createDocument(myDocument, new ResponseListener() {
- @Override
- public void onSuccess(Document object) {
- // callback called once the create action has been completed
- // => the result is a Document object
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/create/index.md b/doc/2/core-classes/collection/create/index.md
deleted file mode 100644
index 75a38919..00000000
--- a/doc/2/core-classes/collection/create/index.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-code: true
-type: page
-title: create
-description: Collection:create
----
-
-# create
-
-Creates a new [collection](/core/1/guides/essentials/store-access-data) in the provided `index`.
-
-
-
-You can also provide an optional data mapping that allow you to exploit the full capabilities of our
-persistent data storage layer, [ElasticSearch](https://www.elastic.co/products/elasticsearch) (check here the [mapping capabilities of ElasticSearch](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/mapping.html)).
-
-This method will only update the mapping if the collection already exists.
-
----
-
-## create([mapping], [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------- |
-| `mapping` | JSON Object | Optional data mapping |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Ralue
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-
-## Usage
-
-<<< ./snippets/create-1.java
-
-> Callback response:
-
-```json
-{
- "status": 200,
- "error": null,
- "requestId": "",
- "controller": "collection",
- "action": "create",
- "collection": "",
- "index": "index",
- "volatile": null,
- "result": {
- "acknowledged": true
- }
-}
-```
diff --git a/doc/2/core-classes/collection/create/snippets/create-1.java b/doc/2/core-classes/collection/create/snippets/create-1.java
deleted file mode 100644
index 137e24a4..00000000
--- a/doc/2/core-classes/collection/create/snippets/create-1.java
+++ /dev/null
@@ -1,26 +0,0 @@
-
-// Optional: a mapping can be provided and will be
-// applied when the collection is created
-JSONObject mapping = new JSONObject()
- .put("properties", new JSONObject()
- .put("field1", new JSONObject().put("type", ""))
- .put("field2", new JSONObject().put("type", ""))
- );
-
-kuzzle
- .collection("collection", "index")
- .create(mapping, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the create operation has completed
- // => the result is a JSON object containing the raw Kuzzle response:
- // {
- // acknowledged: true
- // }
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/delete-document/index.md b/doc/2/core-classes/collection/delete-document/index.md
deleted file mode 100644
index 27e216a8..00000000
--- a/doc/2/core-classes/collection/delete-document/index.md
+++ /dev/null
@@ -1,66 +0,0 @@
----
-code: true
-type: page
-title: deleteDocument
-description: Collection:deleteDocument
----
-
-# deleteDocument
-
-Delete a stored document, or all stored documents matching a search filter.
-
-:::info
-There is a small delay between the time a document is deleted and it being reflected in the search layer (usually a couple of seconds). That means that a document that was just deleted might still be returned by this function.
-:::
-
----
-
-## deleteDocument(documentId, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------ | ----------- | -------------------------- |
-| `documentId` | string | Unique document identifier |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## deleteDocument(filters, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------- |
-| `filters` | JSON object | Filters in [ElasticSearch Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/query-dsl.html) format |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `volatile` | JSON object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an `array` containing the ids of the deleted documents.
-
-## Usage
-
-<<< ./snippets/delete-document-1.java
-
-> Callback response:
-
-```json
-["AVCoeBkimsySTKTfa8AX"]
-```
diff --git a/doc/2/core-classes/collection/delete-document/snippets/delete-document-1.java b/doc/2/core-classes/collection/delete-document/snippets/delete-document-1.java
deleted file mode 100644
index 9bd203ba..00000000
--- a/doc/2/core-classes/collection/delete-document/snippets/delete-document-1.java
+++ /dev/null
@@ -1,36 +0,0 @@
-
-// Deleting one document
-kuzzle
- .collection("collection", "index")
- .deleteDocument("document unique ID", new ResponseListener() {
- @Override
- public void onSuccess(String object) {
- // The resulting string contains the deleted document ID
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
-
-// Deleting multiple documents
-JSONObject equalsFilter = new JSONObject()
- .put("filter", new JSONObject()
- .put("equals",
- new JSONObject().put("title", "foo")
- ));
-
-kuzzle
- .collection("collection", "index")
- .deleteDocument(equalsFilter, new ResponseListener() {
- @Override
- public void onSuccess(String[] object) {
- // The resulting object contains the list of deleted document IDs
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/delete-specifications/index.md b/doc/2/core-classes/collection/delete-specifications/index.md
deleted file mode 100644
index bad83f54..00000000
--- a/doc/2/core-classes/collection/delete-specifications/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: deleteSpecifications
-description: Collection:deleteSpecifications
----
-
-# deleteSpecifications
-
-Delete specifications linked to the collection object.
-
----
-
-## deleteSpecifications([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer indexation to return (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/delete-specifications-1.java
-
-> Callback response:
-
-```json
-{
- "acknowledged": true
-}
-```
diff --git a/doc/2/core-classes/collection/delete-specifications/snippets/delete-specifications-1.java b/doc/2/core-classes/collection/delete-specifications/snippets/delete-specifications-1.java
deleted file mode 100644
index 5f824b96..00000000
--- a/doc/2/core-classes/collection/delete-specifications/snippets/delete-specifications-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-// Deleting one document
-kuzzle
- .collection("collection", "index")
- .deleteSpecifications(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/document/index.md b/doc/2/core-classes/collection/document/index.md
deleted file mode 100644
index 22b8c904..00000000
--- a/doc/2/core-classes/collection/document/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-code: true
-type: page
-title: document
-description: Collection:document
----
-
-# document
-
-Creates a new [Document](/sdk/java/2/core-classes/document) object, using its constructor.
-
----
-
-## document([id], [content])
-
-| Arguments | Type | Description |
-| --------- | ----------- | --------------------------- |
-| `id` | string | Optional document unique ID |
-| `content` | JSON object | Optional document content |
-
----
-
-## Return Value
-
-Returns the newly created [Document](/sdk/java/2/core-classes/document) object.
-
-## Usage
-
-<<< ./snippets/document-1.java
diff --git a/doc/2/core-classes/collection/document/snippets/document-1.java b/doc/2/core-classes/collection/document/snippets/document-1.java
deleted file mode 100644
index 26a9c121..00000000
--- a/doc/2/core-classes/collection/document/snippets/document-1.java
+++ /dev/null
@@ -1,5 +0,0 @@
-
-Document document = kuzzle
- .collection("collection", "index")
- .document("id", new JSONObject().put("some", "content"))
- .save();
diff --git a/doc/2/core-classes/collection/fetch-document/index.md b/doc/2/core-classes/collection/fetch-document/index.md
deleted file mode 100644
index f9b1edbd..00000000
--- a/doc/2/core-classes/collection/fetch-document/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: fetchDocument
-description: Collection:fetchDocument
----
-
-# fetchDocument
-
-Retrieves a single stored document using its unique document ID, and returns it as a [Document](/sdk/java/2/core-classes/document) object.
-
----
-
-## fetchDocument(documentId, [options], callback)
-
-| Arguments | Type | Description |
-| ------------ | ----------- | ------------------------------ |
-| `documentId` | string | Unique document identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a [Document](/sdk/java/2/core-classes/document) object.
-
-## Usage
-
-<<< ./snippets/fetch-document-1.java
diff --git a/doc/2/core-classes/collection/fetch-document/snippets/fetch-document-1.java b/doc/2/core-classes/collection/fetch-document/snippets/fetch-document-1.java
deleted file mode 100644
index 1c209d32..00000000
--- a/doc/2/core-classes/collection/fetch-document/snippets/fetch-document-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .collection("collection", "index")
- .fetchDocument("documentId", new ResponseListener() {
- @Override
- public void onSuccess(Document object) {
- // result is a Document object
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/get-mapping/index.md b/doc/2/core-classes/collection/get-mapping/index.md
deleted file mode 100644
index 0f9831e2..00000000
--- a/doc/2/core-classes/collection/get-mapping/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: getMapping
-description: Collection:getMapping
----
-
-# getMapping
-
-Retrieves the current mapping of this collection as a [CollectionMapping](/sdk/java/2/core-classes/collection-mapping) object.
-
----
-
-## getMapping([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a [CollectionMapping](/sdk/java/2/core-classes/collection-mapping) object.
-
-## Usage
-
-<<< ./snippets/get-mapping-1.java
diff --git a/doc/2/core-classes/collection/get-mapping/snippets/get-mapping-1.java b/doc/2/core-classes/collection/get-mapping/snippets/get-mapping-1.java
deleted file mode 100644
index 0fdd7119..00000000
--- a/doc/2/core-classes/collection/get-mapping/snippets/get-mapping-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .collection("collection", "index")
- .getMapping(new ResponseListener() {
- @Override
- public void onSuccess(CollectionMapping object) {
- // result is a CollectionMapping object
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/get-specifications/index.md b/doc/2/core-classes/collection/get-specifications/index.md
deleted file mode 100644
index b1925896..00000000
--- a/doc/2/core-classes/collection/get-specifications/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: getSpecifications
-description: Collection:getSpecifications
----
-
-# getSpecifications
-
-Retrieves the specifications linked to the collection object.
-
----
-
-## getSpecifications([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
-## Usage
-
-<<< ./snippets/get-specifications-1.java
-
-> Callback response
-
-```json
-{
- "validation": {
- "strict": "true",
- "fields": {
- "foo": {
- "mandatory": "true",
- "type": "string",
- "defaultValue": "bar"
- }
- }
- },
- "index": "index",
- "collection": "collection"
-}
-```
diff --git a/doc/2/core-classes/collection/get-specifications/snippets/get-specifications-1.java b/doc/2/core-classes/collection/get-specifications/snippets/get-specifications-1.java
deleted file mode 100644
index f2cccbd8..00000000
--- a/doc/2/core-classes/collection/get-specifications/snippets/get-specifications-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .collection("collection", "index")
- .getSpecifications(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject specifications) {
- // specifications is a JSONObject
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/index.md b/doc/2/core-classes/collection/index.md
deleted file mode 100644
index a0b54cf6..00000000
--- a/doc/2/core-classes/collection/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: Collection
-description: Collection documentation
----
diff --git a/doc/2/core-classes/collection/mcreate-document/index.md b/doc/2/core-classes/collection/mcreate-document/index.md
deleted file mode 100644
index f488edfb..00000000
--- a/doc/2/core-classes/collection/mcreate-document/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: mcreateDocument
-description: Collection:mcreateDocument
----
-
-# mCreateDocument
-
-Create the input [Documents](/sdk/java/2/core-classes/document).
-
----
-
-## mCreateDocument(documents, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | ------------------------------------------------------------------- |
-| `documents` | Document[] | Array of [Document](/sdk/java/2/core-classes/document) to create |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-Can return a 206 partial error in cases where some documents could not be created.
-
-## Usage
-
-<<< ./snippets/mcreate-document-1.java
-
-> Callback response:
-
-```json
-{
- "hits": [{ "first": "document" }, { "second": "document" }],
- "total": 2
-}
-```
diff --git a/doc/2/core-classes/collection/mcreate-document/snippets/mcreate-document-1.java b/doc/2/core-classes/collection/mcreate-document/snippets/mcreate-document-1.java
deleted file mode 100644
index 548fe332..00000000
--- a/doc/2/core-classes/collection/mcreate-document/snippets/mcreate-document-1.java
+++ /dev/null
@@ -1,25 +0,0 @@
-
-Document firstDocument = new Document(collection, "doc1");
-firstDocument.setContent("title", "foo");
-firstDocument.setContent("content", "bar");
-
-Document secondDocument = new Document(collection, "doc2");
-secondDocument.setContent("title", "foo");
-secondDocument.setContent("content", "bar");
-
-Document[] documents = new Document[]{firstDocument, secondDocument};
-
-kuzzle
- .collection("collection", "index")
- .mCreateDocument(documents, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the mCreate operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/mcreate-or-replace-document/index.md b/doc/2/core-classes/collection/mcreate-or-replace-document/index.md
deleted file mode 100644
index cec209e6..00000000
--- a/doc/2/core-classes/collection/mcreate-or-replace-document/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: mcreateOrReplaceDocument
-description: Collection:mcreateOrReplaceDocument
----
-
-# mCreateOrReplaceDocument
-
-Create or replace the input [Documents](/sdk/java/2/core-classes/document).
-
----
-
-## mCreateOrReplaceDocument(documents, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | ------------------------------------------------------------------------------ |
-| `documents` | Document[] | Array of [Document](/sdk/java/2/core-classes/document) to create or replace |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-Can return a 206 partial error in cases where some documents could not be created or replaced.
-
-## Usage
-
-<<< ./snippets/mcreate-or-replace-document-1.java
-
-> Callback response:
-
-```json
-{
- "hits": [{ "first": "document" }, { "second": "document" }],
- "total": 2
-}
-```
diff --git a/doc/2/core-classes/collection/mcreate-or-replace-document/snippets/mcreate-or-replace-document-1.java b/doc/2/core-classes/collection/mcreate-or-replace-document/snippets/mcreate-or-replace-document-1.java
deleted file mode 100644
index 7f79fecb..00000000
--- a/doc/2/core-classes/collection/mcreate-or-replace-document/snippets/mcreate-or-replace-document-1.java
+++ /dev/null
@@ -1,25 +0,0 @@
-
-Document firstDocument = new Document(collection, "doc1");
-firstDocument.setContent("title", "foo");
-firstDocument.setContent("content", "bar");
-
-Document secondDocument = new Document(collection, "doc2");
-secondDocument.setContent("title", "foo");
-secondDocument.setContent("content", "bar");
-
-Document[] documents = new Document[]{firstDocument, secondDocument};
-
-kuzzle
- .collection("collection", "index")
- .mCreateOrReplaceDocument(documents, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the mCreateOrReplace operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/mdelete-document/index.md b/doc/2/core-classes/collection/mdelete-document/index.md
deleted file mode 100644
index 97e008fe..00000000
--- a/doc/2/core-classes/collection/mdelete-document/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: mdeleteDocument
-description: Collection:mdeleteDocument
----
-
-# mDeleteDocument
-
-Delete multiple [Documents](/sdk/java/2/core-classes/document) according to the input IDs.
-
----
-
-## mDeleteDocument(documentIds, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ----------------------------------- |
-| `documentIds` | String[] | Array of IDs of documents to delete |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-Can return a 206 partial error in cases where some documents could not be deleted.
-
-## Usage
-
-<<< ./snippets/mdelete-document-1.java
-
-> Callback response:
-
-```json
-["doc1", "doc2"]
-```
diff --git a/doc/2/core-classes/collection/mdelete-document/snippets/mdelete-document-1.java b/doc/2/core-classes/collection/mdelete-document/snippets/mdelete-document-1.java
deleted file mode 100644
index 2a853bb3..00000000
--- a/doc/2/core-classes/collection/mdelete-document/snippets/mdelete-document-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-String[] documentIds = new String[]{"doc1", "doc2"};
-
-kuzzle
- .collection("collection", "index")
- .mDeleteDocument(documentIds, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the mDelete operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/mget-document/index.md b/doc/2/core-classes/collection/mget-document/index.md
deleted file mode 100644
index 83478d0d..00000000
--- a/doc/2/core-classes/collection/mget-document/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: mgetDocument
-description: Collection:mgetDocument
----
-
-# mGetDocument
-
-Get multiple [Documents](/sdk/java/2/core-classes/document) according to the input document IDs.
-
----
-
-## mGetDocument(documentIds, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------- |
-| `documentIds` | String[] | Array of IDs of documents to retrieve |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-
-## Usage
-
-<<< ./snippets/mget-document-1.java
-
-> Callback response:
-
-```json
-{
- "hits": [
- { "_id": "doc1", "first": "document" },
- { "_id": "doc2", "second": "document" }
- ],
- "total": 2
-}
-```
diff --git a/doc/2/core-classes/collection/mget-document/snippets/mget-document-1.java b/doc/2/core-classes/collection/mget-document/snippets/mget-document-1.java
deleted file mode 100644
index 78ade1d5..00000000
--- a/doc/2/core-classes/collection/mget-document/snippets/mget-document-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-String[] documentIds = new String[]{"doc1", "doc2"};
-
-kuzzle
- .collection("collection", "index")
- .mGetDocument(documentIds, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the mGet operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/mreplace-document/index.md b/doc/2/core-classes/collection/mreplace-document/index.md
deleted file mode 100644
index c0718309..00000000
--- a/doc/2/core-classes/collection/mreplace-document/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: mreplaceDocument
-description: Collection:mreplaceDocument
----
-
-# mReplaceDocument
-
-Replace the provided [Documents](/sdk/java/2/core-classes/document).
-
----
-
-## mReplaceDocument(documents, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | -------------------------------------------------------------------- |
-| `documents` | Document[] | Array of [Document](/sdk/java/2/core-classes/document) to replace |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-Can return a 206 partial error in cases where documents could not be replaced.
-
-## Usage
-
-<<< ./snippets/mreplace-document-1.java
-
-> Callback response:
-
-```json
-{
- "hits": [{ "first": "document" }, { "second": "document" }],
- "total": 2
-}
-```
diff --git a/doc/2/core-classes/collection/mreplace-document/snippets/mreplace-document-1.java b/doc/2/core-classes/collection/mreplace-document/snippets/mreplace-document-1.java
deleted file mode 100644
index c299a099..00000000
--- a/doc/2/core-classes/collection/mreplace-document/snippets/mreplace-document-1.java
+++ /dev/null
@@ -1,25 +0,0 @@
-
-Document firstDocument = new Document(collection, "doc1");
-firstDocument.setContent("title", "foo");
-firstDocument.setContent("content", "bar");
-
-Document secondDocument = new Document(collection, "doc2");
-secondDocument.setContent("title", "foo");
-secondDocument.setContent("content", "bar");
-
-Document[] documents = new Document[]{firstDocument, secondDocument};
-
-kuzzle
- .collection("collection", "index")
- .mReplaceDocument(documents, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the mReplace operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/mupdate-document/index.md b/doc/2/core-classes/collection/mupdate-document/index.md
deleted file mode 100644
index de8a8669..00000000
--- a/doc/2/core-classes/collection/mupdate-document/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: mupdateDocument
-description: Collection:mupdateDocument
----
-
-# mUpdateDocument
-
-Update the provided [Documents](/sdk/java/2/core-classes/document).
-
----
-
-## mUpdateDocument(documents, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | -------------------------------------------------------------------- |
-| `documents` | Document[] | Array of [Documents](/sdk/java/2/core-classes/document) to update |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-Can return a 206 partial error in cases where documents could not be updated.
-
-## Usage
-
-<<< ./snippets/mupdate-document-1.java
-
-> Callback response:
-
-```json
-{
- "hits": [{ "first": "document" }, { "second": "document" }],
- "total": 2
-}
-```
diff --git a/doc/2/core-classes/collection/mupdate-document/snippets/mupdate-document-1.java b/doc/2/core-classes/collection/mupdate-document/snippets/mupdate-document-1.java
deleted file mode 100644
index 9ff2e2a8..00000000
--- a/doc/2/core-classes/collection/mupdate-document/snippets/mupdate-document-1.java
+++ /dev/null
@@ -1,25 +0,0 @@
-
-Document firstDocument = new Document(collection, "doc1");
-firstDocument.setContent("title", "foo");
-firstDocument.setContent("content", "bar");
-
-Document secondDocument = new Document(collection, "doc2");
-secondDocument.setContent("title", "foo");
-secondDocument.setContent("content", "bar");
-
-Document[] documents = new Document[]{firstDocument, secondDocument};
-
-kuzzle
- .collection("collection", "index")
- .mUpdateDocument(documents, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the mUpdate operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/publish-message/index.md b/doc/2/core-classes/collection/publish-message/index.md
deleted file mode 100644
index 83c2aef7..00000000
--- a/doc/2/core-classes/collection/publish-message/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: publishMessage
-description: Collection:publishMessage
----
-
-# publishMessage
-
-Publish a real-time message.
-
----
-
-## publishMessage(Document, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------- |
-| `Document` | object | [Document](/sdk/java/2/core-classes/document) object |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## publishMessage(content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------- |
-| `content` | JSON Object | Content of the document to publish |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | ------------------------------------------------------------- | ------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a raw Kuzzle response in JSON format.
-
-## Usage
-
-<<< ./snippets/publish-message-1.java
diff --git a/doc/2/core-classes/collection/publish-message/snippets/publish-message-1.java b/doc/2/core-classes/collection/publish-message/snippets/publish-message-1.java
deleted file mode 100644
index e1d5b31b..00000000
--- a/doc/2/core-classes/collection/publish-message/snippets/publish-message-1.java
+++ /dev/null
@@ -1,8 +0,0 @@
-
-JSONObject message = new JSONObject().put("some", "content");
-JSONObject volatile = new JSONObject().put("volatile", "are volatile information");
-Options opts = new Options().setVolatile(volatile);
-
-kuzzle
- .collection("collection", "index")
- .publishMessage(message, opts);
diff --git a/doc/2/core-classes/collection/replace-document/index.md b/doc/2/core-classes/collection/replace-document/index.md
deleted file mode 100644
index 3d066207..00000000
--- a/doc/2/core-classes/collection/replace-document/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: replaceDocument
-description: Collection:replaceDocument
----
-
-# replaceDocument
-
-Replace an existing document and return the updated version as a [Document](/sdk/java/2/core-classes/document) object.
-
----
-
-## replaceDocument(documentId, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------ | ----------- | --------------------------------- |
-| `documentId` | string | Unique document identifier |
-| `content` | JSON Object | Content of the document to create |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an updated [Document](/sdk/java/2/core-classes/document) object.
-
-## Usage
-
-<<< ./snippets/replace-document-1.java
diff --git a/doc/2/core-classes/collection/replace-document/snippets/replace-document-1.java b/doc/2/core-classes/collection/replace-document/snippets/replace-document-1.java
deleted file mode 100644
index 9c2c57ce..00000000
--- a/doc/2/core-classes/collection/replace-document/snippets/replace-document-1.java
+++ /dev/null
@@ -1,16 +0,0 @@
-
-JSONObject newContent = new JSONObject("new", "document content");
-
-kuzzle
- .collection("collection", "index")
- .replaceDocument("documentId", newContent, new ResponseListener() {
- @Override
- public void onSuccess(Document document) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/collection/room/index.md b/doc/2/core-classes/collection/room/index.md
deleted file mode 100644
index 16490bf6..00000000
--- a/doc/2/core-classes/collection/room/index.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-code: true
-type: page
-title: room
-description: Collection:room
----
-
-# room
-
-Creates a new [Room](/sdk/java/2/core-classes/room) object, using its constructor.
-
----
-
-## room([options])
-
-| Arguments | Type | Description |
-| --------- | ------ | -------------------------- |
-| `options` | object | Subscription configuration |
-
-## Options
-
-Provided options are passed directly to the [Room](/sdk/java/2/core-classes/room) object constructor.
-
----
-
-## Return Value
-
-Returns the newly created [Room](/sdk/java/2/core-classes/room) object.
-
-## Usage
-
-<<< ./snippets/room-1.java
diff --git a/doc/2/core-classes/collection/room/snippets/room-1.java b/doc/2/core-classes/collection/room/snippets/room-1.java
deleted file mode 100644
index 2cd5aeb1..00000000
--- a/doc/2/core-classes/collection/room/snippets/room-1.java
+++ /dev/null
@@ -1,23 +0,0 @@
-
-JSONObject filters = new JSONObject()
- .put("in",
- new JSONObject("field")
- .put(new JSONArray()
- .put("some")
- .put("filter")
- )
- );
-
-Room room = kuzzle.collection("collection", "index")
- .room()
- .renew(filters, new ResponseListener() {
- @Override
- public void onSuccess(NotificationResponse object) {
- // handle notifications
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle notifications error
- }
- });
diff --git a/doc/2/core-classes/collection/scroll-specifications/index.md b/doc/2/core-classes/collection/scroll-specifications/index.md
deleted file mode 100644
index 436785ed..00000000
--- a/doc/2/core-classes/collection/scroll-specifications/index.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-code: true
-type: page
-title: scrollSpecifications
-description: Collection:scrollSpecifications
----
-
-# scrollSpecifications
-
-Returns a JSON object containing the next page of the scroll session, and the `scrollId` to be used in the next `scroll` action.
-A scroll session is always initiated by a `searchSpecification` action with the `scroll` argument.
-
----
-
-## scrollSpecifications(scrollId, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------- |
-| `scrollId` | string | The "scrollId" provided with the last scrollSpecifications response or from the initial searchSpecifications request |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `scroll` | string | Re-initializes the scroll session timeout to its value. If not defined, the scroll timeout is defaulted to a Kuzzle configuration | `undefined` |
-
-## Usage
-
-<<< ./snippets/scroll-specifications-1.java
-
-> Callback response
-
-```json
-{
- "hits": [{ "first": "specification" }, { "second": "specification" }],
- "total": 2
-}
-```
diff --git a/doc/2/core-classes/collection/scroll-specifications/snippets/scroll-specifications-1.java b/doc/2/core-classes/collection/scroll-specifications/snippets/scroll-specifications-1.java
deleted file mode 100644
index 8bb8301a..00000000
--- a/doc/2/core-classes/collection/scroll-specifications/snippets/scroll-specifications-1.java
+++ /dev/null
@@ -1,21 +0,0 @@
-
-Options opts = new Options();
-opts.setScroll("1m");
-
-kuzzle
- .collection("collection", "index")
- .scrollSpecifications(scrollId, opts, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject res) {
- for (int i = 0; i < res.getJSONArray("hits").length(); i++) {
- res.getJSONArray("hits").getJSONObject(i) // Specification
- }
-
- res.getString("total"); // Total specifications count
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/scroll/index.md b/doc/2/core-classes/collection/scroll/index.md
deleted file mode 100644
index 61c3819c..00000000
--- a/doc/2/core-classes/collection/scroll/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: scroll
-description: Collection:scroll
----
-
-# scroll
-
-Returns a [SearchResult](/sdk/java/2/core-classes/search-result) object containing the next page of the scroll session, and the `scrollId` to be used in the next `scroll` action.
-A scroll session is always initiated by a `search` action and including the `scroll` argument; more information below.
-
-:::info
-There is a small delay between the time a document is created and its availability in our search layer (usually a couple of seconds). That means that a document that was just created might not be returned immediately by this function.
-:::
-
-:::info
-To get more information about scroll sessions, please refer to the [API reference documentation](/core/1/api/controllers/document/search).
-:::
-
----
-
-## scroll(scrollId, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------- |
-| `scrollId` | string | The "scrollId" provided with the last scroll response or from the initial search request if it is the first scroll call |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `scroll` | string | Re-initializes the scroll session timeout to its value. If not defined, the scroll timeout is defaulted to a Kuzzle configuration | `undefined` |
-
----
-
-## Callback Response
-
-Returns an instantiated [SearchResult](/sdk/java/2/core-classes/search-result) object.
-
----
-
-## Usage
-
-<<< ./snippets/scroll-1.java
diff --git a/doc/2/core-classes/collection/scroll/snippets/scroll-1.java b/doc/2/core-classes/collection/scroll/snippets/scroll-1.java
deleted file mode 100644
index 1c94a896..00000000
--- a/doc/2/core-classes/collection/scroll/snippets/scroll-1.java
+++ /dev/null
@@ -1,23 +0,0 @@
-
-Options opts = new Options();
-opts.setScroll("1m");
-
-kuzzle
- .collection("collection", "index")
- .scroll(scrollId, opts, new ResponseListener() {
- @Override
- public void onSuccess(SearchResult searchResult) {
- for (Document doc : searchResult.getDocuments()) {
- // Get documents
- }
-
- searchResult.getTotal(); // return total of documents returned
-
- searchResult.getAggregations(): // return a JSONObject representing the aggregations response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/search-specifications/index.md b/doc/2/core-classes/collection/search-specifications/index.md
deleted file mode 100644
index 15242569..00000000
--- a/doc/2/core-classes/collection/search-specifications/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: searchSpecifications
-description: Collection:searchSpecifications
----
-
-# searchSpecifications
-
-Retrieves every specifications across indexes/collections according to the given filters.
-
----
-
-## searchSpecifications(filters, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| `filters` | JSON object | Search request body, using [ElasticSearch Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/search-request-body.html) format.
If given an empty object, matches all specifications across index/collections |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `from` | number | Provide the starting offset of the request (used to paginate results) | `0` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `scroll` | string | Start a scroll session, with a time to live equals to this parameter's value following the [Elastisearch time format](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/common-options.html#time-units) | `undefined` |
-| `size` | number | Provide the maximum number of results of the request (used to paginate results) | `10` |
-
-## Usage
-
-<<< ./snippets/search-specifications-1.java
-
-> Callback response
-
-```json
-{
- "hits": [{ "first": "specification" }, { "second": "specification" }],
- "total": 2,
- "scrollId": "foobar"
-}
-```
diff --git a/doc/2/core-classes/collection/search-specifications/snippets/search-specifications-1.java b/doc/2/core-classes/collection/search-specifications/snippets/search-specifications-1.java
deleted file mode 100644
index 516f9840..00000000
--- a/doc/2/core-classes/collection/search-specifications/snippets/search-specifications-1.java
+++ /dev/null
@@ -1,32 +0,0 @@
-
-import io.kuzzle.sdk.core.Kuzzle;
-import io.kuzzle.sdk.core.Options;
-
-Kuzzle kuzzle = new Kuzzle("localhost");
-
-JSONObject filters = new JSONObject()
- .put("match_all", new JSONObject()
- .put("boost", 1)
- );
-
-Options options = new Options();
-options.setFrom((long) 0);
-options.setSize((long) 20);
-
-kuzzle
- .collection("collection", "index")
- .searchSpecifications(filters, options, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject res) {
- for (int i = 0; i < res.getJSONArray("hits").length(); i++) {
- res.getJSONArray("hits").getJSONObject(i) // Specification
- }
-
- res.getString("total"); // Total specifications count
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/search/index.md b/doc/2/core-classes/collection/search/index.md
deleted file mode 100644
index b0a1fb7f..00000000
--- a/doc/2/core-classes/collection/search/index.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-code: true
-type: page
-title: search
-description: Collection:search
----
-
-# search
-
-Executes a search on the collection.
-
-:::info
-There is a small delay between the time a document is created and its availability in our search layer (usually a couple of seconds). That means that a document that was just created might not be returned immediately by this function.
-:::
-
-## Processing large data sets
-
-When processing a large number of documents (i.e. more than 1000), using `search` is not always the best option.
-
-Pagination of results can be done by using the from and size but the cost becomes prohibitive when deep pagination is reached. In fact, Elasticsearch, Kuzzle's embedded database, limits results to 10,000 records by default.
-
-Instead, the recommended way to process a large number of documents is to use [`Collection.scroll`](/sdk/java/2/core-classes/collection/scroll) or, easier, [`SearchResult.fetchNext`](/sdk/java/2/core-classes/search-result/fetch-next).
-
-See [`SearchResult.fetchNext`](/sdk/java/2/core-classes/search-result/fetch-next#how-to-process-every-document-of-a-collection) for an example of how to process every document of a collection.
-
----
-
-## search(body, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| `body` | JSON object | Search request body, using [ElasticSearch Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/search-request-body.html) format.
If given an empty object, matches all documents in the collection |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `from` | number | Provide the starting offset of the request (used to paginate results) | `0` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `scroll` | string | Start a scroll session, with a time to live equals to this parameter's value following the [Elastisearch time format](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/common-options.html#time-units) | `undefined` |
-| `size` | number | Provide the maximum number of results of the request (used to paginate results) | `10` |
-
-:::info
-To get more information about scroll sessions, please refer to the [API reference documentation](/core/1/api/controllers/document/search).
-:::
-
----
-
-## Callback Response
-
-Returns an instance of [SearchResult](/sdk/java/2/core-classes/search-result).
-
-## Usage
-
-<<< ./snippets/search-1.java
diff --git a/doc/2/core-classes/collection/search/snippets/search-1.java b/doc/2/core-classes/collection/search/snippets/search-1.java
deleted file mode 100644
index 6dde89e8..00000000
--- a/doc/2/core-classes/collection/search/snippets/search-1.java
+++ /dev/null
@@ -1,87 +0,0 @@
-
-import io.kuzzle.sdk.core.Kuzzle;
-import io.kuzzle.sdk.core.Options;
-
-Kuzzle kuzzle = new Kuzzle("localhost");
-
-JSONObject body = new JSONObject()
- .put("query", new JSONObject()
- .put("bool", new JSONObject()
- .put("must", new JSONArray()
- .put(
- new JSONObject().put("terms",
- new JSONObject().put("status",
- new JSONArray()
- .put("idle")
- .put("wantToHire")
- .put("toHire")
- .put("riding")
- )
- )
- )
- .put(
- new JSONObject().put("term",
- new JSONObject()
- .put("type", new JSONArray().put("cab"))
- )
- )
- .put(
- new JSONObject().put("geoDistance",
- new JSONObject()
- .put("distance", "10km")
- .put("pos",
- new JSONObject()
- .put("lat", "48.8566140")
- .put("lon", "2.352222")
- )
- )
- )
- )
- )
- )
- .put("sort", new JSONArray()
- .put("status")
- .put(new JSONObject()
- .put("_geoDistance", new JSONObject()
- .put("pos", new JSONObject()
- .put("lat", "48.8566140")
- .put("lon", "2.352222")
- )
- .put('order'; "asc")
- )
- )
- .put(new JSONObject()
- .put("date", "desc")
- )
- )
- .put("aggregations", new JSONObject()
- .put("aggs_name", new JSONObject()
- .put("terms", new JSONObject()
- .put("field", "field_name")
- )
- )
- );
-
-Options options = new Options();
-options.setFrom((long) 0);
-options.setSize((long) 20);
-
-kuzzle
- .collection("collection", "index")
- .search(body, options, new ResponseListener() {
- @Override
- public void onSuccess(SearchResult searchResult) {
- for (Document doc : searchResult.getDocuments()) {
- // Get documents
- }
-
- searchResult.getTotal(); // return total of documents returned
-
- searchResult.getAggregations(): // return a JSONObject representing the aggregations response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/set-headers/index.md b/doc/2/core-classes/collection/set-headers/index.md
deleted file mode 100644
index f22fc285..00000000
--- a/doc/2/core-classes/collection/set-headers/index.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-code: true
-type: page
-title: setHeaders
-description: Collection:setHeaders
----
-
-# setHeaders
-
-This is a helper function returning itself, allowing to easily set headers while chaining calls.
-
----
-
-## setHeaders(content, [replace])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------------------------------------------------------- |
-| `content` | JSON Object | New content |
-| `replace` | boolean | true: replace the current content with the provided data, false: merge it |
-
-**Note:** by default, the `replace` argument is set to `false`
-
----
-
-## Return value
-
-Returns the `Collection` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-headers-1.java
diff --git a/doc/2/core-classes/collection/set-headers/snippets/set-headers-1.java b/doc/2/core-classes/collection/set-headers/snippets/set-headers-1.java
deleted file mode 100644
index 2dd625fb..00000000
--- a/doc/2/core-classes/collection/set-headers/snippets/set-headers-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-JSONObject headers = new JSONObject()
- .put("someContent", "someValue")
- .put("volatile", new JSONObject()
- .put("someVolatileData", new JSONArray()
- .put("with")
- .put("some")
- .put("values")
- )
- );
-
-kuzzle
- .collection("collection", "index")
- .setHeaders(content, true);
diff --git a/doc/2/core-classes/collection/subscribe/index.md b/doc/2/core-classes/collection/subscribe/index.md
deleted file mode 100644
index 4de9b718..00000000
--- a/doc/2/core-classes/collection/subscribe/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: subscribe
-description: Collection:subscribe
----
-
-# subscribe
-
-Subscribes to this collection with a set of filters.
-
-The provided callback will be called everytime a [notification](/sdk/java/2/essentials/realtime-notifications) is received from Kuzzle.
-
----
-
-## subscribe(filters, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------------------------------------- |
-| `filters` | JSON Object | [Koncorde Filters](/core/1/guides/cookbooks/realtime-api) |
-| `options` | object | (Optional) Subscription configuration. Passed to the Room constructor. |
-| `callback` | function | Callback to call every time a notification is received on this subscription |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `scope` | string | Filter document notifications depending on their scope status. You may receive entering documents (scope: `in`), leaving documents (scope: `out`), all documents changes (scope: `all`) or filter these notifications completely (scope: `none`). This filter does not affect pub/sub messages or user events. | `all` |
-| `state` | string | Filter document notifications depending on the state of the modifying request. You may receive real-time notifications when a document is about to be changed (state: `pending`), or be notified when the change has been fully written in the database (state: `done`), or both (state: `all`). This filter does not affect pub/sub messages or user events. | `done` |
-| `subscribeToSelf` | boolean | (Don't) subscribe to notifications fired as a consequence of our own queries | `true` |
-| `users` | string | Filter notifications fired upon a user entering the room (user: `in`), leaving the room (user: `out`), or both (user: `all`). Setting this variable to `none` prevents receiving these notifications | `none` |
-
-The `options` object is directly passed to the Room constructor.
-See the [Room object](/sdk/java/2/core-classes/room) documentation for more information about these options and notifications.
-
----
-
-## Return Value
-
-Returns an object exposing the following method:
- `onDone(callback)`
-
-The `callback` argument is called when the subscription ends, either successfully or with an error.
-
-## Usage
-
-<<< ./snippets/subscribe-1.java
diff --git a/doc/2/core-classes/collection/subscribe/snippets/subscribe-1.java b/doc/2/core-classes/collection/subscribe/snippets/subscribe-1.java
deleted file mode 100644
index 51566654..00000000
--- a/doc/2/core-classes/collection/subscribe/snippets/subscribe-1.java
+++ /dev/null
@@ -1,60 +0,0 @@
-
-JSONObject filter = new JSONObject()
- .put("and", new JSONArray()
- .put(
- new JSONObject().put("in",
- new JSONObject().put("status",
- new JSONArray()
- .put("idle")
- .put("wantToHire")
- .put("toHire")
- .put("riding")
- )
- )
- )
- .put(
- new JSONObject().put("in",
- new JSONObject()
- .put("type", new JSONArray().put("cab"))
- )
- )
- .put(
- new JSONObject().put("geoDistance",
- new JSONObject()
- .put("distance", "10km")
- .put("pos",
- new JSONObject()
- .put("lat", "48.8566140")
- .put("lon", "2.352222")
- )
- )
- )
- );
-
-kuzzle
- .collection("collection", "index")
- .subscribe(filter, new ResponseListener() {
- @Override
- public void onSuccess(NotificationResponse object) {
- // called each time a new notification on this filter is received
-
- // check the Room/Notifications section of this documentation
- // to get notification examples
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- })
- .onDone(new ResponseListener() {
- @Override
- public void onSuccess(Room response) {
- // Handle subscription success
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle subscription error
- }
- });
diff --git a/doc/2/core-classes/collection/truncate/index.md b/doc/2/core-classes/collection/truncate/index.md
deleted file mode 100644
index f828a090..00000000
--- a/doc/2/core-classes/collection/truncate/index.md
+++ /dev/null
@@ -1,63 +0,0 @@
----
-code: true
-type: page
-title: truncate
-description: Collection:truncate
----
-
-# truncate
-
-Truncate the collection, removing all stored documents but keeping all associated mappings.
-
-This method is a lot faster than removing all documents using multiple delete requests.
-
----
-
-## truncate([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-
-## Usage
-
-<<< ./snippets/truncate-1.java
-
-> Callback response:
-
-```json
-{
- "status": 200,
- "error": null,
- "requestId": "8fdc0efb-6fc7-427d-a3a1-fd8cf5eabc20",
- "controller": "admin",
- "action": "truncateCollection",
- "collection": "name of the truncated collection",
- "index": "name of the index containing the truncated collection",
- "volatile": {},
- "state": "done",
- "result": { "acknowledged": true }
-}
-```
diff --git a/doc/2/core-classes/collection/truncate/snippets/truncate-1.java b/doc/2/core-classes/collection/truncate/snippets/truncate-1.java
deleted file mode 100644
index 610dee52..00000000
--- a/doc/2/core-classes/collection/truncate/snippets/truncate-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-kuzzle
- .collection("collection", "index")
- .truncate(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject object) {
- // callback called once the truncate operation has completed
- // => the result is a JSON object containing the raw Kuzzle response
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/update-document/index.md b/doc/2/core-classes/collection/update-document/index.md
deleted file mode 100644
index ce1f11af..00000000
--- a/doc/2/core-classes/collection/update-document/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: updateDocument
-description: Collection:updateDocument
----
-
-# updateDocument
-
-Update parts of a document, by replacing some fields or adding new ones.
-Note that you cannot remove fields this way: missing fields will simply be left unchanged.
-
----
-
-## updateDocument(documentId, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------ | ----------- | --------------------------------- |
-| `documentId` | string | Unique document identifier |
-| `content` | JSON object | Content of the document to create |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `volatile` | JSON object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-| `retryOnConflict` | int | Number of retries to attempt before rejecting this update because of a cluster sync conflict | `0` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an up-to-date [Document](/sdk/java/2/core-classes/document) object.
-
-## Usage
-
-<<< ./snippets/update-document-1.java
diff --git a/doc/2/core-classes/collection/update-document/snippets/update-document-1.java b/doc/2/core-classes/collection/update-document/snippets/update-document-1.java
deleted file mode 100644
index 35782bfb..00000000
--- a/doc/2/core-classes/collection/update-document/snippets/update-document-1.java
+++ /dev/null
@@ -1,16 +0,0 @@
-
-JSONObject newTitle = new JSONObject().put("title", "a shiny new title");
-
-kuzzle
- .collection("collection", "index")
- .updateDocument("documentId", newTitle, new ResponseListener() {
- @Override
- public void onSuccess(Document result) {
- // result is an updated Document object
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/update-specifications/index.md b/doc/2/core-classes/collection/update-specifications/index.md
deleted file mode 100644
index 2e352526..00000000
--- a/doc/2/core-classes/collection/update-specifications/index.md
+++ /dev/null
@@ -1,60 +0,0 @@
----
-code: true
-type: page
-title: updateSpecifications
-description: Collection:updateSpecifications
----
-
-# updateSpecifications
-
-Update parts of a specification, by replacing some fields or adding new ones.
-Note that you cannot remove fields this way: missing fields will simply be left unchanged.
-
----
-
-## updateSpecifications(content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------- |
-| `content` | JSON object | Content of the specification to update |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-| `retryOnConflict` | int | Number of retries to attempt before rejecting this update because of a cluster sync conflict | `0` |
-
----
-
-## Return Value
-
-Returns the `Collection` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/update-specifications-1.java
-
-> Callback response
-
-```json
-{
- "index": {
- "collection": {
- "strict": "true",
- "fields": {
- "foo": {
- "mandatory": "true",
- "type": "string",
- "defaultValue": "bar"
- }
- }
- }
- }
-}
-```
diff --git a/doc/2/core-classes/collection/update-specifications/snippets/update-specifications-1.java b/doc/2/core-classes/collection/update-specifications/snippets/update-specifications-1.java
deleted file mode 100644
index e3b32e80..00000000
--- a/doc/2/core-classes/collection/update-specifications/snippets/update-specifications-1.java
+++ /dev/null
@@ -1,26 +0,0 @@
-
-JSONObject fooField = new JSONObject()
- .put("mandatory", "true")
- .put("type", "string")
- .put("defaultValue", "bar");
-
-JSONObject fields = new JSONObject()
- .put("foo", fooField);
-
-JSONObject specifications = new JSONObject()
- .put("strict", "true")
- .put("fields", fields);
-
-kuzzle
- .collection("collection", "index")
- .updateSpecifications(specifications, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject res) {
- // result is a JSONObject
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/collection/validate-specifications/index.md b/doc/2/core-classes/collection/validate-specifications/index.md
deleted file mode 100644
index 6391b73c..00000000
--- a/doc/2/core-classes/collection/validate-specifications/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: validateSpecifications
-description: Collection:validateSpecifications
----
-
-# validateSpecifications
-
-Validate a specification.
-
----
-
-## validateSpecifications(content, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------- |
-| `content` | JSON object | Content of the specification to validate |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a boolean indicating whether or not the input specifications is valid or not.
-
-## Usage
-
-<<< ./snippets/validate-specifications-1.java
diff --git a/doc/2/core-classes/collection/validate-specifications/snippets/validate-specifications-1.java b/doc/2/core-classes/collection/validate-specifications/snippets/validate-specifications-1.java
deleted file mode 100644
index cae3e309..00000000
--- a/doc/2/core-classes/collection/validate-specifications/snippets/validate-specifications-1.java
+++ /dev/null
@@ -1,26 +0,0 @@
-
-JSONObject fooField = new JSONObject()
- .put("mandatory", "true")
- .put("type", "string")
- .put("defaultValue", "bar");
-
-JSONObject fields = new JSONObject()
- .put("foo", fooField);
-
-JSONObject specifications = new JSONObject()
- .put("strict", "true")
- .put("fields", fields);
-
-kuzzle
- .collection("collection", "index")
- .validateSpecifications(specifications, new ResponseListener() {
- @Override
- public void onSuccess(Boolean isValid) {
- // isValid is a boolean
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/document/constructor/index.md b/doc/2/core-classes/document/constructor/index.md
deleted file mode 100644
index 53133737..00000000
--- a/doc/2/core-classes/document/constructor/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: Document:constructor
-order: 1
----
-
-# Document
-
-Kuzzle handles two types of documents: realtime messages and stored documents. Document is the object representation of one of these document types.
-
----
-
-## Document(Collection, [documentId], [content])
-
-| Arguments | Type | Description |
-| ------------ | ----------- | --------------------------------------------------- |
-| `Collection` | object | An instantiated Collection object |
-| `content` | JSON Object | Initializes this document with the provided content |
-| `documentId` | string | ID of an existing document. |
-
-**Note:** this constructor won't make any call to Kuzzle. When providing only a document ID, the `refresh` method should be called to retrieve the corresponding document content.
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ------------- | ----------- | ----------------------------------------------- | ------- |
-| `collection` | string | The collection associated to this document | get |
-| `content` | JSON Object | The content of the document | get/set |
-| `headers` | JSON Object | Common headers for all sent documents. | get/set |
-| `id` | string | Unique document identifier | get/set |
-| `meta` | JSON Object | Document metadata | get |
-| `version` | integer | Current document version | get |
-
-**Notes:**
-
-- setting a new value to the `content` property is equivalent to calling `setContent(data, false)`
-- setting a new value to the `id` property will force this value for this document
-- the `headers` property is inherited from the provided `Collection` object and can be overrided
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/document/constructor/snippets/constructor-1.java b/doc/2/core-classes/document/constructor/snippets/constructor-1.java
deleted file mode 100644
index 201adaf0..00000000
--- a/doc/2/core-classes/document/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,10 +0,0 @@
-
-Document document = new Document(collection);
-
-Document document = new Document(collection, "id");
-
-JSONObject content = new JSONObject();
-content.put("content", "some content");
-Document document = new Document(collection, content);
-
-Document document = new Document(collection, "id", content);
diff --git a/doc/2/core-classes/document/delete/index.md b/doc/2/core-classes/document/delete/index.md
deleted file mode 100644
index 8972d033..00000000
--- a/doc/2/core-classes/document/delete/index.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-code: true
-type: page
-title: delete
-description: Document:delete
----
-
-# delete
-
-Deletes this document in Kuzzle.
-
----
-
-## delete([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Callback Response
-
-Returns a string containing the ID of the deleted document.
-
-## Usage
-
-<<< ./snippets/delete-1.java
diff --git a/doc/2/core-classes/document/delete/snippets/delete-1.java b/doc/2/core-classes/document/delete/snippets/delete-1.java
deleted file mode 100644
index f7ba4b63..00000000
--- a/doc/2/core-classes/document/delete/snippets/delete-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-document.delete(new ResponseListener() {
- @Override
- public void onSuccess(Document object) {
- // called once the delete action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/document/exists/index.md b/doc/2/core-classes/document/exists/index.md
deleted file mode 100644
index 02d80deb..00000000
--- a/doc/2/core-classes/document/exists/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: exists
-description: Document:exists
----
-
-# exists
-
-Checks if the document exists in Kuzzle.
-
----
-
-## exists([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Return a boolean indicating whether or not the document exists in Kuzzle.
-
-## Usage
-
-<<< ./snippets/exists-1.java
diff --git a/doc/2/core-classes/document/exists/snippets/exists-1.java b/doc/2/core-classes/document/exists/snippets/exists-1.java
deleted file mode 100644
index 01de2360..00000000
--- a/doc/2/core-classes/document/exists/snippets/exists-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-document.exists(new ResponseListener() {
- @Override
- public void onSuccess(Boolean exists) {
- // called once the exists check has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/document/index.md b/doc/2/core-classes/document/index.md
deleted file mode 100644
index ad9a6cc9..00000000
--- a/doc/2/core-classes/document/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: Document
-description: Document documentation
----
diff --git a/doc/2/core-classes/document/publish/index.md b/doc/2/core-classes/document/publish/index.md
deleted file mode 100644
index 064d023d..00000000
--- a/doc/2/core-classes/document/publish/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: publish
-description: Document:publish
----
-
-# publish
-
-Publishes the content of this document as a real-time message.
-
----
-
-## publish([options])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | ------------------------------------------------------------- | ------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns this `Document` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/publish-1.java
diff --git a/doc/2/core-classes/document/publish/snippets/publish-1.java b/doc/2/core-classes/document/publish/snippets/publish-1.java
deleted file mode 100644
index b671526e..00000000
--- a/doc/2/core-classes/document/publish/snippets/publish-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-document.publish();
diff --git a/doc/2/core-classes/document/refresh/index.md b/doc/2/core-classes/document/refresh/index.md
deleted file mode 100644
index a9864524..00000000
--- a/doc/2/core-classes/document/refresh/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: refresh
-description: Document:refresh
----
-
-# refresh
-
-Creates a new `Document` object with the last version of this document stored in Kuzzle.
-
----
-
-## refresh([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Return a new `Document` object containing the last document version.
-
-## Usage
-
-<<< ./snippets/refresh-1.java
diff --git a/doc/2/core-classes/document/refresh/snippets/refresh-1.java b/doc/2/core-classes/document/refresh/snippets/refresh-1.java
deleted file mode 100644
index bd1b2eba..00000000
--- a/doc/2/core-classes/document/refresh/snippets/refresh-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-document.refresh(new ResponseListener() {
- @Override
- public void onSuccess(Document object) {
- // called once the refresh action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/document/save/index.md b/doc/2/core-classes/document/save/index.md
deleted file mode 100644
index eaef20b1..00000000
--- a/doc/2/core-classes/document/save/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: save
-description: Document:save
----
-
-# save
-
-Saves this document into Kuzzle.
-
-If this is a new document, this function will create it in Kuzzle and the `id` property will be made available.
-Otherwise, this method will replace the latest version of the document in Kuzzle with the content of this current object.
-
----
-
-## save([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns this `Document` object to allow chaining.
-
----
-
-## Callback Response
-
-Return this `Document` object once the document has been saved.
-
-## Usage
-
-<<< ./snippets/save-1.java
diff --git a/doc/2/core-classes/document/save/snippets/save-1.java b/doc/2/core-classes/document/save/snippets/save-1.java
deleted file mode 100644
index 6706d959..00000000
--- a/doc/2/core-classes/document/save/snippets/save-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-document.save(new ResponseListener() {
- @Override
- public void onSuccess(Document object) {
- // called once the save action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/document/set-content/index.md b/doc/2/core-classes/document/set-content/index.md
deleted file mode 100644
index dee1b15e..00000000
--- a/doc/2/core-classes/document/set-content/index.md
+++ /dev/null
@@ -1,36 +0,0 @@
----
-code: true
-type: page
-title: setContent
-description: Document:setContent
----
-
-# setContent
-
-Replaces the current content with new data.
-This is a helper function returning a reference to itself so that you can easily chain calls.
-
-:::info
-Changes made by this function won't be applied until the `save` method is called
-:::
-
----
-
-## setContent(data, [replace])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------------------------------------------------------- |
-| `data` | JSON Object | New content |
-| `replace` | boolean | true: replace the current content with the provided data, false: merge it |
-
-**Note:** by default, the `replace` argument is set to `false`
-
----
-
-## Return Value
-
-Returns this `Document` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-content-1.java
diff --git a/doc/2/core-classes/document/set-content/snippets/set-content-1.java b/doc/2/core-classes/document/set-content/snippets/set-content-1.java
deleted file mode 100644
index 024b2dbf..00000000
--- a/doc/2/core-classes/document/set-content/snippets/set-content-1.java
+++ /dev/null
@@ -1,4 +0,0 @@
-
-JSONObject content = new JSONObject().put("content", "some content");
-
-document.setContent(content, true);
diff --git a/doc/2/core-classes/document/set-headers/index.md b/doc/2/core-classes/document/set-headers/index.md
deleted file mode 100644
index 911d3ae8..00000000
--- a/doc/2/core-classes/document/set-headers/index.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-code: true
-type: page
-title: setHeaders
-description: Document:setHeaders
----
-
-# setHeaders
-
-This is a helper function returning itself, allowing to easily chain calls.
-
----
-
-## setHeaders(content, [replace])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------------------------------------------------------- |
-| `content` | JSON Object | New content |
-| `replace` | boolean | true: replace the current content with the provided data, false: merge it |
-
-**Note:** by default, the `replace` argument is set to `false`
-
----
-
-## Return value
-
-Returns this `Document` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-headers-1.java
diff --git a/doc/2/core-classes/document/set-headers/snippets/set-headers-1.java b/doc/2/core-classes/document/set-headers/snippets/set-headers-1.java
deleted file mode 100644
index 3651d23a..00000000
--- a/doc/2/core-classes/document/set-headers/snippets/set-headers-1.java
+++ /dev/null
@@ -1,4 +0,0 @@
-
-JSONObject headers = new JSONObject().put("someContent", "someValue");
-
-document.setHeaders(headers, true);
diff --git a/doc/2/core-classes/document/subscribe/index.md b/doc/2/core-classes/document/subscribe/index.md
deleted file mode 100644
index 40076ce1..00000000
--- a/doc/2/core-classes/document/subscribe/index.md
+++ /dev/null
@@ -1,41 +0,0 @@
----
-code: true
-type: page
-title: subscribe
-description: Document:subscribe
----
-
-# subscribe
-
-Listens to changes occuring in this document.
-Throws an error if this document has not yet been created in Kuzzle.
-
-The provided callback will be called everytime a [notification](/sdk/java/2/essentials/realtime-notifications) is received from Kuzzle.
-
----
-
-## subscribe([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | -------- | ---------------------------------------------------------------------------------- |
-| `options` | object | Subscription configuration |
-| `callback` | function | Callback that will be called each time a change has been detected on this document |
-
----
-
-## Options
-
-Options are directly passed to the [Room](/sdk/java/2/core-classes/room) object constructor.
-
----
-
-## Return Value
-
-Returns an object exposing the following method:
- `onDone(callback)`
-
-The `callback` argument is called when the subscription ends, either successfully or with an error.
-
-## Usage
-
-<<< ./snippets/subscribe-1.java
diff --git a/doc/2/core-classes/document/subscribe/snippets/subscribe-1.java b/doc/2/core-classes/document/subscribe/snippets/subscribe-1.java
deleted file mode 100644
index 3a563eef..00000000
--- a/doc/2/core-classes/document/subscribe/snippets/subscribe-1.java
+++ /dev/null
@@ -1,23 +0,0 @@
-
-Room room = document.subscribe(new ResponseListener() {
- @Override
- public void onSuccess(NotificationResponse object) {
- // called each time a change occurs on this document
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- })
- .onDone(new ResponseListener() {
- @Override
- public void onSuccess(Room response) {
- // Handle subscription success
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle subscription error
- }
- });
diff --git a/doc/2/core-classes/index.md b/doc/2/core-classes/index.md
deleted file mode 100644
index a4eb0e59..00000000
--- a/doc/2/core-classes/index.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-code: false
-type: branch
-order: 10
-title: Core classes
-description: Core classes
----
diff --git a/doc/2/core-classes/kuzzle/add-listener/index.md b/doc/2/core-classes/kuzzle/add-listener/index.md
deleted file mode 100644
index 4d50a1e2..00000000
--- a/doc/2/core-classes/kuzzle/add-listener/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-code: true
-type: page
-title: addListener
-description: Kuzzle:addListener
----
-
-# addListener
-
-Adds a listener to an event. When an event is fired, listeners are called in the order that they are added.
-
----
-
-## addListener(event, listener)
-
-| Arguments | Type | Description |
-| ---------- | -------- | -------------------------------------------------------------------------------- |
-| `event` | string | One of the event described in the `Event Handling` section of this documentation |
-| `listener` | function | The function to call each time one of the registered event is fired |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/add-listener-1.java
diff --git a/doc/2/core-classes/kuzzle/add-listener/snippets/add-listener-1.java b/doc/2/core-classes/kuzzle/add-listener/snippets/add-listener-1.java
deleted file mode 100644
index 27e9f82a..00000000
--- a/doc/2/core-classes/kuzzle/add-listener/snippets/add-listener-1.java
+++ /dev/null
@@ -1,8 +0,0 @@
-
-EventListener eventListener = new EventListener() {
- @Override
- public void trigger(Object... args) {
- // Actions to perform when receiving a 'subscribed' global event
- }
-};
-kuzzle.addListener(Event.connected, eventListener);
diff --git a/doc/2/core-classes/kuzzle/check-token/index.md b/doc/2/core-classes/kuzzle/check-token/index.md
deleted file mode 100644
index 762879bd..00000000
--- a/doc/2/core-classes/kuzzle/check-token/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: checkToken
-description: Kuzzle:checkToken
----
-
-# checkToken
-
-> Callback response if the token is valid:
-
-```json
-{
- "expiresAt": 1454588077399,
- "valid": true
-}
-```
-
-> Callback response if the token is invalid:
-
-```json
-{
- "valid": false,
- "state": ""
-}
-```
-
-Checks the validity of a JSON Web Token.
-
-:::info
-This method is non-queuable, meaning that during offline mode, it will be discarded and the callback return an error.
-:::
-
----
-
-## checkToken(token, callback)
-
-| Arguments | Type | Description |
-| ---------- | -------- | ------------------------------ |
-| `token` | string | The token to check |
-| `callback` | function | Callback handling the response |
-
-**Note:** this method sends an unauthenticated API call to Kuzzle, meaning it ignores the JWT Token property, even if it has been set.
-
----
-
-## Callback Response
-
-Returns a JSON object with a `valid` boolean property.
-If the token is valid, an `expiresAt` property is set with the expiration timestamp. If not, a `state` property is set explaining why the token is invalid.
-
-## Usage
-
-<<< ./snippets/check-token-1.java
diff --git a/doc/2/core-classes/kuzzle/check-token/snippets/check-token-1.java b/doc/2/core-classes/kuzzle/check-token/snippets/check-token-1.java
deleted file mode 100644
index d296c4c3..00000000
--- a/doc/2/core-classes/kuzzle/check-token/snippets/check-token-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.checkToken("some jwt token", new ResponseListener() {
- @Override
- public void onSuccess(TokenValidity tokenInfo) {
- if (tokenInfo.isValid()) {
- // tokenInfo.getExpiresAt() returns the expiration timestamp
- }
- else {
- // tokenInfo.getState() returns the invalidity reason
- }
- }
-});
diff --git a/doc/2/core-classes/kuzzle/collection/index.md b/doc/2/core-classes/kuzzle/collection/index.md
deleted file mode 100644
index 70d28180..00000000
--- a/doc/2/core-classes/kuzzle/collection/index.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-code: true
-type: page
-title: collection
-description: Kuzzle:collection
----
-
-# collection
-
-Instantiates a new [Collection](/sdk/java/2/core-classes/collection) object.
-
----
-
-## collection(collection, [index])
-
-| Arguments | Type | Description |
-| ------------ | ------ | ------------------------------------------------------ |
-| `collection` | string | The name of the collection you want to manipulate |
-| `index` | string | The name of the index containing the collection |
-
-If no `index` is provided, the factory will take the default index set in the main Kuzzle SDK instance. If no default index has been set, an error is thrown.
-
-The `index` argument takes precedence over the default index.
-
----
-
-## Return Value
-
-Returns a [Collection](/sdk/java/2/core-classes/collection) object.
-
-## Usage
-
-<<< ./snippets/collection-1.java
diff --git a/doc/2/core-classes/kuzzle/collection/snippets/collection-1.java b/doc/2/core-classes/kuzzle/collection/snippets/collection-1.java
deleted file mode 100644
index a6ce6494..00000000
--- a/doc/2/core-classes/kuzzle/collection/snippets/collection-1.java
+++ /dev/null
@@ -1,6 +0,0 @@
-
-Collection collection = kuzzle.collection("collection", "index");
-
-// or using a default index:
-kuzzle.setDefaultIndex("index");
-Collection collection = kuzzle.collection("collection");
diff --git a/doc/2/core-classes/kuzzle/connect/index.md b/doc/2/core-classes/kuzzle/connect/index.md
deleted file mode 100644
index b161ca4e..00000000
--- a/doc/2/core-classes/kuzzle/connect/index.md
+++ /dev/null
@@ -1,27 +0,0 @@
----
-code: true
-type: page
-title: connect
-description: Kuzzle:connect
----
-
-# connect
-
-Connects to Kuzzle using the `host` parameter provided in the constructor.
-Has no effect if `connect` is set to `auto`, unless `disconnect` has been called first.
-
----
-
-## Return value
-
-Returns the `Kuzzle` object to allow chaining.
-
----
-
-## Callback Response
-
-If a callback has been provided to the `Kuzzle` constructor, it will be called with the `Kuzzle` instance once connected to Kuzzle
-
-## Usage
-
-<<< ./snippets/connect-1.java
diff --git a/doc/2/core-classes/kuzzle/connect/snippets/connect-1.java b/doc/2/core-classes/kuzzle/connect/snippets/connect-1.java
deleted file mode 100644
index d2b41898..00000000
--- a/doc/2/core-classes/kuzzle/connect/snippets/connect-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.connect();
diff --git a/doc/2/core-classes/kuzzle/constructor/index.md b/doc/2/core-classes/kuzzle/constructor/index.md
deleted file mode 100644
index 43984d87..00000000
--- a/doc/2/core-classes/kuzzle/constructor/index.md
+++ /dev/null
@@ -1,95 +0,0 @@
----
-code: true
-type: page
-title: Kuzzle
-description: Entry point and main class for the entire SDK
-order: 100
----
-
-# Constructor
-
-This is the main entry point to communicate with Kuzzle. Every other object inherits properties from the `Kuzzle` object.
-
----
-
-## Kuzzle(host, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------- |
-| `host` | string | The server name (or the IP address) of a Kuzzle server installation |
-| `options` | JSON object | Optional Kuzzle connection configuration |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ------------------- | ----------- | ------------------------------------------------------------------ | -------- |
-| `autoQueue` | boolean | Automatically queue all requests during offline mode | `false` |
-| `autoReconnect` | boolean | Automatically reconnect after a connection loss | `true` |
-| `autoReplay` | boolean | Automatically replay queued requests on a `reconnected` event | `false` |
-| `autoResubscribe` | boolean | Automatically renew all subscriptions on a `reconnected` event | `true` |
-| `connect` | string | Manually or automatically connect to the Kuzzle instance | `auto` |
-| `defaultIndex` | string | Set the default index to use | |
-| `headers` | JSON object | Common headers for all sent documents | |
-| `volatile` | JSON object | Common volatile data, will be sent to all future requests | |
-| `offlineMode` | string | Offline mode configuration | `manual` |
-| `port` | integer | Kuzzle network port | 7512 |
-| `queueTTL` | integer | Time a queued request is kept during offline mode, in milliseconds | `120000` |
-| `queueMaxSize` | integer | Number of maximum requests kept during offline mode | `500` |
-| `replayInterval` | integer | Delay between each replayed requests, in milliseconds | `10` |
-| `reconnectionDelay` | integer | number of milliseconds between reconnection attempts | `1000` |
-| `ssl` | boolean | Switch Kuzzle connection to SSL mode | `false` |
-
-**Notes:**
-
-- the `offlineMode` option only accepts the `manual` and `auto` values
-
----
-
-## Properties
-
-| Property name | Type | Description | Writable? |
-| -------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------- | :-------: |
-| `autoQueue` | boolean | Automatically queue all requests during offline mode | Yes |
-| `autoReconnect` | boolean | Automatically reconnect after a connection loss | No |
-| `autoReplay` | boolean | Automatically replay queued requests on a `reconnected` event | Yes |
-| `autoResubscribe` | boolean | Automatically renew all subscriptions on a `reconnected` event | No |
-| `defaultIndex` | string | Kuzzle's default index to use | Yes |
-| `headers` | JSON object | Common headers for all sent documents. | Yes |
-| `host` | string | Target Kuzzle host name/address | No |
-| `jwtToken` | string | Token used in requests for authentication. | Yes |
-| `offlineQueue` | JSON object | Contains the queued requests during offline mode | No |
-| `offlineQueueLoader` | function | Called before dequeuing requests after exiting offline mode, to add items at the beginning of the offline queue | Yes |
-| `port` | integer | Kuzzle network port | No |
-| `queueFilter` | function | Called during offline mode. Takes a request object as arguments and returns a boolean, indicating if a request can be queued | Yes |
-| `queueMaxSize` | integer | Number of maximum requests kept during offline mode | Yes |
-| `queueTTL` | integer | Time a queued request is kept during offline mode, in milliseconds | Yes |
-| `replayInterval` | integer | Delay between each replayed requests | Yes |
-| `reconnectionDelay` | integer | Number of milliseconds between reconnection attempts | No |
-| `ssl` | boolean | Connect to Kuzzle using SSL | No |
-| `volatile` | JSON object | Common volatile data, will be sent to all future requests | Yes |
-
-**Notes:**
-
-- if `connect` is set to `manual`, the `connect` method will have to be called manually
-- the kuzzle instance will automatically queue all requests, and play them automatically once a first connection is established, regardless of the `connect` or offline mode option values.
-- multiple methods allow passing specific `volatile` data. These `volatile` data will be merged with the global Kuzzle `volatile` object when sending the request, with the request specific `volatile` taking priority over the global ones.
-- the `queueFilter` property is a function taking a JSON object as an argument. This object is the request sent to Kuzzle, following the [Kuzzle API](/core/1/api/essentials/query-syntax) format
-- if `queueTTL` is set to `0`, requests are kept indefinitely
-- The offline buffer acts like a first-in first-out (FIFO) queue, meaning that if the `queueMaxSize` limit is reached, older requests are discarded to make room for new requests
-- if `queueMaxSize` is set to `0`, an unlimited number of requests is kept until the buffer is flushed
-- the `offlineQueueLoader` must be set with a function, taking no argument, and returning an array of objects containing a `query` member with a Kuzzle query to be replayed, and an optional `cb` member with the corresponding callback to invoke with the query result
-- updates to `host`, `port`, `autoReconnect`, `reconnectionDelay` and `sslConnection` properties will only take effect on next `connect` call
-
----
-
-## Callback response
-
-If the connection succeeds, resolves to the `Kuzzle` object itself.
-If the `connect` option is set to `manual`, the callback will be called after the `connect` method is resolved.
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/kuzzle/constructor/snippets/constructor-1.java b/doc/2/core-classes/kuzzle/constructor/snippets/constructor-1.java
deleted file mode 100644
index 4fe6ff7e..00000000
--- a/doc/2/core-classes/kuzzle/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-import io.kuzzle.sdk.core.Kuzzle;
-import io.kuzzle.sdk.core.Options;
-
-Options options = new Options();
-
-options.setDefaultIndex("some index")
- .setAutoReconnect(true),
- .setHeaders(new JSONObject().put("someheader", "value"))
- .setPort(7512);
-
-Kuzzle kuzzle = new Kuzzle("localhost", options, new ResponseListener() {
- @Override
- public void onSuccess(Void object) {
- // invoked once connected, object contains the kuzzle instance
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle connection error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/create-index/index.md b/doc/2/core-classes/kuzzle/create-index/index.md
deleted file mode 100644
index af0648b2..00000000
--- a/doc/2/core-classes/kuzzle/create-index/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: createIndex
-description: Kuzzle:createIndex
----
-
-# createIndex
-
-Create a new empty index, with no associated mapping.
-
----
-
-## createIndex([index], [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------------------------------------------------------------------------------- |
-| `index` | string | Optional index to query. If no set, defaults to [Kuzzle.defaultIndex](/sdk/java/2/core-classes/kuzzle#properties) |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the index creation status.
-
-## Usage
-
-<<< ./snippets/create-index-1.java
-
-> Callback response:
-
-```json
-{
- "acknowledged": true,
- "shards_acknowledged": true
-}
-```
diff --git a/doc/2/core-classes/kuzzle/create-index/snippets/create-index-1.java b/doc/2/core-classes/kuzzle/create-index/snippets/create-index-1.java
deleted file mode 100644
index 13dc0831..00000000
--- a/doc/2/core-classes/kuzzle/create-index/snippets/create-index-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.createIndex("myIndex", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
- // result var contains the creation status of myIndex.
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/create-my-credentials/index.md b/doc/2/core-classes/kuzzle/create-my-credentials/index.md
deleted file mode 100644
index 57776eed..00000000
--- a/doc/2/core-classes/kuzzle/create-my-credentials/index.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-code: true
-type: page
-title: createMyCredentials
-description: Kuzzle:createMyCredentials
----
-
-# createMyCredentials
-
-Create the current user's credentials for the specified strategy. The credentials required will depend on the authentication plugin and strategy.
-
----
-
-## createMyCredentials(strategy, credentials, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------- |
-| `strategy` | string | Strategy you want to create credentials for |
-| `credentials` | JSON object | The credentials |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the created credentials.
-
-## Usage
-
-<<< ./snippets/create-my-credentials-1.java
diff --git a/doc/2/core-classes/kuzzle/create-my-credentials/snippets/create-my-credentials-1.java b/doc/2/core-classes/kuzzle/create-my-credentials/snippets/create-my-credentials-1.java
deleted file mode 100644
index 85ea1917..00000000
--- a/doc/2/core-classes/kuzzle/create-my-credentials/snippets/create-my-credentials-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-JSONObject credentials = new JSONObject().put("username", "bar");
-
-kuzzle.createMyCredentials("local", credentials, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
- // result var contains the new credentials and the kuid of the user
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/delete-my-credentials/index.md b/doc/2/core-classes/kuzzle/delete-my-credentials/index.md
deleted file mode 100644
index 2d60d5b9..00000000
--- a/doc/2/core-classes/kuzzle/delete-my-credentials/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: deleteMyCredentials
-description: Kuzzle:deleteMyCredentials
----
-
-# deleteMyCredentials
-
-Delete the current user's credentials for the specified `strategy`.
-
----
-
-## deleteMyCredentials(strategy, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------- |
-| `strategy` | string | Strategy you want to delete credentials from |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the query status.
-
-## Usage
-
-<<< ./snippets/delete-my-credentials-1.java
diff --git a/doc/2/core-classes/kuzzle/delete-my-credentials/snippets/delete-my-credentials-1.java b/doc/2/core-classes/kuzzle/delete-my-credentials/snippets/delete-my-credentials-1.java
deleted file mode 100644
index 23ae2c7e..00000000
--- a/doc/2/core-classes/kuzzle/delete-my-credentials/snippets/delete-my-credentials-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.deleteMyCredentials("local", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
- // result var contains the query status
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/disconnect/index.md b/doc/2/core-classes/kuzzle/disconnect/index.md
deleted file mode 100644
index d4efaa32..00000000
--- a/doc/2/core-classes/kuzzle/disconnect/index.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-code: true
-type: page
-title: disconnect
-description: Kuzzle:disconnect
----
-
-# disconnect
-
-Closes the current connection, and frees all allocated resources.
-Contrary to the `offline` state (when the network connection is unexpectedly lost), `disconnect()` invalidates the instance, which cannot be used until [connect()](/sdk/java/2/core-classes/kuzzle/connect) is explicitly called.
-This action does not trigger a `disconnected` event since this event is triggered when an unexpected disconnection occur.
-
-## Usage
-
-<<< ./snippets/disconnect-1.java
diff --git a/doc/2/core-classes/kuzzle/disconnect/snippets/disconnect-1.java b/doc/2/core-classes/kuzzle/disconnect/snippets/disconnect-1.java
deleted file mode 100644
index 80a048ab..00000000
--- a/doc/2/core-classes/kuzzle/disconnect/snippets/disconnect-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.disconnect();
diff --git a/doc/2/core-classes/kuzzle/flush-queue/index.md b/doc/2/core-classes/kuzzle/flush-queue/index.md
deleted file mode 100644
index c272949e..00000000
--- a/doc/2/core-classes/kuzzle/flush-queue/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: flushQueue
-description: Kuzzle:flushQueue
----
-
-# flushQueue
-
-Empties the offline queue without replaying it.
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK instance to allow chaining.
-
-## Usage
-
-<<< ./snippets/flush-queue-1.java
diff --git a/doc/2/core-classes/kuzzle/flush-queue/snippets/flush-queue-1.java b/doc/2/core-classes/kuzzle/flush-queue/snippets/flush-queue-1.java
deleted file mode 100644
index 3c277c58..00000000
--- a/doc/2/core-classes/kuzzle/flush-queue/snippets/flush-queue-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.flushQueue();
diff --git a/doc/2/core-classes/kuzzle/get-all-statistics/index.md b/doc/2/core-classes/kuzzle/get-all-statistics/index.md
deleted file mode 100644
index 200c22d5..00000000
--- a/doc/2/core-classes/kuzzle/get-all-statistics/index.md
+++ /dev/null
@@ -1,66 +0,0 @@
----
-code: true
-type: page
-title: getAllStatistics
-description: Kuzzle:getAllStatistics
----
-
-# getAllStatistics
-
-> Callback response example:
-
-```json
-[
- {
- "connections": { "socketio": 1 },
- "ongoingRequests": { "rest": 0, "socketio": 0 },
- "completedRequests": { "mqtt": 37, "socketio": 17 },
- "failedRequests": { "socketio": 1 },
- "timestamp": "1453110641308"
- },
- {
- "connections": { "socketio": 1 },
- "ongoingRequests": { "rest": 0, "socketio": 0 },
- "completedRequests": { "socketio": 34 },
- "failedRequests": { "socketio": 3 },
- "timestamp": "1453110642308"
- },
- {
- "connections": {},
- "ongoingRequests": { "rest": 0, "socketio": 0 },
- "completedRequests": { "socketio": 40 },
- "failedRequests": {},
- "timestamp": "1453110643308"
- }
-]
-```
-
-Kuzzle monitors active connections, and ongoing/completed/failed requests.
-This method returns all available statistics from Kuzzle.
-
----
-
-## getAllStatistics([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-### Callback Response
-
-Returns an array of JSON objects that each contain a statistics frame.
-
-## Usage
-
-<<< ./snippets/get-all-statistics-1.java
diff --git a/doc/2/core-classes/kuzzle/get-all-statistics/snippets/get-all-statistics-1.java b/doc/2/core-classes/kuzzle/get-all-statistics/snippets/get-all-statistics-1.java
deleted file mode 100644
index e54c9609..00000000
--- a/doc/2/core-classes/kuzzle/get-all-statistics/snippets/get-all-statistics-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.getAllStatistics(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] frames) {
- // loop through all returned frames
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-};
diff --git a/doc/2/core-classes/kuzzle/get-auto-refresh/index.md b/doc/2/core-classes/kuzzle/get-auto-refresh/index.md
deleted file mode 100644
index b939352f..00000000
--- a/doc/2/core-classes/kuzzle/get-auto-refresh/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: getAutoRefresh
-description: Kuzzle:getAutoRefresh
----
-
-# getAutoRefresh
-
-The `autoRefresh` flag, when set to true, will make Kuzzle perform a
-[`refresh`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-refresh.html) request
-immediately after each write request, causing documents to be immediately visible in a search.
-
-The `getAutoRefresh` function returns the current `autoRefresh` status for the given index.
-
-:::warning
-A refresh operation comes with some performance costs.
-
-While forcing the autoRefresh can be convenient on a development or test environmnent, we recommend that you avoid
-using it in production or at least carefully monitor its implications before using it.
-:::
-
----
-
-#### getAutoRefresh([index], [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------------------------------------------------------------------------------- |
-| `index` | string | Optional index to query. If no set, defaults to [Kuzzle.defaultIndex](/sdk/java/2/core-classes/kuzzle#properties) |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a boolean with the index `autoRefresh` status.
-
-## Usage
-
-<<< ./snippets/get-auto-refresh-1.java
diff --git a/doc/2/core-classes/kuzzle/get-auto-refresh/snippets/get-auto-refresh-1.java b/doc/2/core-classes/kuzzle/get-auto-refresh/snippets/get-auto-refresh-1.java
deleted file mode 100644
index d1264b20..00000000
--- a/doc/2/core-classes/kuzzle/get-auto-refresh/snippets/get-auto-refresh-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.getAutoRefresh("myIndex", new ResponseListener() {
- @Override
- public void onSuccess(Boolean autoRefresh) {
- // autoRefresh var contains the autoRefresh status of myIndex.
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/get-jwt-token/index.md b/doc/2/core-classes/kuzzle/get-jwt-token/index.md
deleted file mode 100644
index a2b37ff1..00000000
--- a/doc/2/core-classes/kuzzle/get-jwt-token/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: getJwtToken
-description: Kuzzle:getJwtToken
----
-
-# getJwtToken
-
-Get internal jwtToken used to request kuzzle.
-
----
-
-## Return Value
-
-Returns the stored JWT as a string value.
-
-## Usage
-
-<<< ./snippets/get-jwt-token-1.java
diff --git a/doc/2/core-classes/kuzzle/get-jwt-token/snippets/get-jwt-token-1.java b/doc/2/core-classes/kuzzle/get-jwt-token/snippets/get-jwt-token-1.java
deleted file mode 100644
index 748795f1..00000000
--- a/doc/2/core-classes/kuzzle/get-jwt-token/snippets/get-jwt-token-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-String jwtToken = kuzzle.getJwtToken();
diff --git a/doc/2/core-classes/kuzzle/get-my-credentials/index.md b/doc/2/core-classes/kuzzle/get-my-credentials/index.md
deleted file mode 100644
index f32296b0..00000000
--- a/doc/2/core-classes/kuzzle/get-my-credentials/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: getMyCredentials
-description: Kuzzle:getMyCredentials
----
-
-# getMyCredentials
-
-Get [credential information](/core/1/guides/essentials/user-authentication#user-credentials) for the current user.
-
----
-
-## getMyCredentials(strategy, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `strategy` | string | Strategy you want to get credentials from |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the credentials for the provided authentication strategy.
-
-## Usage
-
-<<< ./snippets/get-my-credentials-1.java
-
-> Callback response
-
-```json
-{
- "username": "foo",
- "kuid": ""
-}
-```
diff --git a/doc/2/core-classes/kuzzle/get-my-credentials/snippets/get-my-credentials-1.java b/doc/2/core-classes/kuzzle/get-my-credentials/snippets/get-my-credentials-1.java
deleted file mode 100644
index afe80354..00000000
--- a/doc/2/core-classes/kuzzle/get-my-credentials/snippets/get-my-credentials-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.getMyCredentials("local", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject credentials) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/get-my-rights/index.md b/doc/2/core-classes/kuzzle/get-my-rights/index.md
deleted file mode 100644
index c8fd5a9d..00000000
--- a/doc/2/core-classes/kuzzle/get-my-rights/index.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-code: true
-type: page
-title: getMyRights
-description: Kuzzle:getMyRights
----
-
-# getMyRights
-
-Gets the rights for the current user.
-
----
-
-## getMyRights([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of rights.
-
-## Usage
-
-<<< ./snippets/get-my-rights-1.java
-
-> Callback response
-
-```json
-[
- {
- "controller": "my-controller",
- "action": "my-action",
- "index": "*",
- "collection": "*",
- "value": "allowed"
- },
- {
- "controller": "another-controller",
- "action": "*",
- "index": "my-index",
- "collection": "*",
- "value": "conditional"
- }
-]
-```
diff --git a/doc/2/core-classes/kuzzle/get-my-rights/snippets/get-my-rights-1.java b/doc/2/core-classes/kuzzle/get-my-rights/snippets/get-my-rights-1.java
deleted file mode 100644
index e6e02008..00000000
--- a/doc/2/core-classes/kuzzle/get-my-rights/snippets/get-my-rights-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-kuzzle
- .security
- .getMyRights(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] rights) {
- }
-
- @Override
- public void onError(JSONObject error) {
- }
- });
diff --git a/doc/2/core-classes/kuzzle/get-server-info/index.md b/doc/2/core-classes/kuzzle/get-server-info/index.md
deleted file mode 100644
index e86a5787..00000000
--- a/doc/2/core-classes/kuzzle/get-server-info/index.md
+++ /dev/null
@@ -1,120 +0,0 @@
----
-code: true
-type: page
-title: getServerInfo
-description: Kuzzle:getServerInfo
----
-
-# getServerInfo
-
-> Callback response example:
-
-```json
-{
- "kuzzle": {
- "api": {
- "routes": {
- "controller1": {
- "action1": {
- "controller": "controller1",
- "action": "action1",
- "http": {
- "verb": "GET",
- "url": "/action1/url"
- }
- },
- "action2": {
- "controller": "controller1",
- "action": "action2",
- "http": {
- "verb": "POST",
- "url": "/action2/url"
- }
- },
- {
- "...": "..."
- }
- },
- "pluginName/controller": {
- "action": {
- "controller": "pluginName/controller",
- "action": "action",
- "http": {
- "verb": "GET",
- "url": "/action/url"
- }
- },
- {
- "...": " ..."
- }
- },
- {
- "...": "..."
- }
- },
- "version": ""
- },
- "memoryUsed": 12345,
- "nodeVersion": "v6.9.5",
- "plugins": {},
- "system": {
- "cpus": [
- {
- "cpu1": "informations"
- },
- {
- "...": "..."
- }
- ],
- "memory": {
- "free": 123456,
- "total": 1234567
- }
- },
- "uptime": "",
- "version": ""
- },
- "services": {
- "internalCache": {
- "kuzzle memory cache": "informations",
- "...": "..."
- },
- "memoryStorage": {
- "API memory storage": "informations",
- "...": "..."
- },
- {
- "...": "..."
- }
- }
-}
-```
-
-Retrieves information about Kuzzle plugins and active services.
-
----
-
-## getServerInfo([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a JSON object containing server information.
-
-## Usage
-
-<<< ./snippets/get-server-info-1.java
diff --git a/doc/2/core-classes/kuzzle/get-server-info/snippets/get-server-info-1.java b/doc/2/core-classes/kuzzle/get-server-info/snippets/get-server-info-1.java
deleted file mode 100644
index f9a0f8ac..00000000
--- a/doc/2/core-classes/kuzzle/get-server-info/snippets/get-server-info-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.getServerInfo(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
- // Handle success
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/get-statistics/index.md b/doc/2/core-classes/kuzzle/get-statistics/index.md
deleted file mode 100644
index 1c365fa3..00000000
--- a/doc/2/core-classes/kuzzle/get-statistics/index.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-code: true
-type: page
-title: getStatistics
-description: Kuzzle:getStatistics
----
-
-# getStatistics
-
-> Without argument, retrieves the last statistic frame in an array:
-> When providing a timestamp, retrieves all frames recorded after that timestamp:
-> Kuzzle server monitors active connections, and ongoing/completed/failed requests.
-> This method returns either the last statistics frame, or a set of frames starting from a provided timestamp.
-
----
-
-## getStatistics([timestamp], [options], callback)
-
-| Arguments | Type | Description |
-| ----------- | ----------- | ---------------------------------------------------------------- |
-| `timestamp` | Epoch time | Optional starting time from which the frames are to be retrieved |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
-**Note:** Kuzzle statistics are cleaned up regularly. If the timestamp is set too far in the past, then this method will return all available statistics.
-
----
-
-### Callback Response
-
-Returns an `array` containing one or more statistics frame (as JSON objects).
-
-## Usage
-
-<<< ./snippets/get-statistics-1.java
-
-<<< ./snippets/get-statistics-2.java
-
-> Callback response:
-
-```json
-[
- {
- "connections": { "socketio": 1 },
- "ongoingRequests": { "rest": 0, "socketio": 0 },
- "completedRequests": { "mqtt": 37, "socketio": 17 },
- "failedRequests": { "socketio": 1 },
- "timestamp": "1453110641308"
- }
-]
-```
diff --git a/doc/2/core-classes/kuzzle/get-statistics/snippets/get-statistics-1.java b/doc/2/core-classes/kuzzle/get-statistics/snippets/get-statistics-1.java
deleted file mode 100644
index 269a5471..00000000
--- a/doc/2/core-classes/kuzzle/get-statistics/snippets/get-statistics-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.getStatistics(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] statistics) {
- // ...
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/get-statistics/snippets/get-statistics-2.java b/doc/2/core-classes/kuzzle/get-statistics/snippets/get-statistics-2.java
deleted file mode 100644
index 0e852ace..00000000
--- a/doc/2/core-classes/kuzzle/get-statistics/snippets/get-statistics-2.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-// Date can be either in ISO format or a timestamp (utc, in milliseconds)
-kuzzle.getStatistics("2015-11-15T13:36:45.558Z", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] statistics) {
- // ...
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-};
diff --git a/doc/2/core-classes/kuzzle/index.md b/doc/2/core-classes/kuzzle/index.md
deleted file mode 100644
index 54c7fde2..00000000
--- a/doc/2/core-classes/kuzzle/index.md
+++ /dev/null
@@ -1,7 +0,0 @@
----
-code: true
-type: branch
-title: Kuzzle
-description: Kuzzle documentation
-order: 400
----
diff --git a/doc/2/core-classes/kuzzle/list-collections/index.md b/doc/2/core-classes/kuzzle/list-collections/index.md
deleted file mode 100644
index 0b01279b..00000000
--- a/doc/2/core-classes/kuzzle/list-collections/index.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-code: true
-type: page
-title: listCollections
-description: Kuzzle:listCollections
----
-
-# listCollections
-
-Returns the list of known collections contained in a specified index.
-
----
-
-## listCollections([index], [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------- |
-| `index` | string | Index containing the collections to be listed |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `from` | integer | Determines the starting point of the pagination. By default, start at the beggining | `0` |
-| `size` | integer | Determines the size of the returned result set. By default, no limit is applied | `undefined` |
-| `type` | string | Get either `stored` collections or `realtime` ones. By default, list `all` collections | `all` |
-
-If no `index` argument is provided, the `defaultIndex` property is used. If no default index is found, this method throws an error.
-
----
-
-## Callback Response
-
-Returns an array of JSON objects containing the list of stored and/or realtime collections on the provided index.
-
-## Usage
-
-<<< ./snippets/list-collections-1.java
-
-> Callback response:
-
-```json
-[
- { "name": "realtime_1", "type": "realtime" },
- { "name": "realtime_2", "type": "realtime" },
- { "name": "realtime_...", "type": "realtime" },
- { "name": "realtime_n", "type": "realtime" },
- { "name": "stored_1", "type": "stored" },
- { "name": "stored_2", "type": "stored" },
- { "name": "stored_...", "type": "stored" },
- { "name": "stored_n", "type": "stored" }
-]
-```
diff --git a/doc/2/core-classes/kuzzle/list-collections/snippets/list-collections-1.java b/doc/2/core-classes/kuzzle/list-collections/snippets/list-collections-1.java
deleted file mode 100644
index 5f40b4bc..00000000
--- a/doc/2/core-classes/kuzzle/list-collections/snippets/list-collections-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.listCollections("index", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] collections) {
- // ...
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/list-indexes/index.md b/doc/2/core-classes/kuzzle/list-indexes/index.md
deleted file mode 100644
index e117e35c..00000000
--- a/doc/2/core-classes/kuzzle/list-indexes/index.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-code: true
-type: page
-title: listIndexes
-description: Kuzzle:listIndexes
----
-
-# listIndexes
-
-Returns the list of indexes stored in Kuzzle.
-
----
-
-## listIndexes([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an `array` of index names.
-
-## Usage
-
-<<< ./snippets/list-indexes-1.java
-
-> Callback response:
-
-```json
-["index", "another index", "..."]
-```
diff --git a/doc/2/core-classes/kuzzle/list-indexes/snippets/list-indexes-1.java b/doc/2/core-classes/kuzzle/list-indexes/snippets/list-indexes-1.java
deleted file mode 100644
index 9fa6a116..00000000
--- a/doc/2/core-classes/kuzzle/list-indexes/snippets/list-indexes-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.listIndexes(new ResponseListener() {
- @Override
- public void onSuccess(String[] result) {
- // ...
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/login/index.md b/doc/2/core-classes/kuzzle/login/index.md
deleted file mode 100644
index 4180a4b7..00000000
--- a/doc/2/core-classes/kuzzle/login/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: login
-description: Kuzzle:login
----
-
-# login
-
-Login a user using a specified strategy and their credentials.
-
-If the Kuzzle response contains a JWT Token, the Kuzzle SDK token is set and the `loginAttempt` event is fired immediately with the following object:
-`{ success: true }`
-This is the case, for instance, with the `local` authentication strategy.
-
-If the request succeeds but there is no token, then it means that the chosen strategy is a two-steps authentication method, such as the OAUTH strategy. In that case, the `loginAttempt` event is **not** fired. To complete the login, the `setJwtToken` method must be called either with a token or with an appropriate Kuzzle response.
-
-If the login attempt fails, the `loginAttempt` event is fired with the following response:
-`{ success: false, error: 'error message' }`
-
-:::info
-This method is non-queuable, meaning that during offline mode, it will be discarded and the callback will be called with an error.
-:::
-
----
-
-## login(strategy, [credentials], [expiresIn], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------------------ |
-| `strategy` | string | Authentication strategy (local, facebook, github, ...) |
-| `credentials` | JSON object | Optional login credentials, depending on the strategy |
-| `expiresIn` | _varies_ | Login expiration time |
-| `callback` | function | Optional callback handling the response |
-
-**Note:** If the `expiresIn` argument is not set, the default token expiration value will be taken from the Kuzzle server configuration.
-
-By default, Kuzzle comes with the [kuzzle-plugin-auth-passport-local](https://github.com/kuzzleio/kuzzle-plugin-auth-passport-local) plugin, which provides the `local` authentication strategy.
-This strategy requires a `username` and `password` as `credentials`
-
----
-
-## Callback Response
-
-Returns a JSON object containing the Kuzzle response.
-
-## Usage
-
-<<< ./snippets/login-1.java
diff --git a/doc/2/core-classes/kuzzle/login/snippets/login-1.java b/doc/2/core-classes/kuzzle/login/snippets/login-1.java
deleted file mode 100644
index db475b1a..00000000
--- a/doc/2/core-classes/kuzzle/login/snippets/login-1.java
+++ /dev/null
@@ -1,16 +0,0 @@
-
-JSONObject credentials = new JSONObject()
- .put("username", "John Doe")
- .put("password", "my secret password");
-
-kuzzle.login("local", credentials, 30000, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
- // ...
- }
-
- @Override
- public void onError() {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/logout/index.md b/doc/2/core-classes/kuzzle/logout/index.md
deleted file mode 100644
index 6bf51b09..00000000
--- a/doc/2/core-classes/kuzzle/logout/index.md
+++ /dev/null
@@ -1,41 +0,0 @@
----
-code: true
-type: page
-title: logout
-description: Kuzzle:logout
----
-
-# logout
-
-Logs the user out.
-
-:::info
-This method is non-queuable, meaning that during offline mode, it will be discarded and the callback will be called with an error.
-:::
-
----
-
-## logout([callback])
-
-| Arguments | Type | Description |
-| ---------- | -------- | --------------------------------------- |
-| `callback` | function | Optional callback handling the response |
-
-This method empties the `jwtToken` property
-
----
-
-## Return value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the `Kuzzle` SDK object once the logout process is complete, either successfully or not.
-The `Kuzzle` SDK object will unset the `jwtToken` property if the user is successfully logged out.
-
-## Usage
-
-<<< ./snippets/logout-1.java
diff --git a/doc/2/core-classes/kuzzle/logout/snippets/logout-1.java b/doc/2/core-classes/kuzzle/logout/snippets/logout-1.java
deleted file mode 100644
index df71fa54..00000000
--- a/doc/2/core-classes/kuzzle/logout/snippets/logout-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.logout(new ResponseListener() {
- @Override
- public void onSuccess(Void result) {
- // ...
- }
-
- @Override
- public void onError() {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/memory-storage/index.md b/doc/2/core-classes/kuzzle/memory-storage/index.md
deleted file mode 100644
index 8f040194..00000000
--- a/doc/2/core-classes/kuzzle/memory-storage/index.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-code: true
-type: page
-title: memoryStorage
-description: Kuzzle:memoryStorage
----
-
-## memoryStorage
-
-A [MemoryStorage](/sdk/java/2/core-classes/memory-storage) singleton.
diff --git a/doc/2/core-classes/kuzzle/now/index.md b/doc/2/core-classes/kuzzle/now/index.md
deleted file mode 100644
index 670e315e..00000000
--- a/doc/2/core-classes/kuzzle/now/index.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-code: true
-type: page
-title: now
-description: Kuzzle:now
----
-
-# now
-
-Retrieves the current Kuzzle time.
-
----
-
-## now([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an `integer` containing the current Kuzzle time, encoded as an UTC Epoch time in milliseconds.
-
-## Usage
-
-<<< ./snippets/now-1.java
-
-> Callback response:
-
-```json
-1447151167622
-```
diff --git a/doc/2/core-classes/kuzzle/now/snippets/now-1.java b/doc/2/core-classes/kuzzle/now/snippets/now-1.java
deleted file mode 100644
index 2e94afb5..00000000
--- a/doc/2/core-classes/kuzzle/now/snippets/now-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.now(new ResponseListener() {
- @Override
- public void onSuccess(Date object) {
- // 'object' contains the Kuzzle timestamp (utc, in milliseconds)
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/query/index.md b/doc/2/core-classes/kuzzle/query/index.md
deleted file mode 100644
index 6debb90e..00000000
--- a/doc/2/core-classes/kuzzle/query/index.md
+++ /dev/null
@@ -1,82 +0,0 @@
----
-code: true
-type: page
-title: query
-description: Kuzzle:query
----
-
-## query
-
-Base method used to send queries to Kuzzle, following the [API Documentation](/core/1/api).
-
-:::warning
-This is a low-level method, exposed to allow advanced SDK users to bypass high-level methods.
-Refer to Kuzzle's API Reference [here](/core/1/api)
-:::
-
----
-
-## query(queryArgs, query, [options], [callback])
-
-| Argument | Type | Description |
-| ----------- | ----------- | -------------------- |
-| `queryArgs` | JSON object | Query base arguments |
-| `query` | JSON object | Query to execute |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback |
-
----
-
-## queryArgs
-
-`queryArgs` is a JSON object allowing Kuzzle to route your query to the right API method:
-
-| Option | Type | Description | Required? |
-| ------------ | ------ | --------------------------------------- | --------- |
-| `controller` | string | API Controller argument | required |
-| `action` | string | API Controller action | required |
-| `index` | string | Index concerned by the action | optional |
-| `collection` | string | Data collection concerned by the action | optional |
-
----
-
-## query
-
-## `query` is a JSON object containing arguments specific to the query, such as a `body` property, a JWT hash, a document `_id`, or generic query options (such as `from` or `size` for [search queries](/core/1/api/controllers/document/search))
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ----------- | ------------------------------------------------------------- | ------- |
-| `volatile` | JSON object | Additional information passed to notifications to other users | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `JSON object` containing the raw Kuzzle response.
-
-## Usage
-
-<<< ./snippets/query-1.java
-
-> Callback response:
-
-```json
-{
- "error": null,
- "result": {
- "action": "action",
- "controller": "controller",
- "requestId": "bf87b930-7c02-11e5-ab10-dfa9e9fd2e07",
- "other properties": "depends of the query made"
- }
-}
-```
diff --git a/doc/2/core-classes/kuzzle/query/snippets/query-1.java b/doc/2/core-classes/kuzzle/query/snippets/query-1.java
deleted file mode 100644
index 6e407d5e..00000000
--- a/doc/2/core-classes/kuzzle/query/snippets/query-1.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-QueryArgs args = new QueryArgs();
-args.controller = "controller";
-args.action = "action";
-
-JSONObject query = new JSONObject()
- .put("body", new JSONObject()
- .put("foo", "bar")
- )
- .put("other", "argument");
-
-kuzzle.query(args, query, new OnQueryDoneListener() {
- @Override
- public void onSuccess(JSONObject object) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/kuzzle/refresh-index/index.md b/doc/2/core-classes/kuzzle/refresh-index/index.md
deleted file mode 100644
index a92465f7..00000000
--- a/doc/2/core-classes/kuzzle/refresh-index/index.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-code: true
-type: page
-title: refreshIndex
-description: Kuzzle:refreshIndex
----
-
-# refreshIndex
-
-When writing or deleting documents in Kuzzle, the update needs to be indexed before being reflected
-in the search index.
-By default, this operation can take up to 1 second.
-
-Given an index, the `refresh` action forces a [`refresh`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-refresh.html),
-on it, making the documents visible to search immediately.
-
-:::warning
-A refresh operation comes with some performance costs.
-
-From the [Elasticsearch documentation](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/docs-refresh.html):
-
-> "While a refresh is much lighter than a commit, it still has a performance cost. A manual refresh can be useful when writing tests, but don’t do a manual refresh every time you index a document in production; it will hurt your performance. Instead, your application needs to be aware of the near real-time nature of Elasticsearch and make allowances for it."
-:::
-
----
-
-## refreshIndex([index], [options], [callback])
-
-| Argument | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------- |
-| `index` | string | _Optional_. The index to refresh. If not set, defaults to [kuzzle.defaultIndex](/sdk/java/2/core-classes/kuzzle#properties). |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | _Optional_. Callback handling the response. |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a JSON structure matching the response from Elasticsearch.
-
-## Usage
-
-<<< ./snippets/refresh-index-1.java
diff --git a/doc/2/core-classes/kuzzle/refresh-index/snippets/refresh-index-1.java b/doc/2/core-classes/kuzzle/refresh-index/snippets/refresh-index-1.java
deleted file mode 100644
index a3f53613..00000000
--- a/doc/2/core-classes/kuzzle/refresh-index/snippets/refresh-index-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.refreshIndex("myIndex");
diff --git a/doc/2/core-classes/kuzzle/remove-all-listeners/index.md b/doc/2/core-classes/kuzzle/remove-all-listeners/index.md
deleted file mode 100644
index ac32ec98..00000000
--- a/doc/2/core-classes/kuzzle/remove-all-listeners/index.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-code: true
-type: page
-title: removeAllListeners
-description: Kuzzle:removeAllListeners
----
-
-# removeAllListeners
-
-Removes all listeners, either from a specific event or from all events
-
----
-
-## removeAllListeners([event])
-
-| Arguments | Type | Description |
-| --------- | ------ | -------------------------------------------------------------------------------- |
-| `event` | string | One of the event described in the `Event Handling` section of this documentation |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/remove-all-listeners-1.java
diff --git a/doc/2/core-classes/kuzzle/remove-all-listeners/snippets/remove-all-listeners-1.java b/doc/2/core-classes/kuzzle/remove-all-listeners/snippets/remove-all-listeners-1.java
deleted file mode 100644
index 1f1c54c2..00000000
--- a/doc/2/core-classes/kuzzle/remove-all-listeners/snippets/remove-all-listeners-1.java
+++ /dev/null
@@ -1,6 +0,0 @@
-
-// Removes all listeners on the "unsubscribed" global event
-kuzzle.removeAllListeners(Event.disconnected);
-
-// Removes all listeners on all global events
-kuzzle.removeAllListeners();
diff --git a/doc/2/core-classes/kuzzle/remove-listener/index.md b/doc/2/core-classes/kuzzle/remove-listener/index.md
deleted file mode 100644
index 55b43059..00000000
--- a/doc/2/core-classes/kuzzle/remove-listener/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-code: true
-type: page
-title: removeListener
-description: Kuzzle:removeListener
----
-
-# removeListener
-
-Remove a listener from an event.
-
----
-
-## removeListener(event, callback)
-
-| Arguments | Type | Description |
-| ---------- | --------------- | --------------------------------------------------------------------------------- |
-| `event` | string | One of the events described in the `Event Handling` section of this documentation |
-| `callback` | function/object | the callback |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/remove-listener-1.java
diff --git a/doc/2/core-classes/kuzzle/remove-listener/snippets/remove-listener-1.java b/doc/2/core-classes/kuzzle/remove-listener/snippets/remove-listener-1.java
deleted file mode 100644
index cd1aa99d..00000000
--- a/doc/2/core-classes/kuzzle/remove-listener/snippets/remove-listener-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.removeListener(Event.disconnected, eventListener);
diff --git a/doc/2/core-classes/kuzzle/replay-queue/index.md b/doc/2/core-classes/kuzzle/replay-queue/index.md
deleted file mode 100644
index 40fd9632..00000000
--- a/doc/2/core-classes/kuzzle/replay-queue/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: replayQueue
-description: Kuzzle:replayQueue
----
-
-# replayQueue
-
-Replays the requests queued during offline mode. Works only if the SDK is not in a `disconnected` state, and if the `autoReplay` option is set to `false`.
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
-## Usage
-
-<<< ./snippets/replay-queue-1.java
diff --git a/doc/2/core-classes/kuzzle/replay-queue/snippets/replay-queue-1.java b/doc/2/core-classes/kuzzle/replay-queue/snippets/replay-queue-1.java
deleted file mode 100644
index 5f4f4ed7..00000000
--- a/doc/2/core-classes/kuzzle/replay-queue/snippets/replay-queue-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.replayQueue();
diff --git a/doc/2/core-classes/kuzzle/security/index.md b/doc/2/core-classes/kuzzle/security/index.md
deleted file mode 100644
index cb913ffa..00000000
--- a/doc/2/core-classes/kuzzle/security/index.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-code: true
-type: page
-title: security
-description: Kuzzle:security
----
-
-# security
-
-A [Security](/sdk/java/2/core-classes/security) singleton.
diff --git a/doc/2/core-classes/kuzzle/set-auto-refresh/index.md b/doc/2/core-classes/kuzzle/set-auto-refresh/index.md
deleted file mode 100644
index 722e87f1..00000000
--- a/doc/2/core-classes/kuzzle/set-auto-refresh/index.md
+++ /dev/null
@@ -1,57 +0,0 @@
----
-code: true
-type: page
-title: setAutoRefresh
-description: Kuzzle:setAutoRefresh
----
-
-# setAutoRefresh
-
-The `autoRefresh` flag, when set to true, will make Kuzzle perform a
-[`refresh`](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-refresh.html) request
-immediately after each write request, causing documents to be immediately visible in a search.
-
-Given an index, the `setAutoRefresh` function updates its `autoRefresh` status.
-
-:::warning
-A refresh operation comes with some performance costs.
-
-
-While forcing the autoRefresh can be convenient on a development or test environmnent, we recommend that you avoid
-using it in production or at least carefully monitor its implications before using it.
-:::
-
----
-
-## setAutoRefresh([index], autoRefresh, [options], [callback])
-
-| Argument | Type | Description |
-| ------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `index` | string | _Optional_ The index to set the `autoRefresh` for. If not set, defaults to [kuzzle.defaultIndex](/sdk/java/2/core-classes/kuzzle#properties). |
-| `autoRefresh` | boolean | The value to set for the `autoRefresh` setting. |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | _Optional_ Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean with the new `autoRefresh` status.
-
-## Usage
-
-<<< ./snippets/set-auto-refresh-1.java
diff --git a/doc/2/core-classes/kuzzle/set-auto-refresh/snippets/set-auto-refresh-1.java b/doc/2/core-classes/kuzzle/set-auto-refresh/snippets/set-auto-refresh-1.java
deleted file mode 100644
index 1adaa881..00000000
--- a/doc/2/core-classes/kuzzle/set-auto-refresh/snippets/set-auto-refresh-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.setAutoRefresh("myIndex", true);
diff --git a/doc/2/core-classes/kuzzle/set-default-index/index.md b/doc/2/core-classes/kuzzle/set-default-index/index.md
deleted file mode 100644
index c69c219c..00000000
--- a/doc/2/core-classes/kuzzle/set-default-index/index.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-code: true
-type: page
-title: setDefaultIndex
-description: Kuzzle:setDefaultIndex
----
-
-# setDefaultIndex
-
-Set the default index. Has the same effect than the `defaultIndex` constructor option.
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
diff --git a/doc/2/core-classes/kuzzle/set-headers/index.md b/doc/2/core-classes/kuzzle/set-headers/index.md
deleted file mode 100644
index baff9fb6..00000000
--- a/doc/2/core-classes/kuzzle/set-headers/index.md
+++ /dev/null
@@ -1,31 +0,0 @@
----
-code: true
-type: page
-title: setHeaders
-description: Kuzzle:setHeaders
----
-
-# setHeaders
-
-This is a helper function returning itself, allowing to easily chain calls.
-
----
-
-## setHeaders(content, [replace])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------------------------------------------------------- |
-| `content` | JSON Object | New content |
-| `replace` | boolean | true: replace the current content with the provided data, false: merge it |
-
-**Note:** by default, the `replace` argument is set to `false`
-
----
-
-## Return value
-
-Returns the `Kuzzle` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-headers-1.java
diff --git a/doc/2/core-classes/kuzzle/set-headers/snippets/set-headers-1.java b/doc/2/core-classes/kuzzle/set-headers/snippets/set-headers-1.java
deleted file mode 100644
index 74fe0517..00000000
--- a/doc/2/core-classes/kuzzle/set-headers/snippets/set-headers-1.java
+++ /dev/null
@@ -1,4 +0,0 @@
-
-JSONObject headers = new JSONObject().put("someContent", "someValue");
-
-kuzzle.setHeaders(headers, true);
diff --git a/doc/2/core-classes/kuzzle/set-jwt-token/index.md b/doc/2/core-classes/kuzzle/set-jwt-token/index.md
deleted file mode 100644
index b92610bd..00000000
--- a/doc/2/core-classes/kuzzle/set-jwt-token/index.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-code: true
-type: page
-title: setJwtToken
-description: Kuzzle:setJwtToken
----
-
-# setJwtToken
-
-Sets the internal JWT token which will be used when making requests to Kuzzle.
-
-If the provided token is valid, a `loginAttempt` event is fired with the following object:
-`{ success: true }`
-
-If not, the `loginAttempt` event is fired with the following response:
-`{ success: false, error: 'error message' }`
-
----
-
-## setJwtToken(jwtToken)
-
-| Arguments | Type | Description |
-| ---------- | ------ | ----------------------------------- |
-| `jwtToken` | string | Previously generated JSON Web Token |
-
----
-
-## setJwtToken(kuzzleResponse)
-
-| Arguments | Type | Description |
-| ---------------- | ----------- | ----------------------------------------------------------- |
-| `kuzzleResponse` | JSON object | Final Kuzzle response from a 2-steps authentication process |
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-jwt-token-1.java
diff --git a/doc/2/core-classes/kuzzle/set-jwt-token/snippets/set-jwt-token-1.java b/doc/2/core-classes/kuzzle/set-jwt-token/snippets/set-jwt-token-1.java
deleted file mode 100644
index d87640d2..00000000
--- a/doc/2/core-classes/kuzzle/set-jwt-token/snippets/set-jwt-token-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-// Directly with a JWT Token
-kuzzle.setJwtToken("some jwt token");
-
-/*
- Or with a Kuzzle response.
- For instance, the final OAUTH2 response is obtained with a redirection from Kuzzle,
- and it can be provided to this method directly.
-
- Here, "authenticationResponse" is an instance of JSONObject
- */
-kuzzle.setJwtToken(authenticationResponse)
diff --git a/doc/2/core-classes/kuzzle/start-queuing/index.md b/doc/2/core-classes/kuzzle/start-queuing/index.md
deleted file mode 100644
index c9a3d5f0..00000000
--- a/doc/2/core-classes/kuzzle/start-queuing/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: startQueuing
-description: Kuzzle:startQueuing
----
-
-# startQueuing
-
-Starts the requests queuing. Works only in offline mode, and if the [autoQueue](/sdk/java/2/core-classes/kuzzle#properties) option is set to `false`.
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
-## Usage
-
-<<< ./snippets/start-queuing-1.java
diff --git a/doc/2/core-classes/kuzzle/start-queuing/snippets/start-queuing-1.java b/doc/2/core-classes/kuzzle/start-queuing/snippets/start-queuing-1.java
deleted file mode 100644
index 938df064..00000000
--- a/doc/2/core-classes/kuzzle/start-queuing/snippets/start-queuing-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.startQueuing();
diff --git a/doc/2/core-classes/kuzzle/stop-queuing/index.md b/doc/2/core-classes/kuzzle/stop-queuing/index.md
deleted file mode 100644
index c9099ff0..00000000
--- a/doc/2/core-classes/kuzzle/stop-queuing/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: stopQueuing
-description: Kuzzle:stopQueuing
----
-
-# stopQueuing
-
-Stops the requests queuing. Works only in offline mode, and if the [autoQueue](/sdk/java/2/core-classes/kuzzle#properties) option is set to `false`.
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
-## Usage
-
-<<< ./snippets/stop-queuing-1.java
diff --git a/doc/2/core-classes/kuzzle/stop-queuing/snippets/stop-queuing-1.java b/doc/2/core-classes/kuzzle/stop-queuing/snippets/stop-queuing-1.java
deleted file mode 100644
index f98144ee..00000000
--- a/doc/2/core-classes/kuzzle/stop-queuing/snippets/stop-queuing-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.stopQueuing();
diff --git a/doc/2/core-classes/kuzzle/unset-jwt-token/index.md b/doc/2/core-classes/kuzzle/unset-jwt-token/index.md
deleted file mode 100644
index 7c892003..00000000
--- a/doc/2/core-classes/kuzzle/unset-jwt-token/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: unsetJwtToken
-description: Kuzzle:unsetJwtToken
----
-
-# unsetJwtToken
-
-Unsets the internal JSON Web Token used for authentication, and stops all existing subscriptions.
-
----
-
-## Return Value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
-## Usage
-
-<<< ./snippets/unset-jwt-token-1.java
diff --git a/doc/2/core-classes/kuzzle/unset-jwt-token/snippets/unset-jwt-token-1.java b/doc/2/core-classes/kuzzle/unset-jwt-token/snippets/unset-jwt-token-1.java
deleted file mode 100644
index d4ab38c4..00000000
--- a/doc/2/core-classes/kuzzle/unset-jwt-token/snippets/unset-jwt-token-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-kuzzle.unsetJwtToken();
diff --git a/doc/2/core-classes/kuzzle/update-my-credentials/index.md b/doc/2/core-classes/kuzzle/update-my-credentials/index.md
deleted file mode 100644
index 9479d6fe..00000000
--- a/doc/2/core-classes/kuzzle/update-my-credentials/index.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-code: true
-type: page
-title: updateMyCredentials
-description: Kuzzle:updateMyCredentials
----
-
-# updateMyCredentials
-
-Update current user credentials for the specified `strategy`. The credentials to send depend on the authentication plugin and the strategy.
-
----
-
-## updateMyCredentials(strategy, credentials, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `strategy` | string | Strategy you want to create credentials in |
-| `credentials` | JSON object | The credentials |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback response
-
-Returns an object reflecting the updated credentials.
-
-## Usage
-
-<<< ./snippets/update-my-credentials-1.java
diff --git a/doc/2/core-classes/kuzzle/update-my-credentials/snippets/update-my-credentials-1.java b/doc/2/core-classes/kuzzle/update-my-credentials/snippets/update-my-credentials-1.java
deleted file mode 100644
index 4e55cf5f..00000000
--- a/doc/2/core-classes/kuzzle/update-my-credentials/snippets/update-my-credentials-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-JSONObject credentials = new JSONObject().put("username", "bar");
-
-kuzzle.updateMyCredentials("local", credentials, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
- // result var contains the updated credentials and the kuid of the user
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/update-self/index.md b/doc/2/core-classes/kuzzle/update-self/index.md
deleted file mode 100644
index 64f078f7..00000000
--- a/doc/2/core-classes/kuzzle/update-self/index.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-code: true
-type: page
-title: updateSelf
-description: Kuzzle:updateSelf
----
-
-# updateSelf
-
----
-
-## updateSelf(content, [options], [callback])
-
-Performs a partial update on the current user.
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------- |
-| `content` | JSON Object | A plain javascript object representing the user |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `Kuzzle` SDK object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the updated user object.
-
-## Usage
-
-<<< ./snippets/update-self-1.java
diff --git a/doc/2/core-classes/kuzzle/update-self/snippets/update-self-1.java b/doc/2/core-classes/kuzzle/update-self/snippets/update-self-1.java
deleted file mode 100644
index d562c35a..00000000
--- a/doc/2/core-classes/kuzzle/update-self/snippets/update-self-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-JSONObject newContent = new JSONObject()
- .put("firstname", "My Name Is")
- .put("lastname", "Jonas");
-
-kuzzle
- .updateSelf(newContent, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/kuzzle/validate-my-credentials/index.md b/doc/2/core-classes/kuzzle/validate-my-credentials/index.md
deleted file mode 100644
index 9c9895e4..00000000
--- a/doc/2/core-classes/kuzzle/validate-my-credentials/index.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-code: true
-type: page
-title: validateMyCredentials
-description: Kuzzle:validateMyCredentials
----
-
-# validateMyCredentials
-
-Update current user's credentials for the specified `strategy`. The credentials to send depend on the authentication plugin and the strategy.
-
----
-
-## validateMyCredentials(strategy, credentials, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `strategy` | string | Strategy you want to create credentials in |
-| `credentials` | JSON object | The credentials |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns true or false.
-
-## Usage
-
-<<< ./snippets/validate-my-credentials-1.java
diff --git a/doc/2/core-classes/kuzzle/validate-my-credentials/snippets/validate-my-credentials-1.java b/doc/2/core-classes/kuzzle/validate-my-credentials/snippets/validate-my-credentials-1.java
deleted file mode 100644
index ac12b76d..00000000
--- a/doc/2/core-classes/kuzzle/validate-my-credentials/snippets/validate-my-credentials-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-JSONObject credentials = new JSONObject().put("username", "bar");
-
-kuzzle.validateMyCredentials("local", credentials, new ResponseListener() {
- @Override
- public void onSuccess(Boolean result) {
- // result var contains either true or false
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/kuzzle/who-am-i/index.md b/doc/2/core-classes/kuzzle/who-am-i/index.md
deleted file mode 100644
index 40993e9c..00000000
--- a/doc/2/core-classes/kuzzle/who-am-i/index.md
+++ /dev/null
@@ -1,28 +0,0 @@
----
-code: true
-type: page
-title: whoAmI
-description: Kuzzle:whoAmI
----
-
-# whoAmI
-
-Returns informations about the user who is currently loggedin.
-
----
-
-## whoAmI(callback)
-
-| Arguments | Type | Description |
-| ---------- | -------- | ------------------------------ |
-| `callback` | function | Callback handling the response |
-
----
-
-## Callback Response
-
-Returns an instantiated [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/who-am-i-1.java
diff --git a/doc/2/core-classes/kuzzle/who-am-i/snippets/who-am-i-1.java b/doc/2/core-classes/kuzzle/who-am-i/snippets/who-am-i-1.java
deleted file mode 100644
index 5791fefe..00000000
--- a/doc/2/core-classes/kuzzle/who-am-i/snippets/who-am-i-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.whoAmI(new ResponseListener() {
- @Override
- public void onSuccess(User myself) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/memory-storage/append/index.md b/doc/2/core-classes/memory-storage/append/index.md
deleted file mode 100644
index b659612f..00000000
--- a/doc/2/core-classes/memory-storage/append/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: append
-description: MemoryStorage:append
----
-
-# append
-
-Appends a value to a key. If the key does not exist, it is created.
-
-[[_Redis documentation_]](https://redis.io/commands/append)
-
----
-
-## append(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Value to append to the key |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Return an integer containing the new length of the key's value.
-
-## Usage
-
-<<< ./snippets/append-1.java
-
-> Callback response:
-
-```json
-5
-```
diff --git a/doc/2/core-classes/memory-storage/append/snippets/append-1.java b/doc/2/core-classes/memory-storage/append/snippets/append-1.java
deleted file mode 100644
index cc1f2f90..00000000
--- a/doc/2/core-classes/memory-storage/append/snippets/append-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.append("key", "value", new ResponseListener() {
- @Override
- public void onSuccess(int newLength) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/bitcount/index.md b/doc/2/core-classes/memory-storage/bitcount/index.md
deleted file mode 100644
index 821f1306..00000000
--- a/doc/2/core-classes/memory-storage/bitcount/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: bitcount
-description: MemoryStorage:bitcount
----
-
-# bitcount
-
-Counts the number of set bits (population counting) in a string.
-
-[[_Redis documentation_]](https://redis.io/commands/bitcount)
-
----
-
-## bitcount(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `end` | int | Ending offset | `-1` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `start` | int | Starting offset | `0` |
-
----
-
-## Callback Response
-
-Return an integer containing the count of set bits.
-
-## Usage
-
-<<< ./snippets/bitcount-1.java
-
-> Callback response:
-
-```json
-21
-```
diff --git a/doc/2/core-classes/memory-storage/bitcount/snippets/bitcount-1.java b/doc/2/core-classes/memory-storage/bitcount/snippets/bitcount-1.java
deleted file mode 100644
index 63e750ab..00000000
--- a/doc/2/core-classes/memory-storage/bitcount/snippets/bitcount-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.bitcount("key", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/bitop/index.md b/doc/2/core-classes/memory-storage/bitop/index.md
deleted file mode 100644
index 9c506a4c..00000000
--- a/doc/2/core-classes/memory-storage/bitop/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: bitop
-description: MemoryStorage:bitop
----
-
-# bitop
-
-Performs a bitwise operation between multiple keys (containing string values) and stores the result in the destination key.
-
-[[_Redis documentation_]](https://redis.io/commands/bitop)
-
----
-
-## bitop(key, operation, keys, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | --------------------------------------------------------------------------- |
-| `key` | string | Destination key identifier |
-| `operation` | string | Bitwise operation to perform.
Allowed values: `AND`, `OR`, `XOR`, `NOT` |
-| `keys` | array | list of source keys on which the bitwise operation will be applied |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the length of the new key's value.
-
-## Usage
-
-<<< ./snippets/bitop-1.java
-
-> Callback response:
-
-```json
-42
-```
diff --git a/doc/2/core-classes/memory-storage/bitop/snippets/bitop-1.java b/doc/2/core-classes/memory-storage/bitop/snippets/bitop-1.java
deleted file mode 100644
index 553bb0c9..00000000
--- a/doc/2/core-classes/memory-storage/bitop/snippets/bitop-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] sourceKeys = {"srckey1", "srckey2", "..."};
-
-kuzzle.memoryStorage.bitop("key", "AND", sourceKeys, new ResponseListener() {
- @Override
- public void onSuccess(int length) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/bitpos/index.md b/doc/2/core-classes/memory-storage/bitpos/index.md
deleted file mode 100644
index c00f83e8..00000000
--- a/doc/2/core-classes/memory-storage/bitpos/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: bitpos
-description: MemoryStorage:bitpos
----
-
-# bitpos
-
-Returns the position of the first bit set to 1 or 0 in a string, or in a substring.
-
-[[_Redis documentation_]](https://redis.io/commands/bitpos)
-
----
-
-## bitpos(key, bit, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `bit` | int | Bit to search.
Allowed values: `0`, `1` |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `end` | int | Ending offset | `-1` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `start` | int | Starting offset | `0` |
-
----
-
-## Callback Response
-
-Returns an integer containing the first position of the searched bit in the string value.
-
-## Usage
-
-<<< ./snippets/bitpos-1.java
-
-> Callback response:
-
-```json
-0
-```
diff --git a/doc/2/core-classes/memory-storage/bitpos/snippets/bitpos-1.java b/doc/2/core-classes/memory-storage/bitpos/snippets/bitpos-1.java
deleted file mode 100644
index b3530be9..00000000
--- a/doc/2/core-classes/memory-storage/bitpos/snippets/bitpos-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.bitpos("key", 0, new ResponseListener() {
- @Override
- public void onSuccess(int position) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/constructor/index.md b/doc/2/core-classes/memory-storage/constructor/index.md
deleted file mode 100644
index 01e3d8b5..00000000
--- a/doc/2/core-classes/memory-storage/constructor/index.md
+++ /dev/null
@@ -1,24 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: MemoryStorage:constructor
-order: 1
----
-
-# Constructor
-
-Kuzzle's memory storage is a data store separate from the database layer.
-It uses Redis internally, and most of its underlying functions are exposed by Kuzzle.
-
----
-
-## MemoryStorage(Kuzzle)
-
-| Arguments | Type | Description |
-| --------- | ------ | ------------------------------------------------------------------------ |
-| `Kuzzle` | object | An instantiated [Kuzzle](/sdk/java/2/core-classes/kuzzle) SDK object |
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/memory-storage/constructor/snippets/constructor-1.java b/doc/2/core-classes/memory-storage/constructor/snippets/constructor-1.java
deleted file mode 100644
index 6981c059..00000000
--- a/doc/2/core-classes/memory-storage/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,6 +0,0 @@
-
-// using the static instance
-MemoryStorage memoryStorage = kuzzle.memoryStorage;
-
-// or instantiating a new MemoryStorage object
-MemoryStorage memoryStorage = new MemoryStorage(kuzzle);
diff --git a/doc/2/core-classes/memory-storage/dbsize/index.md b/doc/2/core-classes/memory-storage/dbsize/index.md
deleted file mode 100644
index 0eb8a05e..00000000
--- a/doc/2/core-classes/memory-storage/dbsize/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: dbsize
-description: MemoryStorage:dbsize
----
-
-# dbsize
-
-Returns the number of keys in the application database.
-
-[[_Redis documentation_]](https://redis.io/commands/dbsize)
-
----
-
-## dbsize([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of keys in the application database.
-
-## Usage
-
-<<< ./snippets/dbsize-1.java
-
-> Callback response:
-
-```json
-12
-```
diff --git a/doc/2/core-classes/memory-storage/dbsize/snippets/dbsize-1.java b/doc/2/core-classes/memory-storage/dbsize/snippets/dbsize-1.java
deleted file mode 100644
index b9ce0ece..00000000
--- a/doc/2/core-classes/memory-storage/dbsize/snippets/dbsize-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.dbsize(new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/decr/index.md b/doc/2/core-classes/memory-storage/decr/index.md
deleted file mode 100644
index 6ff01cf7..00000000
--- a/doc/2/core-classes/memory-storage/decr/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: decr
-description: MemoryStorage:decr
----
-
-# decr
-
-Decrements the number stored at `key` by 1. If the key does not exist, it is set to 0 before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/decr)
-
----
-
-## decr(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated key value.
-
-## Usage
-
-<<< ./snippets/decr-1.java
-
-> Callback response:
-
-```json
--1
-```
diff --git a/doc/2/core-classes/memory-storage/decr/snippets/decr-1.java b/doc/2/core-classes/memory-storage/decr/snippets/decr-1.java
deleted file mode 100644
index 75ea5d99..00000000
--- a/doc/2/core-classes/memory-storage/decr/snippets/decr-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.decr("key", new ResponseListener() {
- @Override
- public void onSuccess(int value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/decrby/index.md b/doc/2/core-classes/memory-storage/decrby/index.md
deleted file mode 100644
index 8660e4c6..00000000
--- a/doc/2/core-classes/memory-storage/decrby/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: decrby
-description: MemoryStorage:decrby
----
-
-# decrby
-
-Decrements the number stored at `key` by a provided integer value. If the key does not exist, it is set to 0 before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/decrby)
-
----
-
-## decrby(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `value` | int | Decrement value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated key value.
-
-## Usage
-
-<<< ./snippets/decrby-1.java
-
-> Callback response:
-
-```json
-57
-```
diff --git a/doc/2/core-classes/memory-storage/decrby/snippets/decrby-1.java b/doc/2/core-classes/memory-storage/decrby/snippets/decrby-1.java
deleted file mode 100644
index cafa6531..00000000
--- a/doc/2/core-classes/memory-storage/decrby/snippets/decrby-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.decrby("key", 42, new ResponseListener() {
- @Override
- public void onSuccess(int value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/del/index.md b/doc/2/core-classes/memory-storage/del/index.md
deleted file mode 100644
index 79412408..00000000
--- a/doc/2/core-classes/memory-storage/del/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: del
-description: MemoryStorage:del
----
-
-# del
-
-Deletes a list of keys.
-
-[[_Redis documentation_]](https://redis.io/commands/del)
-
----
-
-## del(keys, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------- |
-| `keys` | array | List of keys to delete |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Return an integer containing the number of deleted keys.
-
-## Usage
-
-<<< ./snippets/del-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/del/snippets/del-1.java b/doc/2/core-classes/memory-storage/del/snippets/del-1.java
deleted file mode 100644
index 2d794978..00000000
--- a/doc/2/core-classes/memory-storage/del/snippets/del-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = {"key1", "key2", "..."};
-
-kuzzle.memoryStorage.del(keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/exists/index.md b/doc/2/core-classes/memory-storage/exists/index.md
deleted file mode 100644
index 06f5b620..00000000
--- a/doc/2/core-classes/memory-storage/exists/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: exists
-description: MemoryStorage:exists
----
-
-# exists
-
-Checks if the specified keys exist in the database.
-
-[[_Redis documentation_]](https://redis.io/commands/exists)
-
----
-
-## exists(keys, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------- |
-| `keys` | array | List of keys to check for existence |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of existing keys amongst the provided list.
-
-## Usage
-
-<<< ./snippets/exists-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/exists/snippets/exists-1.java b/doc/2/core-classes/memory-storage/exists/snippets/exists-1.java
deleted file mode 100644
index adc33cdb..00000000
--- a/doc/2/core-classes/memory-storage/exists/snippets/exists-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = {"key1", "key2", "..."};
-
-kuzzle.memoryStorage.exists(keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/expire/index.md b/doc/2/core-classes/memory-storage/expire/index.md
deleted file mode 100644
index aecf35af..00000000
--- a/doc/2/core-classes/memory-storage/expire/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: expire
-description: MemoryStorage:expire
----
-
-# expire
-
-Sets a timeout (in seconds) on a key. After the timeout has expired, the key will automatically be deleted.
-
-[[_Redis documentation_]](https://redis.io/commands/expire)
-
----
-
-## expire(key, seconds, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------ |
-| `key` | string | Key identifier |
-| `seconds` | int | Time to live, in seconds |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/expire-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/expire/snippets/expire-1.java b/doc/2/core-classes/memory-storage/expire/snippets/expire-1.java
deleted file mode 100644
index c4d856bf..00000000
--- a/doc/2/core-classes/memory-storage/expire/snippets/expire-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.expire("key", 42, new ResponseListener() {
- @Override
- public void onSuccess(int status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/expireat/index.md b/doc/2/core-classes/memory-storage/expireat/index.md
deleted file mode 100644
index 7f65f5de..00000000
--- a/doc/2/core-classes/memory-storage/expireat/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: expireat
-description: MemoryStorage:expireat
----
-
-# expireat
-
-Sets an expiration timestamp on a key. After the timestamp has been reached, the key will automatically be deleted.
-The `timestamp` parameter accepts an [Epoch time](https://en.wikipedia.org/wiki/Unix_time) value.
-
-[[_Redis documentation_]](https://redis.io/commands/expireat)
-
----
-
-## expireat(key, timestamp, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | -------------------- |
-| `key` | string | Key identifier |
-| `timestamp` | int | Expiration timestamp |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/expireat-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/expireat/snippets/expireat-1.java b/doc/2/core-classes/memory-storage/expireat/snippets/expireat-1.java
deleted file mode 100644
index efc2d90c..00000000
--- a/doc/2/core-classes/memory-storage/expireat/snippets/expireat-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.expireat("key", 1488372354, new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/flushdb/index.md b/doc/2/core-classes/memory-storage/flushdb/index.md
deleted file mode 100644
index 4afac997..00000000
--- a/doc/2/core-classes/memory-storage/flushdb/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: flushdb
-description: MemoryStorage:flushdb
----
-
-# flushdb
-
-Deletes all the keys of the database dedicated to client applications (the reserved space for Kuzzle is unaffected).
-
-[[_Redis documentation_]](https://redis.io/commands/flushdb)
-
----
-
-## flushdb([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/flushdb-1.java
diff --git a/doc/2/core-classes/memory-storage/flushdb/snippets/flushdb-1.java b/doc/2/core-classes/memory-storage/flushdb/snippets/flushdb-1.java
deleted file mode 100644
index 84aad814..00000000
--- a/doc/2/core-classes/memory-storage/flushdb/snippets/flushdb-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.flushdb(new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/geoadd/index.md b/doc/2/core-classes/memory-storage/geoadd/index.md
deleted file mode 100644
index f6969d46..00000000
--- a/doc/2/core-classes/memory-storage/geoadd/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: geoadd
-description: MemoryStorage:geoadd
----
-
-# geoadd
-
-Adds geospatial points to the specified key.
-
-[[_Redis documentation_]](https://redis.io/commands/geoadd)
-
----
-
-## geoadd(key, points, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ---------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `key` | string | Destination key identifier |
-| `points` | array of objects | List of geospatial points to add. Each point is described by a JSON object containing the following properties:
`lon` (longitude, `float`), `lat` (latitude, `float`), `name` (point identifier, `string`) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of points added to the key.
-
-## Usage
-
-<<< ./snippets/geoadd-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/geoadd/snippets/geoadd-1.java b/doc/2/core-classes/memory-storage/geoadd/snippets/geoadd-1.java
deleted file mode 100644
index 1518772c..00000000
--- a/doc/2/core-classes/memory-storage/geoadd/snippets/geoadd-1.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-JSONObject[] points = new JSONObject[]{
- new JSONObject()
- .put("lon", 13.361389)
- .put("lat", 38.115556)
- .put("name", "Palermo"),
- new JSONObject()
- .put("lon", 15.087269)
- .put("lat", 37.502669)
- .put("name", "Catania")
-};
-
-kuzzle.memoryStorage.geoadd("key", points, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/geodist/index.md b/doc/2/core-classes/memory-storage/geodist/index.md
deleted file mode 100644
index 4929ef11..00000000
--- a/doc/2/core-classes/memory-storage/geodist/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: geodist
-description: MemoryStorage:geodist
----
-
-# geodist
-
-Returns the distance between two geospatial members of a key (see [geoadd](/sdk/java/2/core-classes/memory-storage/geoadd)).
-The returned distance is expressed in meters by default.
-
-[[_Redis documentation_]](https://redis.io/commands/geodist)
-
----
-
-## geodist(key, member1, member2, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------- |
-| `key` | string | Key identifier |
-| `member1` | string | Name of the first geospatial point |
-| `member2` | string | Name of the second geospatial point |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `unit` | string | Distance unit.
Allowed values: `m`, `km`, `mi`, `ft` | `m` |
-
----
-
-## Callback Response
-
-Returns the calculated distance between the two provided geospatial points.
-
-## Usage
-
-<<< ./snippets/geodist-1.java
-
-> Callback response:
-
-```json
-166274.1516
-```
diff --git a/doc/2/core-classes/memory-storage/geodist/snippets/geodist-1.java b/doc/2/core-classes/memory-storage/geodist/snippets/geodist-1.java
deleted file mode 100644
index b92bbc96..00000000
--- a/doc/2/core-classes/memory-storage/geodist/snippets/geodist-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.geodist("key", "Palermo", "Catania", new ResponseListener() {
- @Override
- public void onSuccess(double distance) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/geohash/index.md b/doc/2/core-classes/memory-storage/geohash/index.md
deleted file mode 100644
index 71725fc0..00000000
--- a/doc/2/core-classes/memory-storage/geohash/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: geohash
-description: MemoryStorage:geohash
----
-
-# geohash
-
-Returns a valid [geohash](https://en.wikipedia.org/wiki/Geohash) for the provided key's members (see [geoadd](/sdk/java/2/core-classes/memory-storage/geoadd)).
-
-[[_Redis documentation_]](https://redis.io/commands/geohash)
-
----
-
-## geohash(key, members, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------------- |
-| `key` | string | Key identifier |
-| `members` | array | List of geospatial points contained in the key |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of geohashes, in the same order than the provided members list.
-
-## Usage
-
-<<< ./snippets/geohash-1.java
-
-> Callback response:
-
-```json
-["sqc8b49rny0", "sqdtr74hyu0"]
-```
diff --git a/doc/2/core-classes/memory-storage/geohash/snippets/geohash-1.java b/doc/2/core-classes/memory-storage/geohash/snippets/geohash-1.java
deleted file mode 100644
index 2e61ffce..00000000
--- a/doc/2/core-classes/memory-storage/geohash/snippets/geohash-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] members = {"Palermo", "Catania"};
-
-kuzzle.memoryStorage.geohash("key", members, new ResponseListener() {
- @Override
- public void onSuccess(String[] hashes) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/geopos/index.md b/doc/2/core-classes/memory-storage/geopos/index.md
deleted file mode 100644
index 95ccffc9..00000000
--- a/doc/2/core-classes/memory-storage/geopos/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: geopos
-description: MemoryStorage:geopos
----
-
-# geopos
-
-Returns the positions (longitude, latitude) of the provided key's members (see [geoadd](/sdk/java/2/core-classes/memory-storage/geoadd)).
-
-[[_Redis documentation_]](https://redis.io/commands/geopos)
-
----
-
-## geopos(key, members, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------------- |
-| `key` | string | Key identifier |
-| `members` | array | List of geospatial points contained in the key |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of longitude-latitude pairs, in the same order as the provided members list.
-
-## Usage
-
-<<< ./snippets/geopos-1.java
-
-> Callback response:
-
-```json
-[[13.361389, 38.115556], [15.087269, 37.502669]]
-```
diff --git a/doc/2/core-classes/memory-storage/geopos/snippets/geopos-1.java b/doc/2/core-classes/memory-storage/geopos/snippets/geopos-1.java
deleted file mode 100644
index 7006869c..00000000
--- a/doc/2/core-classes/memory-storage/geopos/snippets/geopos-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] members = {"Palermo", "Catania"};
-
-kuzzle.memoryStorage.geopos("key", members, new ResponseListener() {
- @Override
- public void onSuccess(Double[][] positions) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/georadius/index.md b/doc/2/core-classes/memory-storage/georadius/index.md
deleted file mode 100644
index 7769625f..00000000
--- a/doc/2/core-classes/memory-storage/georadius/index.md
+++ /dev/null
@@ -1,72 +0,0 @@
----
-code: true
-type: page
-title: georadius
-description: MemoryStorage:georadius
----
-
-# georadius
-
-> Callback response, with no option provided:
-
-```json
-[{ "name": "Palermo" }, { "name": "Catania" }]
-```
-
-> Callback response, with the "withcoord" option:
-
-```json
-[
- { "name": "Palermo", "coordinates": [13.361389338970184, 38.1155563954963] },
- { "name": "Catania", "coordinates": [15.087267458438873, 37.50266842333162] }
-]
-```
-
-> Callback response, with the "withdist" option:
-
-```json
-[
- { "name": "Palermo", "distance": 190.4424 },
- { "name": "Catania", "distance": 56.4413 }
-]
-```
-
-Returns the members (added with [geoadd](/sdk/java/2/core-classes/memory-storage/geoadd)) of a given key inside the provided geospatial radius.
-
-[[_Redis documentation_]](https://redis.io/commands/georadius)
-
----
-
-## georadius(key, longitude, latitude, distance, unit, [options], callback)
-
-| Arguments | Type | Description |
-| ----------- | ----------- | ------------------------------------- |
-| `key` | string | Key identifier |
-| `longitude` | double | Longitude of the center of the radius |
-| `latitude` | double | Latitude of the center of the radius |
-| `distance` | double | Maximum distance from the center |
-| `unit` | string | Distance unit |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `count` | int | Limit the result set to `count` members | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `sort` | string | Return items from the nearest to the farthest to the center (`ASC`) or vice versa (`DESC`) | `null` |
-| `withcoord` | boolean | Also return the longitude and latitude coordinates of the matching items | `false` |
-| `withdist` | boolean | Also return the distance of the returned items from the specified center, in the same unit than the one provided with `unit` | `false` |
-
----
-
-## Callback Response
-
-Returns an array of names for points that are inside the provided radius.
-
-## Usage
-
-<<< ./snippets/georadius-1.java
diff --git a/doc/2/core-classes/memory-storage/georadius/snippets/georadius-1.java b/doc/2/core-classes/memory-storage/georadius/snippets/georadius-1.java
deleted file mode 100644
index c5a3b092..00000000
--- a/doc/2/core-classes/memory-storage/georadius/snippets/georadius-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.georadius("key", 15, 37, 200, "km", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] points) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/georadiusbymember/index.md b/doc/2/core-classes/memory-storage/georadiusbymember/index.md
deleted file mode 100644
index 98a4cc1b..00000000
--- a/doc/2/core-classes/memory-storage/georadiusbymember/index.md
+++ /dev/null
@@ -1,70 +0,0 @@
----
-code: true
-type: page
-title: georadiusbymember
-description: MemoryStorage:georadiusbymember
----
-
-# georadiusbymember
-
-> Callback response, with the "withcoord" option:
-
-```json
-[
- { "name": "Palermo", "coordinates": [13.361389338970184, 38.1155563954963] },
- { "name": "Catania", "coordinates": [15.087267458438873, 37.50266842333162] }
-]
-```
-
-> Callback response, with the "withdist" option:
-
-```json
-[
- { "name": "Palermo", "distance": 190.4424 },
- { "name": "Catania", "distance": 56.4413 }
-]
-```
-
-Returns the members (added with [geoadd](/sdk/java/2/core-classes/memory-storage/geoadd)) of a given key inside the provided geospatial radius, centered around one of a key's member.
-[[_Redis documentation_]](https://redis.io/commands/georadiusbymember)
-
----
-
-## georadiusbymember(key, member, distance, unit, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------------------- |
-| `key` | string | Key identifier |
-| `member` | string | Name of the point to use as the center of the radius |
-| `distance` | double | Maximum distance from the center |
-| `unit` | string | Distance unit |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `count` | int | Limit the result set to `count` members | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `sort` | string | Return items from the nearest to the farthest to the center (`ASC`) or vice versa (`DESC`) | `null` |
-| `withcoord` | boolean | Also return the longitude and latitude coordinates of the matching items | `false` |
-| `withdist` | boolean | Also return the distance of the returned items from the specified center, in the same unit than the one provided with `unit` | `false` |
-
----
-
-## Callback Response
-
-Returns an array of names for points that are inside the provided radius.
-
-## Usage
-
-<<< ./snippets/georadiusbymember-1.java
-
-> Callback response:
-
-```json
-[{ "name": "Palermo" }, { "name": "Catania" }]
-```
diff --git a/doc/2/core-classes/memory-storage/georadiusbymember/snippets/georadiusbymember-1.java b/doc/2/core-classes/memory-storage/georadiusbymember/snippets/georadiusbymember-1.java
deleted file mode 100644
index 92800702..00000000
--- a/doc/2/core-classes/memory-storage/georadiusbymember/snippets/georadiusbymember-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.georadiusbymember("key", "Palermo", 200, "km", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] points) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/get/index.md b/doc/2/core-classes/memory-storage/get/index.md
deleted file mode 100644
index 83e3c259..00000000
--- a/doc/2/core-classes/memory-storage/get/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: get
-description: MemoryStorage:get
----
-
-# get
-
-Returns the value of a key, or null if the key doesn’t exist.
-
-[[_Redis documentation_]](https://redis.io/commands/get)
-
----
-
-## get(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the key's value.
-
-## Usage
-
-<<< ./snippets/get-1.java
-
-> Callback response:
-
-```json
-"value"
-```
diff --git a/doc/2/core-classes/memory-storage/get/snippets/get-1.java b/doc/2/core-classes/memory-storage/get/snippets/get-1.java
deleted file mode 100644
index 5276938d..00000000
--- a/doc/2/core-classes/memory-storage/get/snippets/get-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.get("key", new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/getbit/index.md b/doc/2/core-classes/memory-storage/getbit/index.md
deleted file mode 100644
index b3b365e5..00000000
--- a/doc/2/core-classes/memory-storage/getbit/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: getbit
-description: MemoryStorage:getbit
----
-
-# getbit
-
-Returns the bit value at `offset`, in the string value stored in a key.
-
-[[_Redis documentation_]](https://redis.io/commands/getbit)
-
----
-
-## getbit(key, offset, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------- |
-| `key` | string | Key identifier |
-| `offset` | int | Offset position in the key's value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the bit value at the provided offset.
-
-## Usage
-
-<<< ./snippets/getbit-1.java
-
-> Callback response:
-
-```json
-1
-```
diff --git a/doc/2/core-classes/memory-storage/getbit/snippets/getbit-1.java b/doc/2/core-classes/memory-storage/getbit/snippets/getbit-1.java
deleted file mode 100644
index baa80a5f..00000000
--- a/doc/2/core-classes/memory-storage/getbit/snippets/getbit-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.getbit("key", 10, new ResponseListener() {
- @Override
- public void onSuccess(int bit) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/getrange/index.md b/doc/2/core-classes/memory-storage/getrange/index.md
deleted file mode 100644
index 3a5881aa..00000000
--- a/doc/2/core-classes/memory-storage/getrange/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: getrange
-description: MemoryStorage:getrange
----
-
-# getrange
-
-Returns a substring of a key's value (index starts at position `0`).
-
-[[_Redis documentation_]](https://redis.io/commands/getrange)
-
----
-
-## getrange(key, start, end, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `start` | int | Starting index |
-| `end` | int | Ending index |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a substring of the key's value.
-
-## Usage
-
-<<< ./snippets/getrange-1.java
-
-> Callback response:
-
-```json
-"lue"
-```
diff --git a/doc/2/core-classes/memory-storage/getrange/snippets/getrange-1.java b/doc/2/core-classes/memory-storage/getrange/snippets/getrange-1.java
deleted file mode 100644
index 1fff31f6..00000000
--- a/doc/2/core-classes/memory-storage/getrange/snippets/getrange-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.getrange("key", 2, 4, new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/getset/index.md b/doc/2/core-classes/memory-storage/getset/index.md
deleted file mode 100644
index 72b34b5a..00000000
--- a/doc/2/core-classes/memory-storage/getset/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: getset
-description: MemoryStorage:getset
----
-
-# getset
-
-Sets a new value for a key and returns its previous value.
-
-[[_Redis documentation_]](https://redis.io/commands/getset)
-
----
-
-## getset(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Key's new value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the key's previous value.
-
-## Usage
-
-<<< ./snippets/getset-1.java
-
-> Callback response:
-
-```json
-"value"
-```
diff --git a/doc/2/core-classes/memory-storage/getset/snippets/getset-1.java b/doc/2/core-classes/memory-storage/getset/snippets/getset-1.java
deleted file mode 100644
index 8af9bfb0..00000000
--- a/doc/2/core-classes/memory-storage/getset/snippets/getset-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.getset("key", "new value", new ResponseListener() {
- @Override
- public void onSuccess(String oldValue) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hdel/index.md b/doc/2/core-classes/memory-storage/hdel/index.md
deleted file mode 100644
index f94901c7..00000000
--- a/doc/2/core-classes/memory-storage/hdel/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: hdel
-description: MemoryStorage:hdel
----
-
-# hdel
-
-Removes fields from a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hdel)
-
----
-
-## hdel(key, fields, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------- |
-| `key` | string | Key identifier |
-| `fields` | array | List of field names to delete |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the number of removed fields.
-
-## Usage
-
-<<< ./snippets/hdel-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/hdel/snippets/hdel-1.java b/doc/2/core-classes/memory-storage/hdel/snippets/hdel-1.java
deleted file mode 100644
index 8d389fad..00000000
--- a/doc/2/core-classes/memory-storage/hdel/snippets/hdel-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] fields = {"field1", "field2", "..."};
-
-kuzzle.memoryStorage.hdel("key", fields, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hexists/index.md b/doc/2/core-classes/memory-storage/hexists/index.md
deleted file mode 100644
index 19b85b8e..00000000
--- a/doc/2/core-classes/memory-storage/hexists/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: hexists
-description: MemoryStorage:hexists
----
-
-# hexists
-
-Checks if a field exists in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hexists)
-
----
-
-## hexists(key, field, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Field name |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-A boolean value specifying if the field exists or not.
-
-## Usage
-
-<<< ./snippets/hexists-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/hexists/snippets/hexists-1.java b/doc/2/core-classes/memory-storage/hexists/snippets/hexists-1.java
deleted file mode 100644
index d17b3476..00000000
--- a/doc/2/core-classes/memory-storage/hexists/snippets/hexists-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hexists("key", "field1", new ResponseListener() {
- @Override
- public void onSuccess(Boolean exists) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hget/index.md b/doc/2/core-classes/memory-storage/hget/index.md
deleted file mode 100644
index 0b828851..00000000
--- a/doc/2/core-classes/memory-storage/hget/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: hget
-description: MemoryStorage:hget
----
-
-# hget
-
-Returns the field’s value of a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hget)
-
----
-
-## hget(key, field, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Field name |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the requested field's value.
-
-## Usage
-
-<<< ./snippets/hget-1.java
-
-> Callback response:
-
-```json
-"foo"
-```
diff --git a/doc/2/core-classes/memory-storage/hget/snippets/hget-1.java b/doc/2/core-classes/memory-storage/hget/snippets/hget-1.java
deleted file mode 100644
index c10baa00..00000000
--- a/doc/2/core-classes/memory-storage/hget/snippets/hget-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hget("key", "field1", new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hgetall/index.md b/doc/2/core-classes/memory-storage/hgetall/index.md
deleted file mode 100644
index dd1eee7c..00000000
--- a/doc/2/core-classes/memory-storage/hgetall/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: hgetall
-description: MemoryStorage:hgetall
----
-
-# hgetall
-
-Returns all fields and values of a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hgetall)
-
----
-
-## hgetall(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a JSON object containing the fields and values of a hash.
-
-## Usage
-
-<<< ./snippets/hgetall-1.java
-
-> Callback response:
-
-```json
-{
- "field1": "value",
- "field2": "value",
- "...": "..."
-}
-```
diff --git a/doc/2/core-classes/memory-storage/hgetall/snippets/hgetall-1.java b/doc/2/core-classes/memory-storage/hgetall/snippets/hgetall-1.java
deleted file mode 100644
index f027e1cf..00000000
--- a/doc/2/core-classes/memory-storage/hgetall/snippets/hgetall-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hgetall("key", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject hash) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hincrby/index.md b/doc/2/core-classes/memory-storage/hincrby/index.md
deleted file mode 100644
index 62f82202..00000000
--- a/doc/2/core-classes/memory-storage/hincrby/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: hincrby
-description: MemoryStorage:hincrby
----
-
-# hincrby
-
-Increments the number stored in a hash field by the provided integer value.
-
-[[_Redis documentation_]](https://redis.io/commands/hincrby)
-
----
-
-## hincrby(key, field, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Hash field to increment |
-| `value` | int | Increment value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the newly incremented value.
-
-## Usage
-
-<<< ./snippets/hincrby-1.java
-
-> Callback response:
-
-```json
-45
-```
diff --git a/doc/2/core-classes/memory-storage/hincrby/snippets/hincrby-1.java b/doc/2/core-classes/memory-storage/hincrby/snippets/hincrby-1.java
deleted file mode 100644
index 22ca764a..00000000
--- a/doc/2/core-classes/memory-storage/hincrby/snippets/hincrby-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hincrby("key", "field", 42, new ResponseListener() {
- @Override
- public void onSuccess(int value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hincrbyfloat/index.md b/doc/2/core-classes/memory-storage/hincrbyfloat/index.md
deleted file mode 100644
index 1afa2f1b..00000000
--- a/doc/2/core-classes/memory-storage/hincrbyfloat/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: hincrbyfloat
-description: MemoryStorage:hincrbyfloat
----
-
-# hincrbyfloat
-
-Increments the number stored in a hash field by the provided float value.
-
-[[_Redis documentation_]](https://redis.io/commands/hincrbyfloat)
-
----
-
-## hincrbyfloat(key, field, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Hash field to increment |
-| `value` | double | Increment value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the newly incremented value, as a floating point number.
-
-## Usage
-
-<<< ./snippets/hincrbyfloat-1.java
-
-> Callback response:
-
-```json
-48.14159
-```
diff --git a/doc/2/core-classes/memory-storage/hincrbyfloat/snippets/hincrbyfloat-1.java b/doc/2/core-classes/memory-storage/hincrbyfloat/snippets/hincrbyfloat-1.java
deleted file mode 100644
index 4f3a0745..00000000
--- a/doc/2/core-classes/memory-storage/hincrbyfloat/snippets/hincrbyfloat-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hincrbyfloat("key", "field", 3.14159, new ResponseListener() {
- @Override
- public void onSuccess(int value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hkeys/index.md b/doc/2/core-classes/memory-storage/hkeys/index.md
deleted file mode 100644
index ef9210c5..00000000
--- a/doc/2/core-classes/memory-storage/hkeys/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: hkeys
-description: MemoryStorage:hkeys
----
-
-# hkeys
-
-Returns all field names contained in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hkeys)
-
----
-
-## hkeys(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of field names.
-
-## Usage
-
-<<< ./snippets/hkeys-1.java
-
-> Callback response:
-
-```json
-["field1", "field2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/hkeys/snippets/hkeys-1.java b/doc/2/core-classes/memory-storage/hkeys/snippets/hkeys-1.java
deleted file mode 100644
index 75d69ed6..00000000
--- a/doc/2/core-classes/memory-storage/hkeys/snippets/hkeys-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hkeys("key", new ResponseListener() {
- @Override
- public void onSuccess(String[] fields) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hlen/index.md b/doc/2/core-classes/memory-storage/hlen/index.md
deleted file mode 100644
index 06013547..00000000
--- a/doc/2/core-classes/memory-storage/hlen/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: hlen
-description: MemoryStorage:hlen
----
-
-# hlen
-
-Returns the number of fields contained in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hlen)
-
----
-
-## hlen(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of fields in the hash.
-
-## Usage
-
-<<< ./snippets/hlen-1.java
-
-> Callback response:
-
-```json
-13
-```
diff --git a/doc/2/core-classes/memory-storage/hlen/snippets/hlen-1.java b/doc/2/core-classes/memory-storage/hlen/snippets/hlen-1.java
deleted file mode 100644
index e4ce5135..00000000
--- a/doc/2/core-classes/memory-storage/hlen/snippets/hlen-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hlen("key", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hmget/index.md b/doc/2/core-classes/memory-storage/hmget/index.md
deleted file mode 100644
index a624abe0..00000000
--- a/doc/2/core-classes/memory-storage/hmget/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: hmget
-description: MemoryStorage:hmget
----
-
-# hmget
-
-Returns the values of the specified hash’s fields.
-
-[[_Redis documentation_]](https://redis.io/commands/hmget)
-
----
-
-## hmget(key, fields, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------- |
-| `key` | string | Key identifier |
-| `fields` | array | List of fields to examine |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array containing the specified fields values.
-
-## Usage
-
-<<< ./snippets/hmget-1.java
-
-> Callback response:
-
-```json
-["field1's value", "field2's value", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/hmget/snippets/hmget-1.java b/doc/2/core-classes/memory-storage/hmget/snippets/hmget-1.java
deleted file mode 100644
index 54892193..00000000
--- a/doc/2/core-classes/memory-storage/hmget/snippets/hmget-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] fields = {"field1", "field2"};
-
-kuzzle.memoryStorage.hmget("key", fields, new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hmset/index.md b/doc/2/core-classes/memory-storage/hmset/index.md
deleted file mode 100644
index f8d0a8cf..00000000
--- a/doc/2/core-classes/memory-storage/hmset/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: hmset
-description: MemoryStorage:hmset
----
-
-# hmset
-
-Sets multiple fields at once in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hmset)
-
----
-
-## hmset(key, entries, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
-| `key` | string | Key identifier |
-| `entries` | array | List of fields to add, with their value. Each entry is described by a JSON object containing the following properties:
`field` (field name), `value` (field's value) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/hmset-1.java
diff --git a/doc/2/core-classes/memory-storage/hmset/snippets/hmset-1.java b/doc/2/core-classes/memory-storage/hmset/snippets/hmset-1.java
deleted file mode 100644
index d0937992..00000000
--- a/doc/2/core-classes/memory-storage/hmset/snippets/hmset-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-JSONObject[] entries = new JSONObject[]{
- new JSONObject().put("field", "field1").put("value", "foo"),
- new JSONObject().put("field", "field2").put("value", "bar"),
- new JSONObject().put("field", "...").put("value", "...")
-};
-
-kuzzle.memoryStorage.hmset("key", entries, new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hscan/index.md b/doc/2/core-classes/memory-storage/hscan/index.md
deleted file mode 100644
index 57036174..00000000
--- a/doc/2/core-classes/memory-storage/hscan/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: hscan
-description: MemoryStorage:hscan
----
-
-# hscan
-
-Identical to [scan](/sdk/java/2/core-classes/memory-storage/scan), except that `hscan` iterates over the fields contained in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hscan)
-
----
-
-## hscan(key, cursor, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `cursor` | int | Page number (iteration starts with a cursor value of `0`, and ends when the next cursor position is `0`) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------- | ------- |
-| `count` | int | Return the _approximate_ `count` number of items per result page | `10` |
-| `match` | string | Search only for field names matching the provided pattern | `*` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object containing 2 entries:
-
-- the cursor position for the next page of results (a next position of `0` indicates the end of the scan)
-- an array of field names and values
-
-## Usage
-
-<<< ./snippets/hscan-1.java
-
-> Callback response:
-
-```json
-{
- "cursor": 18,
- "values": ["field1", "field1 value", "field2", "field2 value"]
-}
-```
diff --git a/doc/2/core-classes/memory-storage/hscan/snippets/hscan-1.java b/doc/2/core-classes/memory-storage/hscan/snippets/hscan-1.java
deleted file mode 100644
index 9e1ea9a5..00000000
--- a/doc/2/core-classes/memory-storage/hscan/snippets/hscan-1.java
+++ /dev/null
@@ -1,10 +0,0 @@
-
-kuzzle.memoryStorage.hscan("key", 0, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject page) {
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hset/index.md b/doc/2/core-classes/memory-storage/hset/index.md
deleted file mode 100644
index 1e98396f..00000000
--- a/doc/2/core-classes/memory-storage/hset/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: hset
-description: MemoryStorage:hset
----
-
-# hset
-
-Sets a field and its value in a hash. If the key does not exist, a new key holding a hash is created. If the field already exists, its value is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/hset)
-
----
-
-## hset(key, field, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Field name to insert or to update |
-| `value` | string | Associated field value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/hset-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/hset/snippets/hset-1.java b/doc/2/core-classes/memory-storage/hset/snippets/hset-1.java
deleted file mode 100644
index a8370971..00000000
--- a/doc/2/core-classes/memory-storage/hset/snippets/hset-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hset("key", "field", "value", new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hsetnx/index.md b/doc/2/core-classes/memory-storage/hsetnx/index.md
deleted file mode 100644
index 6703e7ed..00000000
--- a/doc/2/core-classes/memory-storage/hsetnx/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: hsetnx
-description: MemoryStorage:hsetnx
----
-
-# hsetnx
-
-Sets a field and its value in a hash, only if the field does not already exist.
-
-[[_Redis documentation_]](https://redis.io/commands/hsetnx)
-
----
-
-## hsetnx(key, field, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Field name to insert or to update |
-| `value` | string | Associated field value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/hsetnx-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/hsetnx/snippets/hsetnx-1.java b/doc/2/core-classes/memory-storage/hsetnx/snippets/hsetnx-1.java
deleted file mode 100644
index 081637ad..00000000
--- a/doc/2/core-classes/memory-storage/hsetnx/snippets/hsetnx-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hsetnx("key", "field", "value", new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hstrlen/index.md b/doc/2/core-classes/memory-storage/hstrlen/index.md
deleted file mode 100644
index 04dee2a2..00000000
--- a/doc/2/core-classes/memory-storage/hstrlen/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: hstrlen
-description: MemoryStorage:hstrlen
----
-
-# hstrlen
-
-Returns the string length of a field’s value in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hstrlen)
-
----
-
-## hstrlen(key, field, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `field` | string | Hash field name |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the string length of a field's value.
-
-## Usage
-
-<<< ./snippets/hstrlen-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/hstrlen/snippets/hstrlen-1.java b/doc/2/core-classes/memory-storage/hstrlen/snippets/hstrlen-1.java
deleted file mode 100644
index 50066706..00000000
--- a/doc/2/core-classes/memory-storage/hstrlen/snippets/hstrlen-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hstrlen("key", "field", new ResponseListener() {
- @Override
- public void onSuccess(int length) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/hvals/index.md b/doc/2/core-classes/memory-storage/hvals/index.md
deleted file mode 100644
index 6367c0f0..00000000
--- a/doc/2/core-classes/memory-storage/hvals/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: hvals
-description: MemoryStorage:hvals
----
-
-# hvals
-
-Returns all values contained in a hash.
-
-[[_Redis documentation_]](https://redis.io/commands/hvals)
-
----
-
-## hvals(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array containing the values of a hash.
-
-## Usage
-
-<<< ./snippets/hvals-1.java
-
-> Callback response:
-
-```json
-["field1's value", "field2's value", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/hvals/snippets/hvals-1.java b/doc/2/core-classes/memory-storage/hvals/snippets/hvals-1.java
deleted file mode 100644
index dd80e126..00000000
--- a/doc/2/core-classes/memory-storage/hvals/snippets/hvals-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.hvals("key", new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/incr/index.md b/doc/2/core-classes/memory-storage/incr/index.md
deleted file mode 100644
index ac70eb95..00000000
--- a/doc/2/core-classes/memory-storage/incr/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: incr
-description: MemoryStorage:incr
----
-
-# incr
-
-Increments the number stored at `key` by 1. If the key does not exist, it is set to 0 before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/incr)
-
----
-
-## incr(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated key value.
-
-## Usage
-
-<<< ./snippets/incr-1.java
-
-> Callback response:
-
-```json
-42
-```
diff --git a/doc/2/core-classes/memory-storage/incr/snippets/incr-1.java b/doc/2/core-classes/memory-storage/incr/snippets/incr-1.java
deleted file mode 100644
index fb046046..00000000
--- a/doc/2/core-classes/memory-storage/incr/snippets/incr-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.incr("key", new ResponseListener() {
- @Override
- public void onSuccess(int value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/incrby/index.md b/doc/2/core-classes/memory-storage/incrby/index.md
deleted file mode 100644
index 53b5dd58..00000000
--- a/doc/2/core-classes/memory-storage/incrby/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: incrby
-description: MemoryStorage:incrby
----
-
-# incrby
-
-Increments the number stored at `key` by the provided integer value. If the key does not exist, it is set to 0 before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/incrby)
-
----
-
-## incrby(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `value` | int | Increment value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated key value.
-
-## Usage
-
-<<< ./snippets/incrby-1.java
-
-> Callback response:
-
-```json
-39
-```
diff --git a/doc/2/core-classes/memory-storage/incrby/snippets/incrby-1.java b/doc/2/core-classes/memory-storage/incrby/snippets/incrby-1.java
deleted file mode 100644
index 172fd4f8..00000000
--- a/doc/2/core-classes/memory-storage/incrby/snippets/incrby-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.incrby("key", -3, new ResponseListener() {
- @Override
- public void onSuccess(int value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/incrbyfloat/index.md b/doc/2/core-classes/memory-storage/incrbyfloat/index.md
deleted file mode 100644
index f6a3812b..00000000
--- a/doc/2/core-classes/memory-storage/incrbyfloat/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: incrbyfloat
-description: MemoryStorage:incrbyfloat
----
-
-# incrbyfloat
-
-Increments the number stored at `key` by the provided float value. If the key does not exist, it is set to 0 before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/incrbyfloat)
-
----
-
-## incrbyfloat(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `value` | double | Increment value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a floating point number that contains the updated key value.
-
-## Usage
-
-<<< ./snippets/incrbyfloat-1.java
-
-> Callback response:
-
-```json
-38.85841
-```
diff --git a/doc/2/core-classes/memory-storage/incrbyfloat/snippets/incrbyfloat-1.java b/doc/2/core-classes/memory-storage/incrbyfloat/snippets/incrbyfloat-1.java
deleted file mode 100644
index cef5c52c..00000000
--- a/doc/2/core-classes/memory-storage/incrbyfloat/snippets/incrbyfloat-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.incrbyfloat("key", -3.14159, new ResponseListener() {
- @Override
- public void onSuccess(double value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/index.md b/doc/2/core-classes/memory-storage/index.md
deleted file mode 100644
index ee4efe41..00000000
--- a/doc/2/core-classes/memory-storage/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: MemoryStorage
-description: MemoryStorage documentation
----
diff --git a/doc/2/core-classes/memory-storage/keys/index.md b/doc/2/core-classes/memory-storage/keys/index.md
deleted file mode 100644
index 5c0ec55c..00000000
--- a/doc/2/core-classes/memory-storage/keys/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: keys
-description: MemoryStorage:keys
----
-
-# keys
-
-Returns all keys matching the provided pattern.
-
-[[_Redis documentation_]](https://redis.io/commands/keys)
-
----
-
-## keys(pattern, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------- |
-| `pattern` | string | Pattern used to filter the returned key names |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of key names matching the provided pattern.
-
-## Usage
-
-<<< ./snippets/keys-1.java
-
-> Callback response:
-
-```json
-["foo", "foobar", "foofighters"]
-```
diff --git a/doc/2/core-classes/memory-storage/keys/snippets/keys-1.java b/doc/2/core-classes/memory-storage/keys/snippets/keys-1.java
deleted file mode 100644
index 2bf4ed77..00000000
--- a/doc/2/core-classes/memory-storage/keys/snippets/keys-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.keys("foo*", new ResponseListener() {
- @Override
- public void onSuccess(String[] keys) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lindex/index.md b/doc/2/core-classes/memory-storage/lindex/index.md
deleted file mode 100644
index f2ca3b46..00000000
--- a/doc/2/core-classes/memory-storage/lindex/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: lindex
-description: MemoryStorage:lindex
----
-
-# lindex
-
-Returns the element at the provided index in a list.
-
-[[_Redis documentation_]](https://redis.io/commands/lindex)
-
----
-
-## lindex(key, index, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------- |
-| `key` | string | Key identifier |
-| `index` | int | Element position in the list |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a string containing the retrieved element's value.
-
-## Usage
-
-<<< ./snippets/lindex-1.java
-
-> Callback response:
-
-```json
-"foo"
-```
diff --git a/doc/2/core-classes/memory-storage/lindex/snippets/lindex-1.java b/doc/2/core-classes/memory-storage/lindex/snippets/lindex-1.java
deleted file mode 100644
index 863e6b17..00000000
--- a/doc/2/core-classes/memory-storage/lindex/snippets/lindex-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.lindex("key", 3, new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/linsert/index.md b/doc/2/core-classes/memory-storage/linsert/index.md
deleted file mode 100644
index 8faaa795..00000000
--- a/doc/2/core-classes/memory-storage/linsert/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: linsert
-description: MemoryStorage:linsert
----
-
-# linsert
-
-Inserts a value in a list, either before or after the reference pivot value.
-
-[[_Redis documentation_]](https://redis.io/commands/linsert)
-
----
-
-## linsert(key, position, pivot, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `position` | string | Indicates if the new value is to be inserted before or after the pivot value.
Allowed values: `before`, `after` |
-| `pivot` | string | Pivot value used as a point of reference in the list |
-| `value` | string | The value to insert |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated number of items in the list.
-
-## Usage
-
-<<< ./snippets/linsert-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/linsert/snippets/linsert-1.java b/doc/2/core-classes/memory-storage/linsert/snippets/linsert-1.java
deleted file mode 100644
index bf3fa46e..00000000
--- a/doc/2/core-classes/memory-storage/linsert/snippets/linsert-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.linsert("key", "after", "foo", "bar", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/llen/index.md b/doc/2/core-classes/memory-storage/llen/index.md
deleted file mode 100644
index 9636d997..00000000
--- a/doc/2/core-classes/memory-storage/llen/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: llen
-description: MemoryStorage:llen
----
-
-# llen
-
-Counts the number of items in a list.
-
-[[_Redis documentation_]](https://redis.io/commands/llen)
-
----
-
-## llen(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of items of a list.
-
-## Usage
-
-<<< ./snippets/llen-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/llen/snippets/llen-1.java b/doc/2/core-classes/memory-storage/llen/snippets/llen-1.java
deleted file mode 100644
index 42acb4ee..00000000
--- a/doc/2/core-classes/memory-storage/llen/snippets/llen-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.llen("key", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lpop/index.md b/doc/2/core-classes/memory-storage/lpop/index.md
deleted file mode 100644
index 8fa4c5b8..00000000
--- a/doc/2/core-classes/memory-storage/lpop/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: lpop
-description: MemoryStorage:lpop
----
-
-# lpop
-
-Removes and returns the first element of a list.
-
-[[_Redis documentation_]](https://redis.io/commands/lpop)
-
----
-
-## lpop(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the value of the removed item.
-
-## Usage
-
-<<< ./snippets/lpop-1.java
-
-> Callback response:
-
-```json
-"foo"
-```
diff --git a/doc/2/core-classes/memory-storage/lpop/snippets/lpop-1.java b/doc/2/core-classes/memory-storage/lpop/snippets/lpop-1.java
deleted file mode 100644
index d3889f55..00000000
--- a/doc/2/core-classes/memory-storage/lpop/snippets/lpop-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.lpop("key", new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lpush/index.md b/doc/2/core-classes/memory-storage/lpush/index.md
deleted file mode 100644
index e736aa46..00000000
--- a/doc/2/core-classes/memory-storage/lpush/index.md
+++ /dev/null
@@ -1,51 +0,0 @@
----
-code: true
-type: page
-title: lpush
-description: MemoryStorage:lpush
----
-
-# lpush
-
-Prepends the specified values to a list. If the key does not exist, it is created holding an empty list before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/lpush)
-
----
-
-## lpush(key, values, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------ |
-| `key` | string | Key identifier |
-| `values` | array | Values to add at the beginning of the list |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated number of items in the list.
-
-## Usage
-
-<<< ./snippets/lpush-1.java
-
-> Callback response:
-
-```json
-6
-```
diff --git a/doc/2/core-classes/memory-storage/lpush/snippets/lpush-1.java b/doc/2/core-classes/memory-storage/lpush/snippets/lpush-1.java
deleted file mode 100644
index 00257b45..00000000
--- a/doc/2/core-classes/memory-storage/lpush/snippets/lpush-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] items = new String[]{"foo", "bar", "baz"};
-
-kuzzle.memoryStorage.lpush("key", items, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lpushx/index.md b/doc/2/core-classes/memory-storage/lpushx/index.md
deleted file mode 100644
index 166f0fc5..00000000
--- a/doc/2/core-classes/memory-storage/lpushx/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: lpushx
-description: MemoryStorage:lpushx
----
-
-# lpushx
-
-Prepends the specified value to a list, only if the key already exists and if it holds a list.
-
-[[_Redis documentation_]](https://redis.io/commands/lpushx)
-
----
-
-## lpushx(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `key` | string | Key identifier |
-| `value` | array | Value to add at the beginning of the list |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated number of items in the list.
-
-## Usage
-
-<<< ./snippets/lpushx-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/lpushx/snippets/lpushx-1.java b/doc/2/core-classes/memory-storage/lpushx/snippets/lpushx-1.java
deleted file mode 100644
index 6e5ef524..00000000
--- a/doc/2/core-classes/memory-storage/lpushx/snippets/lpushx-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.lpushx("key", "foo", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lrange/index.md b/doc/2/core-classes/memory-storage/lrange/index.md
deleted file mode 100644
index ac5ce2e8..00000000
--- a/doc/2/core-classes/memory-storage/lrange/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: lrange
-description: MemoryStorage:lrange
----
-
-# lrange
-
-Returns the list elements between the start and stop positions (inclusive).
-
-[[_Redis documentation_]](https://redis.io/commands/lrange)
-
----
-
-## lrange(key, start, stop, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `start` | int | Start position |
-| `stop` | int | End position |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of retrieved values.
-
-## Usage
-
-<<< ./snippets/lrange-1.java
-
-> Callback response:
-
-```json
-["foo", "bar"]
-```
diff --git a/doc/2/core-classes/memory-storage/lrange/snippets/lrange-1.java b/doc/2/core-classes/memory-storage/lrange/snippets/lrange-1.java
deleted file mode 100644
index 62ce39ce..00000000
--- a/doc/2/core-classes/memory-storage/lrange/snippets/lrange-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.lrange("key", 0, 1, new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lrem/index.md b/doc/2/core-classes/memory-storage/lrem/index.md
deleted file mode 100644
index 384a0010..00000000
--- a/doc/2/core-classes/memory-storage/lrem/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: lrem
-description: MemoryStorage:lrem
----
-
-# lrem
-
-Removes the first `count` occurences of elements equal to `value` from a list.
-
-[[_Redis documentation_]](https://redis.io/commands/lrem)
-
----
-
-## lrem(key, count, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `count` | int | Number of occurences of the value to remove |
-| `value` | string | Value to be removed from the list |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of removed elements.
-
-## Usage
-
-<<< ./snippets/lrem-1.java
-
-> Callback response:
-
-```json
-1
-```
diff --git a/doc/2/core-classes/memory-storage/lrem/snippets/lrem-1.java b/doc/2/core-classes/memory-storage/lrem/snippets/lrem-1.java
deleted file mode 100644
index 126c95af..00000000
--- a/doc/2/core-classes/memory-storage/lrem/snippets/lrem-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.lrem("key", 1, "foo", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/lset/index.md b/doc/2/core-classes/memory-storage/lset/index.md
deleted file mode 100644
index 940a24b4..00000000
--- a/doc/2/core-classes/memory-storage/lset/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: lset
-description: MemoryStorage:lset
----
-
-# lset
-
-Sets the list element at `index` with the provided value.
-
-[[_Redis documentation_]](https://redis.io/commands/lset)
-
----
-
-## lset(key, index, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------ |
-| `key` | string | Key identifier |
-| `index` | int | Position of the list to update |
-| `value` | string | New value at the provided list index |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/lset-1.java
diff --git a/doc/2/core-classes/memory-storage/lset/snippets/lset-1.java b/doc/2/core-classes/memory-storage/lset/snippets/lset-1.java
deleted file mode 100644
index 3c8020d0..00000000
--- a/doc/2/core-classes/memory-storage/lset/snippets/lset-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.lset("key", 2, "bar", new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/ltrim/index.md b/doc/2/core-classes/memory-storage/ltrim/index.md
deleted file mode 100644
index 084161f3..00000000
--- a/doc/2/core-classes/memory-storage/ltrim/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: ltrim
-description: MemoryStorage:ltrim
----
-
-# ltrim
-
-Trims an existing list so that it will contain only the specified range of elements specified.
-
-[[_Redis documentation_]](https://redis.io/commands/ltrim)
-
----
-
-## ltrim(key, start, stop, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `start` | int | Starting position of the range of items to keep (inclusive) |
-| `stop` | int | Ending position of the range of items to keep (inclusive) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/ltrim-1.java
diff --git a/doc/2/core-classes/memory-storage/ltrim/snippets/ltrim-1.java b/doc/2/core-classes/memory-storage/ltrim/snippets/ltrim-1.java
deleted file mode 100644
index cbda48b4..00000000
--- a/doc/2/core-classes/memory-storage/ltrim/snippets/ltrim-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.ltrim("key", 1, 2, new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/mget/index.md b/doc/2/core-classes/memory-storage/mget/index.md
deleted file mode 100644
index b7d97bf7..00000000
--- a/doc/2/core-classes/memory-storage/mget/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: mget
-description: MemoryStorage:mget
----
-
-# mget
-
-Returns the values of the provided keys.
-
-[[_Redis documentation_]](https://redis.io/commands/mget)
-
----
-
-## mget(keys, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------ |
-| `keys` | string | List of keys to retrieve |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of the specified keys' values.
-
-## Usage
-
-<<< ./snippets/mget-1.java
-
-> Callback response:
-
-```json
-["key1's value", "key2's value", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/mget/snippets/mget-1.java b/doc/2/core-classes/memory-storage/mget/snippets/mget-1.java
deleted file mode 100644
index 497aafec..00000000
--- a/doc/2/core-classes/memory-storage/mget/snippets/mget-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.mget(keys, new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/mset/index.md b/doc/2/core-classes/memory-storage/mset/index.md
deleted file mode 100644
index a002cb0c..00000000
--- a/doc/2/core-classes/memory-storage/mset/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: mset
-description: MemoryStorage:mset
----
-
-# mset
-
-Sets the provided keys to their respective values. If a key does not exist, it is created. Otherwise, the key’s value is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/mset)
-
----
-
-## mset(entries, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `entries` | array | List of objects each containing the key identifier to add with its associated value.
Properties: `key` (key identifier), `value` (associated value) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/mset-1.java
diff --git a/doc/2/core-classes/memory-storage/mset/snippets/mset-1.java b/doc/2/core-classes/memory-storage/mset/snippets/mset-1.java
deleted file mode 100644
index c62533d2..00000000
--- a/doc/2/core-classes/memory-storage/mset/snippets/mset-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-JSONObject[] entries = new JSONObject[]{
- new JSONObject().put("key", "key1").put("value", "foo"),
- new JSONObject().put("key", "key2").put("value", "bar"),
- new JSONObject().put("key", "...").put("value", "...")
-};
-
-kuzzle.memoryStorage.mset(entries, new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/msetnx/index.md b/doc/2/core-classes/memory-storage/msetnx/index.md
deleted file mode 100644
index 5bcdda01..00000000
--- a/doc/2/core-classes/memory-storage/msetnx/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: msetnx
-description: MemoryStorage:msetnx
----
-
-# msetnx
-
-Sets the provided keys to their respective values, only if they do not exist. If a key exists, then the whole operation is aborted and no key is set.
-
-[[_Redis documentation_]](https://redis.io/commands/msetnx)
-
----
-
-## msetnx(entries, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `entries` | array | List of objects each containing the key identifier to add with its associated value.
Properties: `key` (key identifier), `value` (associated value) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/msetnx-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/msetnx/snippets/msetnx-1.java b/doc/2/core-classes/memory-storage/msetnx/snippets/msetnx-1.java
deleted file mode 100644
index f86429ac..00000000
--- a/doc/2/core-classes/memory-storage/msetnx/snippets/msetnx-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-JSONObject[] entries = new JSONObject[]{
- new JSONObject().put("key", "key1").put("value", "foo"),
- new JSONObject().put("key", "key2").put("value", "bar"),
- new JSONObject().put("key", "...").put("value", "...")
-};
-
-kuzzle.memoryStorage.msetnx(entries, new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/object/index.md b/doc/2/core-classes/memory-storage/object/index.md
deleted file mode 100644
index 88887b11..00000000
--- a/doc/2/core-classes/memory-storage/object/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: object
-description: MemoryStorage:object
----
-
-# object
-
-Inspects the low-level properties of a key.
-
-[[_Redis documentation_]](https://redis.io/commands/object)
-
----
-
-## object(key, subcommand, [options], callback)
-
-| Arguments | Type | Description |
-| ------------ | ----------- | ------------------------------------------------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `subcommand` | string | Name of the low-level property to inspect.
Allowed values: `refcount`, `encoding`, `idletime` |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the value of the inspected property.
-
-## Usage
-
-<<< ./snippets/object-1.java
-
-> Callback response:
-
-```json
-"raw"
-```
diff --git a/doc/2/core-classes/memory-storage/object/snippets/object-1.java b/doc/2/core-classes/memory-storage/object/snippets/object-1.java
deleted file mode 100644
index ac0bf4eb..00000000
--- a/doc/2/core-classes/memory-storage/object/snippets/object-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.object("key", "encoding", new ResponseListener() {
- @Override
- public void onSuccess(String property) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/persist/index.md b/doc/2/core-classes/memory-storage/persist/index.md
deleted file mode 100644
index f1a808b2..00000000
--- a/doc/2/core-classes/memory-storage/persist/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: persist
-description: MemoryStorage:persist
----
-
-# persist
-
-Removes the expiration delay or timestamp from a key, making it persistent.
-
-[[_Redis documentation_]](https://redis.io/commands/persist)
-
----
-
-## persist(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/persist-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/persist/snippets/persist-1.java b/doc/2/core-classes/memory-storage/persist/snippets/persist-1.java
deleted file mode 100644
index cee6b5b9..00000000
--- a/doc/2/core-classes/memory-storage/persist/snippets/persist-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.persist("key", new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/pexpire/index.md b/doc/2/core-classes/memory-storage/pexpire/index.md
deleted file mode 100644
index 6f9e55af..00000000
--- a/doc/2/core-classes/memory-storage/pexpire/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: pexpire
-description: MemoryStorage:pexpire
----
-
-# pexpire
-
-Sets a timeout (in milliseconds) on a key. After the timeout has expired, the key will automatically be deleted.
-
-[[_Redis documentation_]](https://redis.io/commands/pexpire)
-
----
-
-## pexpire(key, ttl, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------- |
-| `key` | string | Key identifier |
-| `ttl` | int | Time to live of the key, in milliseconds |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/pexpire-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/pexpire/snippets/pexpire-1.java b/doc/2/core-classes/memory-storage/pexpire/snippets/pexpire-1.java
deleted file mode 100644
index b66ebe6d..00000000
--- a/doc/2/core-classes/memory-storage/pexpire/snippets/pexpire-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.pexpire("key", 42000, new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/pexpireat/index.md b/doc/2/core-classes/memory-storage/pexpireat/index.md
deleted file mode 100644
index bcd138b8..00000000
--- a/doc/2/core-classes/memory-storage/pexpireat/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: pexpireat
-description: MemoryStorage:pexpireat
----
-
-# pexpireat
-
-Sets an expiration timestamp on a key. After the timestamp has been reached, the key will automatically be deleted.
-The `timestamp` parameter accepts an [Epoch time](https://en.wikipedia.org/wiki/Unix_time) value, in milliseconds.
-
-[[_Redis documentation_]](https://redis.io/commands/pexpireat)
-
----
-
-## pexpireat(key, timestamp, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `timestamp` | int | Key's expiration timestamp, in milliseconds |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/pexpireat-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/pexpireat/snippets/pexpireat-1.java b/doc/2/core-classes/memory-storage/pexpireat/snippets/pexpireat-1.java
deleted file mode 100644
index 960ede21..00000000
--- a/doc/2/core-classes/memory-storage/pexpireat/snippets/pexpireat-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.pexpireat("key", 1488540242465, new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/pfadd/index.md b/doc/2/core-classes/memory-storage/pfadd/index.md
deleted file mode 100644
index 0e0b48fc..00000000
--- a/doc/2/core-classes/memory-storage/pfadd/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: pfadd
-description: MemoryStorage:pfadd
----
-
-# pfadd
-
-Adds elements to an [HyperLogLog](https://en.wikipedia.org/wiki/HyperLogLog) data structure.
-
-[[_Redis documentation_]](https://redis.io/commands/pfadd)
-
----
-
-## pfadd(key, elements, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------- |
-| `key` | string | Key identifier |
-| `elements` | array | Elements to add to the HyperLogLog structure |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/pfadd-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/pfadd/snippets/pfadd-1.java b/doc/2/core-classes/memory-storage/pfadd/snippets/pfadd-1.java
deleted file mode 100644
index ee922fad..00000000
--- a/doc/2/core-classes/memory-storage/pfadd/snippets/pfadd-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] elements = new String[]{"foo", "bar", "baz"};
-
-kuzzle.memoryStorage.pfadd("key", elements, new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/pfcount/index.md b/doc/2/core-classes/memory-storage/pfcount/index.md
deleted file mode 100644
index 5753bbae..00000000
--- a/doc/2/core-classes/memory-storage/pfcount/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: pfcount
-description: MemoryStorage:pfcount
----
-
-# pfcount
-
-Returns the probabilistic cardinality of a [HyperLogLog](https://en.wikipedia.org/wiki/HyperLogLog) data structure, or of the merged HyperLogLog structures if more than 1 is provided (see [pfadd](/sdk/java/2/core-classes/memory-storage/pfadd)).
-
-[[_Redis documentation_]](https://redis.io/commands/pfcount)
-
----
-
-## pfcount(keys, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------- |
-| `keys` | string | List of HyperLogLog key identifiers |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the aggregated probabilistic cardinality of HyperLogLog structures.
-
-## Usage
-
-<<< ./snippets/pfcount-1.java
-
-> Callback response:
-
-```json
-42
-```
diff --git a/doc/2/core-classes/memory-storage/pfcount/snippets/pfcount-1.java b/doc/2/core-classes/memory-storage/pfcount/snippets/pfcount-1.java
deleted file mode 100644
index bd76126b..00000000
--- a/doc/2/core-classes/memory-storage/pfcount/snippets/pfcount-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.pfcount(keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/pfmerge/index.md b/doc/2/core-classes/memory-storage/pfmerge/index.md
deleted file mode 100644
index ca30bf81..00000000
--- a/doc/2/core-classes/memory-storage/pfmerge/index.md
+++ /dev/null
@@ -1,41 +0,0 @@
----
-code: true
-type: page
-title: pfmerge
-description: MemoryStorage:pfmerge
----
-
-# pfmerge
-
-Merges multiple [HyperLogLog](https://en.wikipedia.org/wiki/HyperLogLog) data structures into an unique HyperLogLog structure stored at `key`, approximating the cardinality of the union of the source structures.
-
-[[_Redis documentation_]](https://redis.io/commands/pfmerge)
-
----
-
-## pfmerge(key, sources, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------ |
-| `key` | string | Destination key identifier |
-| `sources` | string | List of HyperLogLog source key identifiers |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/pfmerge-1.java
diff --git a/doc/2/core-classes/memory-storage/pfmerge/snippets/pfmerge-1.java b/doc/2/core-classes/memory-storage/pfmerge/snippets/pfmerge-1.java
deleted file mode 100644
index 55b1539a..00000000
--- a/doc/2/core-classes/memory-storage/pfmerge/snippets/pfmerge-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.pfmerge('key', keys, new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/ping/index.md b/doc/2/core-classes/memory-storage/ping/index.md
deleted file mode 100644
index 735a0c50..00000000
--- a/doc/2/core-classes/memory-storage/ping/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: ping
-description: MemoryStorage:ping
----
-
-# ping
-
-Pings the memory storage database.
-
-[[_Redis documentation_]](https://redis.io/commands/ping)
-
----
-
-## ping([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a simple "PONG" string.
-
-## Usage
-
-<<< ./snippets/ping-1.java
-
-> Callback response:
-
-```json
-"PONG"
-```
diff --git a/doc/2/core-classes/memory-storage/ping/snippets/ping-1.java b/doc/2/core-classes/memory-storage/ping/snippets/ping-1.java
deleted file mode 100644
index 20ccdfa4..00000000
--- a/doc/2/core-classes/memory-storage/ping/snippets/ping-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.ping(new ResponseListener() {
- @Override
- public void onSuccess(String response) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/psetex/index.md b/doc/2/core-classes/memory-storage/psetex/index.md
deleted file mode 100644
index ce04eb02..00000000
--- a/doc/2/core-classes/memory-storage/psetex/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: psetex
-description: MemoryStorage:psetex
----
-
-# psetex
-
-Sets a key with the provided value, and an expiration delay expressed in milliseconds. If the key does not exist, it is created beforehand.
-
-[[_Redis documentation_]](https://redis.io/commands/psetex)
-
----
-
-## psetex(key, value, ttl, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Value to set |
-| `ttl` | int | Time to live of the key, in milliseconds |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/psetex-1.java
diff --git a/doc/2/core-classes/memory-storage/psetex/snippets/psetex-1.java b/doc/2/core-classes/memory-storage/psetex/snippets/psetex-1.java
deleted file mode 100644
index 34a2098c..00000000
--- a/doc/2/core-classes/memory-storage/psetex/snippets/psetex-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.psetex("key", "value", 42000, new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/pttl/index.md b/doc/2/core-classes/memory-storage/pttl/index.md
deleted file mode 100644
index b7436955..00000000
--- a/doc/2/core-classes/memory-storage/pttl/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: pttl
-description: MemoryStorage:pttl
----
-
-# pttl
-
-Returns the remaining time to live of a key, in milliseconds.
-
-[[_Redis documentation_]](https://redis.io/commands/pttl)
-
----
-
-## pttl(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the remaining time to live of the key, in milliseconds.
-
-## Usage
-
-<<< ./snippets/pttl-1.java
-
-> Callback response:
-
-```json
-43159
-```
diff --git a/doc/2/core-classes/memory-storage/pttl/snippets/pttl-1.java b/doc/2/core-classes/memory-storage/pttl/snippets/pttl-1.java
deleted file mode 100644
index e20fd472..00000000
--- a/doc/2/core-classes/memory-storage/pttl/snippets/pttl-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.pttl("key", new ResponseListener() {
- @Override
- public void onSuccess(int ttl) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/randomkey/index.md b/doc/2/core-classes/memory-storage/randomkey/index.md
deleted file mode 100644
index cf025845..00000000
--- a/doc/2/core-classes/memory-storage/randomkey/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: randomkey
-description: MemoryStorage:randomkey
----
-
-# randomkey
-
-Returns a random key from the memory storage.
-
-[[_Redis documentation_]](https://redis.io/commands/randomkey)
-
----
-
-## randomkey([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns one of the stored key names, at random.
-
-## Usage
-
-<<< ./snippets/randomkey-1.java
-
-> Callback response:
-
-```json
-"key2"
-```
diff --git a/doc/2/core-classes/memory-storage/randomkey/snippets/randomkey-1.java b/doc/2/core-classes/memory-storage/randomkey/snippets/randomkey-1.java
deleted file mode 100644
index 5fbe9692..00000000
--- a/doc/2/core-classes/memory-storage/randomkey/snippets/randomkey-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.randomkey(new ResponseListener() {
- @Override
- public void onSuccess(String key) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/rename/index.md b/doc/2/core-classes/memory-storage/rename/index.md
deleted file mode 100644
index afe8664f..00000000
--- a/doc/2/core-classes/memory-storage/rename/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: rename
-description: MemoryStorage:rename
----
-
-# rename
-
-Renames a key to `newkey`. If `newkey` already exists, it is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/rename)
-
----
-
-## rename(key, newkey, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `newkey` | string | New key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/rename-1.java
diff --git a/doc/2/core-classes/memory-storage/rename/snippets/rename-1.java b/doc/2/core-classes/memory-storage/rename/snippets/rename-1.java
deleted file mode 100644
index dc5e7896..00000000
--- a/doc/2/core-classes/memory-storage/rename/snippets/rename-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.rename("key", "newId", new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/renamenx/index.md b/doc/2/core-classes/memory-storage/renamenx/index.md
deleted file mode 100644
index b6879e84..00000000
--- a/doc/2/core-classes/memory-storage/renamenx/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: renamenx
-description: MemoryStorage:renamenx
----
-
-# renamenx
-
-Renames a key to `newkey`, only if `newkey` does not already exist.
-
-[[_Redis documentation_]](https://redis.io/commands/renamenx)
-
----
-
-## renamenx(key, newkey, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `newkey` | string | New key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/renamenx-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/renamenx/snippets/renamenx-1.java b/doc/2/core-classes/memory-storage/renamenx/snippets/renamenx-1.java
deleted file mode 100644
index 4da35cd2..00000000
--- a/doc/2/core-classes/memory-storage/renamenx/snippets/renamenx-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.renamenx("key", "newId", new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/rpop/index.md b/doc/2/core-classes/memory-storage/rpop/index.md
deleted file mode 100644
index 661678ef..00000000
--- a/doc/2/core-classes/memory-storage/rpop/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: rpop
-description: MemoryStorage:rpop
----
-
-# rpop
-
-Removes and returns the last element of a list.
-
-[[_Redis documentation_]](https://redis.io/commands/rpop)
-
----
-
-## rpop(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the value of the removed item.
-
-## Usage
-
-<<< ./snippets/rpop-1.java
-
-> Callback response:
-
-```json
-"foo"
-```
diff --git a/doc/2/core-classes/memory-storage/rpop/snippets/rpop-1.java b/doc/2/core-classes/memory-storage/rpop/snippets/rpop-1.java
deleted file mode 100644
index c36e5f63..00000000
--- a/doc/2/core-classes/memory-storage/rpop/snippets/rpop-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.rpop("key", new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/rpoplpush/index.md b/doc/2/core-classes/memory-storage/rpoplpush/index.md
deleted file mode 100644
index 5177ec5b..00000000
--- a/doc/2/core-classes/memory-storage/rpoplpush/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: rpoplpush
-description: MemoryStorage:rpoplpush
----
-
-# rpoplpush
-
-Removes the last element of the list at `source` and pushes it back at the start of the list at `destination`.
-
-[[_Redis documentation_]](https://redis.io/commands/rpoplpush)
-
----
-
-## rpoplpush(source, destination, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | -------------------------- |
-| `source` | string | Source key identifier |
-| `destination` | string | Destination key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the value of the removed and pushed item.
-
-## Usage
-
-<<< ./snippets/rpoplpush-1.java
-
-> Callback response:
-
-```json
-"foo"
-```
diff --git a/doc/2/core-classes/memory-storage/rpoplpush/snippets/rpoplpush-1.java b/doc/2/core-classes/memory-storage/rpoplpush/snippets/rpoplpush-1.java
deleted file mode 100644
index f1f49aa7..00000000
--- a/doc/2/core-classes/memory-storage/rpoplpush/snippets/rpoplpush-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.rpoplpush("sourceKey", "destKey", new ResponseListener() {
- @Override
- public void onSuccess(String value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/rpush/index.md b/doc/2/core-classes/memory-storage/rpush/index.md
deleted file mode 100644
index 1cf04d5a..00000000
--- a/doc/2/core-classes/memory-storage/rpush/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: rpush
-description: MemoryStorage:rpush
----
-
-# rpush
-
-Appends the specified values at the end of a list. If the key does not exist, it is created holding an empty list before performing the operation.
-
-[[_Redis documentation_]](https://redis.io/commands/rpush)
-
----
-
-## rpush(key, values, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------ |
-| `key` | string | Key identifier |
-| `values` | array | Values to add at the end of the list |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated number of items in the list.
-
-## Usage
-
-<<< ./snippets/rpush-1.java
-
-> Callback response:
-
-```json
-6
-```
diff --git a/doc/2/core-classes/memory-storage/rpush/snippets/rpush-1.java b/doc/2/core-classes/memory-storage/rpush/snippets/rpush-1.java
deleted file mode 100644
index a5a53aac..00000000
--- a/doc/2/core-classes/memory-storage/rpush/snippets/rpush-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] items = new String[]{"foo", "bar", "baz"};
-
-kuzzle.memoryStorage.rpush("key", items, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/rpushx/index.md b/doc/2/core-classes/memory-storage/rpushx/index.md
deleted file mode 100644
index 34fb353e..00000000
--- a/doc/2/core-classes/memory-storage/rpushx/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: rpushx
-description: MemoryStorage:rpushx
----
-
-# rpushx
-
-Appends the specified value at the end of a list, only if the key already exists and if it holds a list.
-
-[[_Redis documentation_]](https://redis.io/commands/rpushx)
-
----
-
-## rpushx(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Value to add at the end of the list |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the updated number of items in the list.
-
-## Usage
-
-<<< ./snippets/rpushx-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/rpushx/snippets/rpushx-1.java b/doc/2/core-classes/memory-storage/rpushx/snippets/rpushx-1.java
deleted file mode 100644
index 50f20def..00000000
--- a/doc/2/core-classes/memory-storage/rpushx/snippets/rpushx-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.rpushx("key", "foo", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sadd/index.md b/doc/2/core-classes/memory-storage/sadd/index.md
deleted file mode 100644
index 0f6dfadd..00000000
--- a/doc/2/core-classes/memory-storage/sadd/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: sadd
-description: MemoryStorage:sadd
----
-
-# sadd
-
-Adds members to a set of unique values stored at `key`. If the `key` does not exist, it is created beforehand.
-
-[[_Redis documentation_]](https://redis.io/commands/sadd)
-
----
-
-## sadd(key, members, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `members` | array | Members to add to the list of unique values |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of added elements to the set.
-
-## Usage
-
-<<< ./snippets/sadd-1.java
-
-> Callback response:
-
-```json
-6
-```
diff --git a/doc/2/core-classes/memory-storage/sadd/snippets/sadd-1.java b/doc/2/core-classes/memory-storage/sadd/snippets/sadd-1.java
deleted file mode 100644
index fc24e362..00000000
--- a/doc/2/core-classes/memory-storage/sadd/snippets/sadd-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] items = new String[]{"foo", "bar", "baz"};
-
-kuzzle.memoryStorage.sadd("key", items, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/scan/index.md b/doc/2/core-classes/memory-storage/scan/index.md
deleted file mode 100644
index a797cd76..00000000
--- a/doc/2/core-classes/memory-storage/scan/index.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-code: true
-type: page
-title: scan
-description: MemoryStorage:scan
----
-
-# scan
-
-Iterates incrementally over the set of keys in the database using a cursor.
-
-An iteration starts when the cursor is set to `0`.
-To get the next page of results, simply re-send the identical request with the updated cursor position provided in the result set.
-The scan terminates when the next position cursor returned by the server is `0`.
-
-[[_Redis documentation_]](https://redis.io/commands/scan)
-
----
-
-## scan(cursor, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------- |
-| `cursor` | int | Page number (iteration starts with a cursor value of `0`, and ends when the next cursor position is `0`) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------- | ------- |
-| `count` | int | Return the _approximate_ `count` number of items per result page | `10` |
-| `match` | string | Search only for field names matching the provided pattern | `*` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a JSON object containing 2 entries:
-
-- the cursor position for the next page of results (a next position of `0` indicates the end of the scan)
-- a list of fetched keys
-
-## Usage
-
-<<< ./snippets/scan-1.java
-
-> Callback response:
-
-```json
-{
- "cursor": 18,
- "values": ["key1", "key2", "..."]
-}
-```
diff --git a/doc/2/core-classes/memory-storage/scan/snippets/scan-1.java b/doc/2/core-classes/memory-storage/scan/snippets/scan-1.java
deleted file mode 100644
index d9665783..00000000
--- a/doc/2/core-classes/memory-storage/scan/snippets/scan-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.scan(0, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject page) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/scard/index.md b/doc/2/core-classes/memory-storage/scard/index.md
deleted file mode 100644
index c41f7f70..00000000
--- a/doc/2/core-classes/memory-storage/scard/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: scard
-description: MemoryStorage:scard
----
-
-# scard
-
-Returns the number of members stored in a set of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/scard)
-
----
-
-## scard(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of items in the set.
-
-## Usage
-
-<<< ./snippets/scard-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/scard/snippets/scard-1.java b/doc/2/core-classes/memory-storage/scard/snippets/scard-1.java
deleted file mode 100644
index 4b4e0e48..00000000
--- a/doc/2/core-classes/memory-storage/scard/snippets/scard-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.scard("key", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sdiff/index.md b/doc/2/core-classes/memory-storage/sdiff/index.md
deleted file mode 100644
index b145e8a8..00000000
--- a/doc/2/core-classes/memory-storage/sdiff/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: sdiff
-description: MemoryStorage:sdiff
----
-
-# sdiff
-
-Returns the difference between the set of unique values stored at `key` and the other provided sets.
-
-[[_Redis documentation_]](https://redis.io/commands/sdiff)
-
----
-
-## sdiff(key, keys, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------- |
-| `key` | string | Key identifier to compare |
-| `keys` | array | list of set keys to compare with the set stored at `key` |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of differences.
-
-## Usage
-
-<<< ./snippets/sdiff-1.java
-
-> Callback response:
-
-```json
-["diff value1", "diff value2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/sdiff/snippets/sdiff-1.java b/doc/2/core-classes/memory-storage/sdiff/snippets/sdiff-1.java
deleted file mode 100644
index c6ee97c9..00000000
--- a/doc/2/core-classes/memory-storage/sdiff/snippets/sdiff-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.sdiff("key", keys, new ResponseListener() {
- @Override
- public void onSuccess(String[] diffs) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sdiffstore/index.md b/doc/2/core-classes/memory-storage/sdiffstore/index.md
deleted file mode 100644
index c5a399d5..00000000
--- a/doc/2/core-classes/memory-storage/sdiffstore/index.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-code: true
-type: page
-title: sdiffstore
-description: MemoryStorage:sdiffstore
----
-
-# sdiffstore
-
-Computes the difference between the set of unique values stored at `key` and the other provided sets, and stores the result in the key stored at `destination`.
-
-If the `destination` key already exists, it is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/sdiffstore)
-
----
-
-## sdiffstore(key, keys, destination, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | -------------------------------------------------------- |
-| `key` | string | Key identifier to compare |
-| `keys` | array | list of set keys to compare with the set stored at `key` |
-| `destination` | string | Destination key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of stored elements.
-
-## Usage
-
-<<< ./snippets/sdiffstore-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/sdiffstore/snippets/sdiffstore-1.java b/doc/2/core-classes/memory-storage/sdiffstore/snippets/sdiffstore-1.java
deleted file mode 100644
index f18b297b..00000000
--- a/doc/2/core-classes/memory-storage/sdiffstore/snippets/sdiffstore-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.sdiffstore("key", keys, "destination", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/set/index.md b/doc/2/core-classes/memory-storage/set/index.md
deleted file mode 100644
index 1e6b5d59..00000000
--- a/doc/2/core-classes/memory-storage/set/index.md
+++ /dev/null
@@ -1,51 +0,0 @@
----
-code: true
-type: page
-title: set
-description: MemoryStorage:set
----
-
-# set
-
-Creates a key holding the provided value, or overwrites it if it already exists.
-
-[[_Redis documentation_]](https://redis.io/commands/set)
-
----
-
-## set(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Value to store |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------------------- | ------- |
-| `ex` | int | Time to live of the key, in seconds | `0` |
-| `nx` | boolean | Set the key only if it does not already exist | `false` |
-| `px` | int | Time to live of the key, in milliseconds | `0` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `xx` | boolean | Set the key only if it already exists | `false` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/set-1.java
diff --git a/doc/2/core-classes/memory-storage/set/snippets/set-1.java b/doc/2/core-classes/memory-storage/set/snippets/set-1.java
deleted file mode 100644
index 7635c8ea..00000000
--- a/doc/2/core-classes/memory-storage/set/snippets/set-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.set("key", "value", new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/setex/index.md b/doc/2/core-classes/memory-storage/setex/index.md
deleted file mode 100644
index 219a6534..00000000
--- a/doc/2/core-classes/memory-storage/setex/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: setex
-description: MemoryStorage:setex
----
-
-# setex
-
-Sets a key with the provided value, and an expiration delay expressed in seconds. If the key does not exist, it is created beforehand.
-
-[[_Redis documentation_]](https://redis.io/commands/setex)
-
----
-
-## setex(key, value, ttl, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Value to set |
-| `ttl` | int | Time to live of the key, in seconds |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns null if successful.
-
-## Usage
-
-<<< ./snippets/setex-1.java
diff --git a/doc/2/core-classes/memory-storage/setex/snippets/setex-1.java b/doc/2/core-classes/memory-storage/setex/snippets/setex-1.java
deleted file mode 100644
index 33415acf..00000000
--- a/doc/2/core-classes/memory-storage/setex/snippets/setex-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.setex("key", "value", 42, new ResponseListener() {
- @Override
- public void onSuccess(Void v) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/setnx/index.md b/doc/2/core-classes/memory-storage/setnx/index.md
deleted file mode 100644
index cdfbaaad..00000000
--- a/doc/2/core-classes/memory-storage/setnx/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: setnx
-description: MemoryStorage:setnx
----
-
-# setnx
-
-Sets a value on a key, only if it does not already exist.
-
-[[_Redis documentation_]](https://redis.io/commands/setnx)
-
----
-
-## setnx(key, value, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `value` | string | Value to store |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/setnx-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/setnx/snippets/setnx-1.java b/doc/2/core-classes/memory-storage/setnx/snippets/setnx-1.java
deleted file mode 100644
index 9de04ac1..00000000
--- a/doc/2/core-classes/memory-storage/setnx/snippets/setnx-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.setnx("key", "value", new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sinter/index.md b/doc/2/core-classes/memory-storage/sinter/index.md
deleted file mode 100644
index 121ebbff..00000000
--- a/doc/2/core-classes/memory-storage/sinter/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: sinter
-description: MemoryStorage:sinter
----
-
-# sinter
-
-Returns the intersection of the provided sets of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/sinter)
-
----
-
-## sinter(keys, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------ |
-| `keys` | string | List of sets of unique values to intersect |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of values in the computed intersection.
-
-## Usage
-
-<<< ./snippets/sinter-1.java
-
-> Callback response:
-
-```json
-["intersection value1", "intersection value2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/sinter/snippets/sinter-1.java b/doc/2/core-classes/memory-storage/sinter/snippets/sinter-1.java
deleted file mode 100644
index bc7fa696..00000000
--- a/doc/2/core-classes/memory-storage/sinter/snippets/sinter-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.sinter(keys, new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sinterstore/index.md b/doc/2/core-classes/memory-storage/sinterstore/index.md
deleted file mode 100644
index 36086043..00000000
--- a/doc/2/core-classes/memory-storage/sinterstore/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: sinterstore
-description: MemoryStorage:sinterstore
----
-
-# sinterstore
-
-Computes the intersection of the provided sets of unique values and stores the result in the `destination` key.
-
-If the destination key already exists, it is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/sinterstore)
-
----
-
-## sinterstore(destination, keys, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `destination` | string | Destination key identifier |
-| `keys` | array | List of sets of unique values to intersect |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of elements in the stored intersection.
-
-## Usage
-
-<<< ./snippets/sinterstore-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/sinterstore/snippets/sinterstore-1.java b/doc/2/core-classes/memory-storage/sinterstore/snippets/sinterstore-1.java
deleted file mode 100644
index 4c1b9b7e..00000000
--- a/doc/2/core-classes/memory-storage/sinterstore/snippets/sinterstore-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.sinterstore("destination", keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sismember/index.md b/doc/2/core-classes/memory-storage/sismember/index.md
deleted file mode 100644
index 424f6513..00000000
--- a/doc/2/core-classes/memory-storage/sismember/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: sismember
-description: MemoryStorage:sismember
----
-
-# sismember
-
-Checks if `member` is a member of the set of unique values stored at `key`.
-
-[[_Redis documentation_]](https://redis.io/commands/sismember)
-
----
-
-## sismember(key, member, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------- |
-| `key` | string | Key identifier |
-| `member` | string | Value tested against the set of unique values |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a boolean specifying if `member` is a member of the set or not.
-
-## Usage
-
-<<< ./snippets/sismember-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/sismember/snippets/sismember-1.java b/doc/2/core-classes/memory-storage/sismember/snippets/sismember-1.java
deleted file mode 100644
index 97297bc8..00000000
--- a/doc/2/core-classes/memory-storage/sismember/snippets/sismember-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.sismember("key", "member", new ResponseListener() {
- @Override
- public void onSuccess(Boolean isMember) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/smembers/index.md b/doc/2/core-classes/memory-storage/smembers/index.md
deleted file mode 100644
index fce322ea..00000000
--- a/doc/2/core-classes/memory-storage/smembers/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: smembers
-description: MemoryStorage:smembers
----
-
-# smembers
-
-Returns the members of a set of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/smembers)
-
----
-
-## smembers(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of values held by the provided set.
-
-## Usage
-
-<<< ./snippets/smembers-1.java
-
-> Callback response:
-
-```json
-["member1", "member2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/smembers/snippets/smembers-1.java b/doc/2/core-classes/memory-storage/smembers/snippets/smembers-1.java
deleted file mode 100644
index 4a15f88f..00000000
--- a/doc/2/core-classes/memory-storage/smembers/snippets/smembers-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.smembers("key", new ResponseListener() {
- @Override
- public void onSuccess(String[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/smove/index.md b/doc/2/core-classes/memory-storage/smove/index.md
deleted file mode 100644
index dad1c1f6..00000000
--- a/doc/2/core-classes/memory-storage/smove/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: smove
-description: MemoryStorage:smove
----
-
-# smove
-
-Moves a member from a set of unique values to another.
-
-[[_Redis documentation_]](https://redis.io/commands/smove)
-
----
-
-## smove(key, destination, member, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | -------------------------- |
-| `key` | string | Source key identifier |
-| `destination` | string | Destination key identifier |
-| `member` | string | Member to be moved |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a boolean specifying if the operation was successful or not.
-
-## Usage
-
-<<< ./snippets/smove-1.java
-
-> Callback response:
-
-```json
-true
-```
diff --git a/doc/2/core-classes/memory-storage/smove/snippets/smove-1.java b/doc/2/core-classes/memory-storage/smove/snippets/smove-1.java
deleted file mode 100644
index b6843e40..00000000
--- a/doc/2/core-classes/memory-storage/smove/snippets/smove-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.smove("key", "destination", "member", new ResponseListener() {
- @Override
- public void onSuccess(Boolean status) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sort/index.md b/doc/2/core-classes/memory-storage/sort/index.md
deleted file mode 100644
index 9b85788c..00000000
--- a/doc/2/core-classes/memory-storage/sort/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: sort
-description: MemoryStorage:sort
----
-
-# sort
-
-Sorts and returns elements contained in a list, a set of unique values or a sorted set.
-By default, sorting is numeric and elements are compared by their value interpreted as double precision floating point number.
-
-:::info
-While Kuzzle's API supports the "store" option for this command, Kuzzle SDK methods do not. To sort and store in the same process, use the [query method](/sdk/java/2/core-classes/kuzzle/query)
-:::
-
-[[_Redis documentation_]](https://redis.io/commands/sort)
-
-### sort(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `alpha` | boolean | Perform an alphanumerical sort instead of a numeric one | `false` |
-| `by` | string | Instead of sorting the values stored at `key`, use them to complete the provided key pattern, and return the sorted list of values stored in those keys. | `null` |
-| `direction` | string | Sort in ascendant (`ASC`) or descendant (`DESC`) order | `ASC` |
-| `get` | array | Sort the values stored at `key` but, instead of returning these directly, return the values contained in external keys, using the provided array of patterns completed by the sorted values | `null` |
-| `limit` | array | Limit the result set to a range of matching elements (similar to _SELECT LIMIT offset, count_ in SQL).
Format: `[, ]` | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
-### Callback Response
-
-Returns an array of sorted values.
-
-## Usage
-
-<<< ./snippets/sort-1.java
-
-> Callback response:
-
-```json
-["sorted element1", "sorted element2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/sort/snippets/sort-1.java b/doc/2/core-classes/memory-storage/sort/snippets/sort-1.java
deleted file mode 100644
index aa250a94..00000000
--- a/doc/2/core-classes/memory-storage/sort/snippets/sort-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.sort("key", new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/spop/index.md b/doc/2/core-classes/memory-storage/spop/index.md
deleted file mode 100644
index 81a204ac..00000000
--- a/doc/2/core-classes/memory-storage/spop/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: spop
-description: MemoryStorage:spop
----
-
-# spop
-
-Removes and returns one or more elements at random from a set of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/spop)
-
----
-
-## spop(key, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `count` | int | Number of elements to remove | `1` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of removed elements.
-
-## Usage
-
-<<< ./snippets/spop-1.java
-
-> Callback response:
-
-```json
-["removed element"]
-```
diff --git a/doc/2/core-classes/memory-storage/spop/snippets/spop-1.java b/doc/2/core-classes/memory-storage/spop/snippets/spop-1.java
deleted file mode 100644
index db7a18b7..00000000
--- a/doc/2/core-classes/memory-storage/spop/snippets/spop-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.spop("key", new ResponseListener() {
- @Override
- public void onSuccess(String[] elements) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/srandmember/index.md b/doc/2/core-classes/memory-storage/srandmember/index.md
deleted file mode 100644
index 1ead4ac9..00000000
--- a/doc/2/core-classes/memory-storage/srandmember/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: srandmember
-description: MemoryStorage:srandmember
----
-
-# srandmember
-
-Returns one or more members of a set of unique values, at random.
-If `count` is provided and is positive, the returned values are unique. If `count` is negative, a set member can be returned multiple times.
-
-[[_Redis documentation_]](https://redis.io/commands/srandmember)
-
----
-
-## srandmember(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `count` | int | Number of members to return. If set with a positive value, the returned values are unique. If `count` is negative, a set member can be returned multiple times | `1` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of members of a set of unique values.
-
-## Usage
-
-<<< ./snippets/srandmember-1.java
-
-> Callback response:
-
-```json
-["member1", "member2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/srandmember/snippets/srandmember-1.java b/doc/2/core-classes/memory-storage/srandmember/snippets/srandmember-1.java
deleted file mode 100644
index fa4ffc3d..00000000
--- a/doc/2/core-classes/memory-storage/srandmember/snippets/srandmember-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.srandmember("key", new ResponseListener() {
- @Override
- public void onSuccess(String[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/srem/index.md b/doc/2/core-classes/memory-storage/srem/index.md
deleted file mode 100644
index bdeb17a3..00000000
--- a/doc/2/core-classes/memory-storage/srem/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: srem
-description: MemoryStorage:srem
----
-
-# srem
-
-Removes members from a set of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/srem)
-
----
-
-## srem(key, members, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------- |
-| `key` | string | Key identifier |
-| `members` | array | List of members to remove from the set |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of removed elements.
-
-## Usage
-
-<<< ./snippets/srem-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/srem/snippets/srem-1.java b/doc/2/core-classes/memory-storage/srem/snippets/srem-1.java
deleted file mode 100644
index f6b312b7..00000000
--- a/doc/2/core-classes/memory-storage/srem/snippets/srem-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] members = new String[]{"member1", "member2", "..."};
-
-kuzzle.memoryStorage.srem("key", members, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sscan/index.md b/doc/2/core-classes/memory-storage/sscan/index.md
deleted file mode 100644
index dc51561a..00000000
--- a/doc/2/core-classes/memory-storage/sscan/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: sscan
-description: MemoryStorage:sscan
----
-
-# sscan
-
-Identical to [scan](/sdk/java/2/core-classes/memory-storage/scan), except that `sscan` iterates the members held by a set of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/sscan)
-
----
-
-## sscan(key, cursor, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `cursor` | int | Page number (iteration starts with a cursor value of `0`, and ends when the next cursor position is `0`) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------- | ------- |
-| `count` | int | Return the _approximate_ `count` number of items per result page | `10` |
-| `match` | string | Search only for member values matching the provided pattern | `*` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a JSON array containing 2 entries:
-
-- the cursor position for the next page of results (a next position of `0` indicates the end of the scan)
-- an array of members
-
-## Usage
-
-<<< ./snippets/sscan-1.java
-
-> Callback response:
-
-```json
-{
- "cursor": 18,
- "values": ["member1", "member2", "..."]
-}
-```
diff --git a/doc/2/core-classes/memory-storage/sscan/snippets/sscan-1.java b/doc/2/core-classes/memory-storage/sscan/snippets/sscan-1.java
deleted file mode 100644
index 37160c59..00000000
--- a/doc/2/core-classes/memory-storage/sscan/snippets/sscan-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.sscan("key", 0, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject page) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/strlen/index.md b/doc/2/core-classes/memory-storage/strlen/index.md
deleted file mode 100644
index ebdf7ca1..00000000
--- a/doc/2/core-classes/memory-storage/strlen/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: strlen
-description: MemoryStorage:strlen
----
-
-# strlen
-
-Returns the length of a value stored at `key`.
-
-[[_Redis documentation_]](https://redis.io/commands/strlen)
-
----
-
-## strlen(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the length of a value.
-
-## Usage
-
-<<< ./snippets/strlen-1.java
-
-> Callback response:
-
-```json
-13
-```
diff --git a/doc/2/core-classes/memory-storage/strlen/snippets/strlen-1.java b/doc/2/core-classes/memory-storage/strlen/snippets/strlen-1.java
deleted file mode 100644
index 89461479..00000000
--- a/doc/2/core-classes/memory-storage/strlen/snippets/strlen-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.strlen("key", new ResponseListener() {
- @Override
- public void onSuccess(int length) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sunion/index.md b/doc/2/core-classes/memory-storage/sunion/index.md
deleted file mode 100644
index 198e1964..00000000
--- a/doc/2/core-classes/memory-storage/sunion/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: sunion
-description: MemoryStorage:sunion
----
-
-# sunion
-
-Returns the union of the provided sets of unique values.
-
-[[_Redis documentation_]](https://redis.io/commands/sunion)
-
----
-
-## sunion(keys, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------- |
-| `keys` | string | List of sets of unique values |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of values in the computed union.
-
-## Usage
-
-<<< ./snippets/sunion-1.java
-
-> Callback response:
-
-```json
-["union value1", "union value2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/sunion/snippets/sunion-1.java b/doc/2/core-classes/memory-storage/sunion/snippets/sunion-1.java
deleted file mode 100644
index c3a11422..00000000
--- a/doc/2/core-classes/memory-storage/sunion/snippets/sunion-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.sunion(keys, new ResponseListener() {
- @Override
- public void onSuccess(String[] values) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/sunionstore/index.md b/doc/2/core-classes/memory-storage/sunionstore/index.md
deleted file mode 100644
index 43c5d45d..00000000
--- a/doc/2/core-classes/memory-storage/sunionstore/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: sunionstore
-description: MemoryStorage:sunionstore
----
-
-# sunionstore
-
-Computes the union of the provided sets of unique values and stores the result in the `destination` key.
-
-If the destination key already exists, it is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/sunionstore)
-
----
-
-## sunionstore(destination, keys, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `destination` | string | Destination key identifier |
-| `keys` | string | List of sets of unique values to intersect |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of elements in the stored union.
-
-## Usage
-
-<<< ./snippets/sunionstore-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/sunionstore/snippets/sunionstore-1.java b/doc/2/core-classes/memory-storage/sunionstore/snippets/sunionstore-1.java
deleted file mode 100644
index cefa5da2..00000000
--- a/doc/2/core-classes/memory-storage/sunionstore/snippets/sunionstore-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.sunionstore("destination", keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/time/index.md b/doc/2/core-classes/memory-storage/time/index.md
deleted file mode 100644
index f5161a7b..00000000
--- a/doc/2/core-classes/memory-storage/time/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: time
-description: MemoryStorage:time
----
-
-# time
-
-Returns the current server time.
-
-[[_Redis documentation_]](https://redis.io/commands/time)
-
----
-
-## time([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array containing the following two items, in this order:
-
-- a timestamp in [Epoch time](https://en.wikipedia.org/wiki/Unix_time)
-- the number of microseconds already elapsed in the current second
-
-## Usage
-
-<<< ./snippets/time-1.java
-
-> Callback response:
-
-```json
-[1488791347, 494938]
-```
diff --git a/doc/2/core-classes/memory-storage/time/snippets/time-1.java b/doc/2/core-classes/memory-storage/time/snippets/time-1.java
deleted file mode 100644
index edf39d51..00000000
--- a/doc/2/core-classes/memory-storage/time/snippets/time-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.time(new ResponseListener() {
- @Override
- public void onSuccess(Long[] result) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/touch/index.md b/doc/2/core-classes/memory-storage/touch/index.md
deleted file mode 100644
index 401ea608..00000000
--- a/doc/2/core-classes/memory-storage/touch/index.md
+++ /dev/null
@@ -1,52 +0,0 @@
----
-code: true
-type: page
-title: touch
-description: MemoryStorage:touch
----
-
-# touch
-
-Alters the last access time of one or multiple keys. A key is ignored if it does not exist.
-
-[[_Redis documentation_]](https://redis.io/commands/touch)
-
----
-
-## touch(keys, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------- |
-| `keys` | array | List of keys to alter |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of altered keys.
-
-## Usage
-
-<<< ./snippets/touch-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/touch/snippets/touch-1.java b/doc/2/core-classes/memory-storage/touch/snippets/touch-1.java
deleted file mode 100644
index e5cf6365..00000000
--- a/doc/2/core-classes/memory-storage/touch/snippets/touch-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.touch(keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/ttl/index.md b/doc/2/core-classes/memory-storage/ttl/index.md
deleted file mode 100644
index 8b87d34e..00000000
--- a/doc/2/core-classes/memory-storage/ttl/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: ttl
-description: MemoryStorage:ttl
----
-
-# ttl
-
-Returns the remaining time to live of a key, in seconds, or a negative value if the key does not exist or if it is persistent.
-
-[[_Redis documentation_]](https://redis.io/commands/ttl)
-
----
-
-## ttl(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the remaining time to live of the key, in seconds.
-
-## Usage
-
-<<< ./snippets/ttl-1.java
-
-> Callback response:
-
-```json
-42
-```
diff --git a/doc/2/core-classes/memory-storage/ttl/snippets/ttl-1.java b/doc/2/core-classes/memory-storage/ttl/snippets/ttl-1.java
deleted file mode 100644
index e934326d..00000000
--- a/doc/2/core-classes/memory-storage/ttl/snippets/ttl-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.ttl("key", new ResponseListener() {
- @Override
- public void onSuccess(int ttl) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/type/index.md b/doc/2/core-classes/memory-storage/type/index.md
deleted file mode 100644
index cd556f8a..00000000
--- a/doc/2/core-classes/memory-storage/type/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: type
-description: MemoryStorage:type
----
-
-# type
-
-Returns the type of the value held by a key.
-
-[[_Redis documentation_]](https://redis.io/commands/type)
-
----
-
-## type(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns one of the following values: `hash`, `list`, `set`, `string`, `zset`.
-
-## Usage
-
-<<< ./snippets/type-1.java
-
-> Callback response:
-
-```json
-"zset"
-```
diff --git a/doc/2/core-classes/memory-storage/type/snippets/type-1.java b/doc/2/core-classes/memory-storage/type/snippets/type-1.java
deleted file mode 100644
index 87414a34..00000000
--- a/doc/2/core-classes/memory-storage/type/snippets/type-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.type("key", new ResponseListener() {
- @Override
- public void onSuccess(String type) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zadd/index.md b/doc/2/core-classes/memory-storage/zadd/index.md
deleted file mode 100644
index 12d4c733..00000000
--- a/doc/2/core-classes/memory-storage/zadd/index.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-code: true
-type: page
-title: zadd
-description: MemoryStorage:zadd
----
-
-# zadd
-
-Adds the specified elements to the sorted set stored at `key`. If the key does not exist, it is created, holding an empty sorted set. If it already exists and does not hold a sorted set, an error is returned.
-
-Scores are expressed as floating point numbers.
-
-If a member to insert is already in the sorted set, its score is updated and the member is reinserted at the right position in the set.
-
-[[_Redis documentation_]](https://redis.io/commands/zadd)
-
----
-
-## zadd(key, elements, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `elements` | array | List of JSON objects detailing the element to add to the sorted set.
Properties: `score` (element's score, `double`), `member` (element's value, `string`) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `ch` | boolean | Instead of returning the number of added allements, return the total number of changes performed (including updates) | `false` |
-| `incr` | boolean | Instead of adding elements, increment the existing member with the provided `score` value. Only one score+element pair can be specified if this option is set | `false` |
-| `nx` | boolean | Only add new elements, do not update existing ones | `false` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `xx` | boolean | Never add new elements, update only exiting ones | `false` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of elements added to the sorted set.
-
-## Usage
-
-<<< ./snippets/zadd-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/zadd/snippets/zadd-1.java b/doc/2/core-classes/memory-storage/zadd/snippets/zadd-1.java
deleted file mode 100644
index 4ef2d10e..00000000
--- a/doc/2/core-classes/memory-storage/zadd/snippets/zadd-1.java
+++ /dev/null
@@ -1,16 +0,0 @@
-
-JSONObject[] elements = new JSONObject[]{
- new JSONObject().put("score", 1).put("member", "foo"),
- new JSONObject().put("score", 2).put("member", "bar"),
- new JSONObject().put("score", 3).put("member", "baz")
-};
-
-kuzzle.memoryStorage.zadd("key", elements new ResponseListener() {
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zcard/index.md b/doc/2/core-classes/memory-storage/zcard/index.md
deleted file mode 100644
index 44a72dc2..00000000
--- a/doc/2/core-classes/memory-storage/zcard/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: zcard
-description: MemoryStorage:zcard
----
-
-# zcard
-
-Returns the number of elements held by a sorted set.
-
-[[_Redis documentation_]](https://redis.io/commands/zcard)
-
----
-
-## zcard(key, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of elements in a sorted set.
-
-## Usage
-
-<<< ./snippets/zcard-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/zcard/snippets/zcard-1.java b/doc/2/core-classes/memory-storage/zcard/snippets/zcard-1.java
deleted file mode 100644
index adfc20f5..00000000
--- a/doc/2/core-classes/memory-storage/zcard/snippets/zcard-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zcard("key", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zcount/index.md b/doc/2/core-classes/memory-storage/zcount/index.md
deleted file mode 100644
index 650b9a44..00000000
--- a/doc/2/core-classes/memory-storage/zcount/index.md
+++ /dev/null
@@ -1,50 +0,0 @@
----
-code: true
-type: page
-title: zcount
-description: MemoryStorage:zcount
----
-
-# zcount
-
-Returns the number of elements held by a sorted set with a score between the provided `min` and `max` values.
-
-By default, the provided min and max values are inclusive. This behavior can be changed using the syntax described in the Redis [ZRANGEBYSCORE](https://redis.io/commands/zrangebyscore) documentation.
-
-[[_Redis documentation_]](https://redis.io/commands/zcount)
-
----
-
-## zcount(key, min, max, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------ |
-| `key` | string | Key identifier |
-| `min` | int | Minimum score (inclusive by default) |
-| `max` | int | Maximum score (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of elements in the provided score range.
-
-## Usage
-
-<<< ./snippets/zcount-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/zcount/snippets/zcount-1.java b/doc/2/core-classes/memory-storage/zcount/snippets/zcount-1.java
deleted file mode 100644
index f5fe72bc..00000000
--- a/doc/2/core-classes/memory-storage/zcount/snippets/zcount-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zcount("key", 2, 3, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zincrby/index.md b/doc/2/core-classes/memory-storage/zincrby/index.md
deleted file mode 100644
index 1a632b48..00000000
--- a/doc/2/core-classes/memory-storage/zincrby/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: zincrby
-description: MemoryStorage:zincrby
----
-
-# zincrby
-
-Increments the score of a `member` in a sorted set by the provided `value`.
-
-[[_Redis documentation_]](https://redis.io/commands/zincrby)
-
----
-
-## zincrby(key, member, increment, [options], [callback])
-
-| Arguments | Type | Description |
-| ----------- | ----------- | --------------------------- |
-| `key` | string | Key identifier |
-| `member` | string | Member element to increment |
-| `increment` | double | Increment value |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a double containing the updated member's score in the sorted set.
-
-## Usage
-
-<<< ./snippets/zincrby-1.java
-
-> Callback response:
-
-```json
-4.14159
-```
diff --git a/doc/2/core-classes/memory-storage/zincrby/snippets/zincrby-1.java b/doc/2/core-classes/memory-storage/zincrby/snippets/zincrby-1.java
deleted file mode 100644
index 5830ab5c..00000000
--- a/doc/2/core-classes/memory-storage/zincrby/snippets/zincrby-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zincrby("key", "foo", 3.14159, new ResponseListener() {
- @Override
- public void onSuccess(double value) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zinterstore/index.md b/doc/2/core-classes/memory-storage/zinterstore/index.md
deleted file mode 100644
index 7012e550..00000000
--- a/doc/2/core-classes/memory-storage/zinterstore/index.md
+++ /dev/null
@@ -1,51 +0,0 @@
----
-code: true
-type: page
-title: zinterstore
-description: MemoryStorage:zinterstore
----
-
-# zinterstore
-
-Computes the intersection of the provided sorted sets and stores the result in the `destination` key.
-
-If the destination key already exists, it is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/zinterstore)
-
----
-
-## zinterstore(destination, keys, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | -------------------------------- |
-| `destination` | string | Destination key identifier |
-| `keys` | string | List of sorted sets to intersect |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------- | ------- | ----------------------------------------------------------------------------------------------------------- | ------- |
-| `aggregate` | string | Specify how members' scores are aggregated during the intersection.
Allowed values: `min`, `max`, `sum` | `sum` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `weights` | array | Specify a multiplication factor for each input sorted set | `[1]` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of members in the stored intersection.
-
-## Usage
-
-<<< ./snippets/zinterstore-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/zinterstore/snippets/zinterstore-1.java b/doc/2/core-classes/memory-storage/zinterstore/snippets/zinterstore-1.java
deleted file mode 100644
index 0eab45cd..00000000
--- a/doc/2/core-classes/memory-storage/zinterstore/snippets/zinterstore-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.zinterstore("destination", keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zlexcount/index.md b/doc/2/core-classes/memory-storage/zlexcount/index.md
deleted file mode 100644
index 4befc45f..00000000
--- a/doc/2/core-classes/memory-storage/zlexcount/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: zlexcount
-description: MemoryStorage:zlexcount
----
-
-# zlexcount
-
-Counts elements in a sorted set where all members have equal score, using lexicographical ordering. The `min` and `max` values are inclusive by default. To change this behavior, please check the syntax detailed in the [Redis documentation](https://redis.io/commands/zrangebylex).
-
-[[_Redis documentation_]](https://redis.io/commands/zlexcount)
-
----
-
-## zlexcount(key, min, max, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `min` | string | Minimum member value (inclusive by default) |
-| `max` | string | Maximum member value (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of elements in the provided lexicographical value range.
-
-## Usage
-
-<<< ./snippets/zlexcount-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/zlexcount/snippets/zlexcount-1.java b/doc/2/core-classes/memory-storage/zlexcount/snippets/zlexcount-1.java
deleted file mode 100644
index cb5f22b8..00000000
--- a/doc/2/core-classes/memory-storage/zlexcount/snippets/zlexcount-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zlexcount("key", "[b", "[f", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrange/index.md b/doc/2/core-classes/memory-storage/zrange/index.md
deleted file mode 100644
index 69d15261..00000000
--- a/doc/2/core-classes/memory-storage/zrange/index.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-code: true
-type: page
-title: zrange
-description: MemoryStorage:zrange
----
-
-# zrange
-
-Returns elements from a sorted set depending on their position in the set, from a `start` position index to a `stop` position index (inclusives).
-First position starts at `0`.
-
-[[_Redis documentation_]](https://redis.io/commands/zrange)
-
----
-
-## zrange(key, start, stop, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `start` | int | Start position in the set (index starts at position `0`) |
-| `stop` | int | End position in the set |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of objects, each containing the following properties:
-
-- `member`: member value in the sorted set
-- `score`: member associated score
-
-## Usage
-
-<<< ./snippets/zrange-1.java
-
-> Callback response:
-
-```json
-[
- { "member": "foo", "score": 1 },
- { "member": "bar", "score": 2 },
- { "member": "baz", "score": 3 }
-]
-```
diff --git a/doc/2/core-classes/memory-storage/zrange/snippets/zrange-1.java b/doc/2/core-classes/memory-storage/zrange/snippets/zrange-1.java
deleted file mode 100644
index 94bd9aaf..00000000
--- a/doc/2/core-classes/memory-storage/zrange/snippets/zrange-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrange("key", 0, -1, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrangebylex/index.md b/doc/2/core-classes/memory-storage/zrangebylex/index.md
deleted file mode 100644
index 3f8c2b5f..00000000
--- a/doc/2/core-classes/memory-storage/zrangebylex/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: zrangebylex
-description: MemoryStorage:zrangebylex
----
-
-# zrangebylex
-
-Returns elements in a sorted set where all members have equal score, using lexicographical ordering. The `min` and `max` values are inclusive by default. To change this behavior, please check the full documentation.
-
-[[_Redis documentation_]](https://redis.io/commands/zrangebylex)
-
----
-
-## zrangebylex(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `min` | string | Minimum member value (inclusive by default) |
-| `max` | string | Maximum member value (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `limit` | array | Limit the result set to a range of matching elements (similar to _SELECT LIMIT offset, count_ in SQL).
Format: `[, ]` | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of matching members.
-
-## Usage
-
-<<< ./snippets/zrangebylex-1.java
-
-> Callback response:
-
-```json
-["member1", "member2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/zrangebylex/snippets/zrangebylex-1.java b/doc/2/core-classes/memory-storage/zrangebylex/snippets/zrangebylex-1.java
deleted file mode 100644
index 90cfa2b4..00000000
--- a/doc/2/core-classes/memory-storage/zrangebylex/snippets/zrangebylex-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrangebylex("key", "-", "(g", new ResponseListener() {
- @Override
- public void onSuccess(String[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrangebyscore/index.md b/doc/2/core-classes/memory-storage/zrangebyscore/index.md
deleted file mode 100644
index f32eb128..00000000
--- a/doc/2/core-classes/memory-storage/zrangebyscore/index.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-code: true
-type: page
-title: zrangebyscore
-description: MemoryStorage:zrangebyscore
----
-
-# zrangebyscore
-
-Returns all the elements in the sorted set at key with a score between `min` and `max` (inclusive). The elements are considered to be ordered from low to high scores.
-
-[[_Redis documentation_]](https://redis.io/commands/zrangebyscore)
-
----
-
-## zrangebyscore(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------ |
-| `key` | string | Key identifier |
-| `min` | double | Minimum score value (inclusive by default) |
-| `max` | double | Maximum score value (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `limit` | array | Limit the result set to a range of matching elements (similar to _SELECT LIMIT offset, count_ in SQL).
Format: `[, ]` | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of matching members.
-
-## Usage
-
-<<< ./snippets/zrangebyscore-1.java
-
-> Callback response:
-
-```json
-[
- { "member": "foo", "score": 1 },
- { "member": "bar", "score": 2 },
- { "member": "baz", "score": 3 }
-]
-```
diff --git a/doc/2/core-classes/memory-storage/zrangebyscore/snippets/zrangebyscore-1.java b/doc/2/core-classes/memory-storage/zrangebyscore/snippets/zrangebyscore-1.java
deleted file mode 100644
index 5ae0e564..00000000
--- a/doc/2/core-classes/memory-storage/zrangebyscore/snippets/zrangebyscore-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrangebyscore("key", 2, 3, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrank/index.md b/doc/2/core-classes/memory-storage/zrank/index.md
deleted file mode 100644
index 017913d9..00000000
--- a/doc/2/core-classes/memory-storage/zrank/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: zrank
-description: MemoryStorage:zrank
----
-
-# zrank
-
-Returns the position of an element in a sorted set, with scores in ascending order. The index returned is 0-based (the lowest score member has an index of 0).
-
-[[_Redis documentation_]](https://redis.io/commands/zrank)
-
----
-
-## zrank(key, member, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------ |
-| `key` | string | Key identifier |
-| `member` | string | Member of the sorted set |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the member's position in the sorted set.
-
-## Usage
-
-<<< ./snippets/zrank-1.java
-
-> Callback response:
-
-```json
-0
-```
diff --git a/doc/2/core-classes/memory-storage/zrank/snippets/zrank-1.java b/doc/2/core-classes/memory-storage/zrank/snippets/zrank-1.java
deleted file mode 100644
index cb688cc1..00000000
--- a/doc/2/core-classes/memory-storage/zrank/snippets/zrank-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrank("key", "member", new ResponseListener() {
- @Override
- public void onSuccess(int position) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrem/index.md b/doc/2/core-classes/memory-storage/zrem/index.md
deleted file mode 100644
index a1b2220c..00000000
--- a/doc/2/core-classes/memory-storage/zrem/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: zrem
-description: MemoryStorage:zrem
----
-
-# zrem
-
-Removes members from a sorted set.
-
-[[_Redis documentation_]](https://redis.io/commands/zrem)
-
----
-
-## zrem(key, members, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------- |
-| `key` | string | Key identifier |
-| `members` | array | List of members to remove |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of members removed from the sorted set.
-
-## Usage
-
-<<< ./snippets/zrem-1.java
-
-> Callback response:
-
-```json
-3
-```
diff --git a/doc/2/core-classes/memory-storage/zrem/snippets/zrem-1.java b/doc/2/core-classes/memory-storage/zrem/snippets/zrem-1.java
deleted file mode 100644
index 11918285..00000000
--- a/doc/2/core-classes/memory-storage/zrem/snippets/zrem-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] members = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.zrem("key", members, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zremrangebylex/index.md b/doc/2/core-classes/memory-storage/zremrangebylex/index.md
deleted file mode 100644
index c4fb65d5..00000000
--- a/doc/2/core-classes/memory-storage/zremrangebylex/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: zremrangebylex
-description: MemoryStorage:zremrangebylex
----
-
-# zremrangebylex
-
-Removes members from a sorted set where all elements have the same score, using lexicographical ordering. The `min` and `max` interval are inclusive, see the [Redis documentation](https://redis.io/commands/zrangebylex) to change this behavior.
-
-[[_Redis documentation_]](https://redis.io/commands/zremrangebylex)
-
----
-
-## zremrangebylex(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `min` | string | Minimum member value (inclusive by default) |
-| `max` | string | Maximum member value (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of removed members from the sorted set.
-
-## Usage
-
-<<< ./snippets/zremrangebylex-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/zremrangebylex/snippets/zremrangebylex-1.java b/doc/2/core-classes/memory-storage/zremrangebylex/snippets/zremrangebylex-1.java
deleted file mode 100644
index f11dbb98..00000000
--- a/doc/2/core-classes/memory-storage/zremrangebylex/snippets/zremrangebylex-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zremrangebylex("key", "[b", "(f", new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zremrangebyrank/index.md b/doc/2/core-classes/memory-storage/zremrangebyrank/index.md
deleted file mode 100644
index 5631f7cf..00000000
--- a/doc/2/core-classes/memory-storage/zremrangebyrank/index.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-code: true
-type: page
-title: zremrangebyrank
-description: MemoryStorage:zremrangebyrank
----
-
-# zremrangebyrank
-
-Removes members from a sorted set with their position in the set between `start` and `stop` (inclusive).
-
-Positions are 0-based, meaning the first member of the set has a position of 0.
-
-[[_Redis documentation_]](https://redis.io/commands/zremrangebyrank)
-
----
-
-## zremrangebyrank(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------------- |
-| `key` | string | Key identifier |
-| `min` | int | Minimum position index (inclusive by default) |
-| `max` | int | Maximum position index (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of removed members from the sorted set.
-
-## Usage
-
-<<< ./snippets/zremrangebyrank-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/zremrangebyrank/snippets/zremrangebyrank-1.java b/doc/2/core-classes/memory-storage/zremrangebyrank/snippets/zremrangebyrank-1.java
deleted file mode 100644
index 1be4c978..00000000
--- a/doc/2/core-classes/memory-storage/zremrangebyrank/snippets/zremrangebyrank-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zremrangebyrank("key", 1, 2, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zremrangebyscore/index.md b/doc/2/core-classes/memory-storage/zremrangebyscore/index.md
deleted file mode 100644
index 3b4a80de..00000000
--- a/doc/2/core-classes/memory-storage/zremrangebyscore/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: zremrangebyscore
-description: MemoryStorage:zremrangebyscore
----
-
-# zremrangebyscore
-
-Removes members from a sorted set with a score between `min` and `max` (inclusive by default).
-
-[[_Redis documentation_]](https://redis.io/commands/zremrangebyscore)
-
----
-
-## zremrangebyscore(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------ |
-| `key` | string | Key identifier |
-| `min` | double | Minimum score (inclusive by default) |
-| `max` | double | Maximum score (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an integer containing the number of removed members from the sorted set.
-
-## Usage
-
-<<< ./snippets/zremrangebyscore-1.java
-
-> Callback response:
-
-```json
-2
-```
diff --git a/doc/2/core-classes/memory-storage/zremrangebyscore/snippets/zremrangebyscore-1.java b/doc/2/core-classes/memory-storage/zremrangebyscore/snippets/zremrangebyscore-1.java
deleted file mode 100644
index 583eaeba..00000000
--- a/doc/2/core-classes/memory-storage/zremrangebyscore/snippets/zremrangebyscore-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zremrangebyscore("key", 1, 2, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrevrange/index.md b/doc/2/core-classes/memory-storage/zrevrange/index.md
deleted file mode 100644
index d2cde92c..00000000
--- a/doc/2/core-classes/memory-storage/zrevrange/index.md
+++ /dev/null
@@ -1,61 +0,0 @@
----
-code: true
-type: page
-title: zrevrange
-description: MemoryStorage:zrevrange
----
-
-# zrevrange
-
-Identical to [zrange](/sdk/java/2/core-classes/memory-storage/zrange), except that the sorted set is traversed in descending order.
-
-[[_Redis documentation_]](https://redis.io/commands/zrevrange)
-
----
-
-## zrevrange(key, start, stop, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `start` | int | Start position in the set (index starts at position `0`) |
-| `stop` | int | End position in the set |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of objects, each containing the following properties:
-
-- `member`: member value in the sorted set
-- `score`: member associated score
-
-## Usage
-
-<<< ./snippets/zrevrange-1.java
-
-> Callback response:
-
-```json
-[
- { "member": "baz", "score": 3 },
- { "member": "bar", "score": 2 },
- { "member": "foo", "score": 1 }
-]
-```
diff --git a/doc/2/core-classes/memory-storage/zrevrange/snippets/zrevrange-1.java b/doc/2/core-classes/memory-storage/zrevrange/snippets/zrevrange-1.java
deleted file mode 100644
index 027d82ed..00000000
--- a/doc/2/core-classes/memory-storage/zrevrange/snippets/zrevrange-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrevrange("key", 0, -1, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrevrangebylex/index.md b/doc/2/core-classes/memory-storage/zrevrangebylex/index.md
deleted file mode 100644
index 3eb4feac..00000000
--- a/doc/2/core-classes/memory-storage/zrevrangebylex/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: zrevrangebylex
-description: MemoryStorage:zrevrangebylex
----
-
-# zrevrangebylex
-
-Identical to [zrangebylex](/sdk/java/2/core-classes/memory-storage/zrangebylex) except that the sorted set is traversed in descending order.
-
-[[_Redis documentation_]](https://redis.io/commands/zrevrangebylex)
-
----
-
-## zrevrangebylex(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------- |
-| `key` | string | Key identifier |
-| `min` | string | Minimum member value (inclusive by default) |
-| `max` | string | Maximum member value (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `limit` | array | Limit the result set to a range of matching elements (similar to _SELECT LIMIT offset, count_ in SQL).
Format: `[, ]` | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of matching members.
-
-## Usage
-
-<<< ./snippets/zrevrangebylex-1.java
-
-> Callback response:
-
-```json
-["member1", "member2", "..."]
-```
diff --git a/doc/2/core-classes/memory-storage/zrevrangebylex/snippets/zrevrangebylex-1.java b/doc/2/core-classes/memory-storage/zrevrangebylex/snippets/zrevrangebylex-1.java
deleted file mode 100644
index c526d829..00000000
--- a/doc/2/core-classes/memory-storage/zrevrangebylex/snippets/zrevrangebylex-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrevrangebylex("key", "-", "(g", new ResponseListener() {
- @Override
- public void onSuccess(String[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrevrangebyscore/index.md b/doc/2/core-classes/memory-storage/zrevrangebyscore/index.md
deleted file mode 100644
index 525aed8e..00000000
--- a/doc/2/core-classes/memory-storage/zrevrangebyscore/index.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-code: true
-type: page
-title: zrevrangebyscore
-description: MemoryStorage:zrevrangebyscore
----
-
-# zrevrangebyscore
-
-Identical to [zrangebyscore](/sdk/java/2/core-classes/memory-storage/zrangebyscore) except that the sorted set is traversed in descending order.
-
-[[_Redis documentation_]](https://redis.io/commands/zrevrangebyscore)
-
----
-
-## zrevrangebyscore(key, min, max, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------ |
-| `key` | string | Key identifier |
-| `min` | double | Minimum score value (inclusive by default) |
-| `max` | double | Maximum score value (inclusive by default) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `limit` | array | Limit the result set to a range of matching elements (similar to _SELECT LIMIT offset, count_ in SQL).
Format: `[, ]` | `null` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return value
-
-Returns the `MemoryStorage` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an array of matching members.
-
-## Usage
-
-<<< ./snippets/zrevrangebyscore-1.java
-
-> Callback response:
-
-```json
-[
- { "member": "baz", "score": 3 },
- { "member": "bar", "score": 2 },
- { "member": "foo", "score": 1 }
-]
-```
diff --git a/doc/2/core-classes/memory-storage/zrevrangebyscore/snippets/zrevrangebyscore-1.java b/doc/2/core-classes/memory-storage/zrevrangebyscore/snippets/zrevrangebyscore-1.java
deleted file mode 100644
index 3bd7961b..00000000
--- a/doc/2/core-classes/memory-storage/zrevrangebyscore/snippets/zrevrangebyscore-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrevrangebyscore("key", 2, 3, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] members) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zrevrank/index.md b/doc/2/core-classes/memory-storage/zrevrank/index.md
deleted file mode 100644
index 24abc5bf..00000000
--- a/doc/2/core-classes/memory-storage/zrevrank/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: zrevrank
-description: MemoryStorage:zrevrank
----
-
-# zrevrank
-
-Returns the position of an element in a sorted set, with scores in descending order. The index returned is 0-based (the lowest score member has an index of 0).
-
-[[_Redis documentation_]](https://redis.io/commands/zrevrank)
-
----
-
-## zrevrank(key, member, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------ |
-| `key` | string | Key identifier |
-| `member` | string | Member of the sorted set |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an integer containing the member's position in the sorted set.
-
-## Usage
-
-<<< ./snippets/zrevrank-1.java
-
-> Callback response:
-
-```json
-0
-```
diff --git a/doc/2/core-classes/memory-storage/zrevrank/snippets/zrevrank-1.java b/doc/2/core-classes/memory-storage/zrevrank/snippets/zrevrank-1.java
deleted file mode 100644
index acedf859..00000000
--- a/doc/2/core-classes/memory-storage/zrevrank/snippets/zrevrank-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zrevrank("key", "member", new ResponseListener() {
- @Override
- public void onSuccess(int position) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zscan/index.md b/doc/2/core-classes/memory-storage/zscan/index.md
deleted file mode 100644
index 4a659e4c..00000000
--- a/doc/2/core-classes/memory-storage/zscan/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: zscan
-description: MemoryStorage:zscan
----
-
-# zscan
-
-Identical to [scan](/sdk/java/2/core-classes/memory-storage/scan), except that `zscan` iterates the members held by a sorted set.
-
-[[_Redis documentation_]](https://redis.io/commands/zscan)
-
----
-
-## zscan(key, cursor, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------------------------------------------------------------------- |
-| `key` | string | Key identifier |
-| `cursor` | int | Page number (iteration starts with a cursor value of `0`, and ends when the next cursor position is `0`) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------- | ------- |
-| `count` | int | Return the _approximate_ `count` number of items per result page | `10` |
-| `match` | string | Search only for member values matching the provided pattern | `*` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a JSON array containing 2 entries:
-
-- the cursor position for the next page of results (a next position of `0` indicates the end of the scan)
-- an array of sorted set members and their associated scores
-
-## Usage
-
-<<< ./snippets/zscan-1.java
-
-> Callback response:
-
-```json
-{
- "cursor": 18,
- "values": ["member1", "member1's score", "member2", "member2's score", "..."]
-}
-```
diff --git a/doc/2/core-classes/memory-storage/zscan/snippets/zscan-1.java b/doc/2/core-classes/memory-storage/zscan/snippets/zscan-1.java
deleted file mode 100644
index 6988fe4b..00000000
--- a/doc/2/core-classes/memory-storage/zscan/snippets/zscan-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zscan("key", 0, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject page) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zscore/index.md b/doc/2/core-classes/memory-storage/zscore/index.md
deleted file mode 100644
index b02a61ea..00000000
--- a/doc/2/core-classes/memory-storage/zscore/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: zscore
-description: MemoryStorage:zscore
----
-
-# zscore
-
-Returns the score of a member in a sorted set.
-
-[[_Redis documentation_]](https://redis.io/commands/zscore)
-
----
-
-## zscore(key, member, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------- |
-| `key` | string | Key identifier |
-| `member` | string | Sorted set member |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a floating point number containing the searched member's score.
-
-## Usage
-
-<<< ./snippets/zscore-1.java
-
-> Callback response:
-
-```json
-1
-```
diff --git a/doc/2/core-classes/memory-storage/zscore/snippets/zscore-1.java b/doc/2/core-classes/memory-storage/zscore/snippets/zscore-1.java
deleted file mode 100644
index 60e8b0df..00000000
--- a/doc/2/core-classes/memory-storage/zscore/snippets/zscore-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-kuzzle.memoryStorage.zscore("key", "bar", new ResponseListener() {
- @Override
- public void onSuccess(double score) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/memory-storage/zunionstore/index.md b/doc/2/core-classes/memory-storage/zunionstore/index.md
deleted file mode 100644
index b9bdf05d..00000000
--- a/doc/2/core-classes/memory-storage/zunionstore/index.md
+++ /dev/null
@@ -1,51 +0,0 @@
----
-code: true
-type: page
-title: zunionstore
-description: MemoryStorage:zunionstore
----
-
-# zunionstore
-
-Computes the union of the provided sorted sets and stores the result in the `destination` key.
-
-If the destination key already exists, it is overwritten.
-
-[[_Redis documentation_]](https://redis.io/commands/zunionstore)
-
----
-
-## zunionstore(destination, keys, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | -------------------------------- |
-| `destination` | string | Destination key identifier |
-| `keys` | string | List of sorted sets to intersect |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------- | ------- | ----------------------------------------------------------------------------------------------------------- | ------- |
-| `aggregate` | string | Specify how members' scores are aggregated during the intersection.
Allowed values: `min`, `max`, `sum` | `sum` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `weights` | array | Specify a multiplication factor for each input sorted set | `[1]` |
-
----
-
-## Callback Response
-
-Returns an integer containing the number of members in the stored union.
-
-## Usage
-
-<<< ./snippets/zunionstore-1.java
-
-> Callback response:
-
-```json
-4
-```
diff --git a/doc/2/core-classes/memory-storage/zunionstore/snippets/zunionstore-1.java b/doc/2/core-classes/memory-storage/zunionstore/snippets/zunionstore-1.java
deleted file mode 100644
index d173e4fd..00000000
--- a/doc/2/core-classes/memory-storage/zunionstore/snippets/zunionstore-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-String[] keys = new String[]{"key1", "key2", "..."};
-
-kuzzle.memoryStorage.zunionstore("destination", keys, new ResponseListener() {
- @Override
- public void onSuccess(int count) {
- // callback called once the action has completed
- }
-
- @Override
- public void onError(JSONObject error) {
- }
-});
diff --git a/doc/2/core-classes/profile/add-policy/index.md b/doc/2/core-classes/profile/add-policy/index.md
deleted file mode 100644
index 13a9af36..00000000
--- a/doc/2/core-classes/profile/add-policy/index.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-code: true
-type: page
-title: addPolicy
-description: Profile:addPolicy
----
-
-# addPolicy
-
-Adds a role to the security profile.
-
-:::info
-Updating a security profile will have no impact until the [save](/sdk/java/2/core-classes/profile/save) method is called
-:::
-
----
-
-## addPolicy(id)
-
-| Arguments | Type | Description |
-| --------- | ------ | -------------------------------------- |
-| `id` | string | Unique id of the new role to associate |
-
----
-
-## addPolicy(policy)
-
-| Arguments | Type | Description |
-| --------- | ----------- | ----------------------------------------------------------------------------- |
-| `policy` | JSON Object | policy instance corresponding to the new associated role and its restrictions |
-
----
-
-## Return Value
-
-Returns the `Profile` object to allow chaining calls.
-
-## Usage
-
-<<< ./snippets/add-policy-1.java
diff --git a/doc/2/core-classes/profile/add-policy/snippets/add-policy-1.java b/doc/2/core-classes/profile/add-policy/snippets/add-policy-1.java
deleted file mode 100644
index 35280791..00000000
--- a/doc/2/core-classes/profile/add-policy/snippets/add-policy-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-JSONObject policy = new JSONObject()
- .put("roleId", "some role id")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections", new JSONArray().put("foo").put("bar"))
- )
- );
-
-profile.addPolicy(policy);
-
-// you may also add a role ID directly
-profile.addPolicy("some role id");
diff --git a/doc/2/core-classes/profile/constructor/index.md b/doc/2/core-classes/profile/constructor/index.md
deleted file mode 100644
index b98090ee..00000000
--- a/doc/2/core-classes/profile/constructor/index.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: Profile:constructor
-order: 1
----
-
-# Constructors
-
-Instantiates a new `Profile` object, representing a security [profile](/core/1/guides/essentials/security#users-profiles-and-roles), which is a set of one or many [Role](/sdk/java/2/core-classes/role) objects.
-
----
-
-## Profile(Security, id, content, [meta])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------- |
-| `Security` | Security | An instantiated [Security](/sdk/java/2/core-classes/security) object |
-| `id` | string | Unique profile identifier |
-| `content` | JSON Object | Profile content |
-| `meta` | JSON Object | Profile metadata |
-
-**Note:** this constructor won't make any call to Kuzzle.
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ------------- | ----------- | ------------------------- | ------- |
-| `content` | JSON object | Raw profile content | get |
-| `id` | string | Unique profile identifier | get |
-| `meta` | JSON object | Profile metadata | get |
-
----
-
-## Return Value
-
-Returns to the `Profile` object.
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/profile/constructor/snippets/constructor-1.java b/doc/2/core-classes/profile/constructor/snippets/constructor-1.java
deleted file mode 100644
index fd09501f..00000000
--- a/doc/2/core-classes/profile/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,20 +0,0 @@
-
-JSONObject policy1 = new JSONObject()
- .put("roleId", "myrole");
-
-JSONObject policy2 = new JSONObject()
- .put("roleId", "default")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections",new JSONArray().put("foo").put("bar"))
- )
- );
-JSONObject roles = new JSONObject()
- .put("policies", new JSONArray()
- .put(policy1)
- .put(policy2)
- );
-
-Profile profile = new Profile(kuzzle.security, "profileId", roles);
diff --git a/doc/2/core-classes/profile/delete/index.md b/doc/2/core-classes/profile/delete/index.md
deleted file mode 100644
index 74767586..00000000
--- a/doc/2/core-classes/profile/delete/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: delete
-description: Profile:delete
----
-
-# delete
-
-Deletes this security profile from Kuzzle.
-
----
-
-## delete([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the ID of the deleted profile.
-
-## Usage
-
-<<< ./snippets/delete-1.java
diff --git a/doc/2/core-classes/profile/delete/snippets/delete-1.java b/doc/2/core-classes/profile/delete/snippets/delete-1.java
deleted file mode 100644
index dfb9e6f4..00000000
--- a/doc/2/core-classes/profile/delete/snippets/delete-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-profile
- .delete(new ResponseListener() {
- @Override
- public void onSuccess(String deleteId) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/profile/get-policies/index.md b/doc/2/core-classes/profile/get-policies/index.md
deleted file mode 100644
index 785b5257..00000000
--- a/doc/2/core-classes/profile/get-policies/index.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-code: true
-type: page
-title: getPolicies
-description: Profile:getPolicies
----
-
-# getPolicies
-
-Returns roles associated to this security policy.
-
----
-
-## Return Value
-
-Returns an array of roles linked to this security policy.
-
-## Usage
-
-<<< ./snippets/get-policies-1.java
-
-> Callback response
-
-```json
-[
- {
- "roleId": "",
- "restrictedTo": {
- "index": "",
- "collections": ["", "", "<...>"]
- }
- },
- {
- "roleId": ""
- },
- {
- "roleId": "",
- "restrictedTo": {
- "index": "",
- "collections": [""]
- }
- }
-]
-```
diff --git a/doc/2/core-classes/profile/get-policies/snippets/get-policies-1.java b/doc/2/core-classes/profile/get-policies/snippets/get-policies-1.java
deleted file mode 100644
index 84b89df1..00000000
--- a/doc/2/core-classes/profile/get-policies/snippets/get-policies-1.java
+++ /dev/null
@@ -1,3 +0,0 @@
-
-for(JSONObject policy : profile.getPolicies()) {
-}
diff --git a/doc/2/core-classes/profile/index.md b/doc/2/core-classes/profile/index.md
deleted file mode 100644
index 996694ea..00000000
--- a/doc/2/core-classes/profile/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: Profile
-description: Profile documentation
----
diff --git a/doc/2/core-classes/profile/save/index.md b/doc/2/core-classes/profile/save/index.md
deleted file mode 100644
index 68d14949..00000000
--- a/doc/2/core-classes/profile/save/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: save
-description: Profile:save
----
-
-# save
-
-Creates or replaces the profile in Kuzzle.
-
-:::warning
-Saving the object will return an error if the linked roles have not been previously created in Kuzzle.
-:::
-
----
-
-## save([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Profile` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `Profile` object.
-
-## Usage
-
-<<< ./snippets/save-1.java
diff --git a/doc/2/core-classes/profile/save/snippets/save-1.java b/doc/2/core-classes/profile/save/snippets/save-1.java
deleted file mode 100644
index e8abeeb1..00000000
--- a/doc/2/core-classes/profile/save/snippets/save-1.java
+++ /dev/null
@@ -1,32 +0,0 @@
-
-JSONObject policy1 = new JSONObject()
- .put("roleId", "myrole");
-
-JSONObject policy2 = new JSONObject()
- .put("roleId", "default")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections",new JSONArray().put("foo").put("bar"))
- )
- );
-
-JSONObject roles = new JSONObject()
- .put("policies", new JSONArray()
- .put(policy1)
- .put(policy2)
- );
-
-Profile profile = kuzzle.security.profile("myprofile", roles);
-
-profile.save(new ResponseListener() {
- @Override
- public void onSuccess(Profile savedProfile) {
-
- }
-
- @Overrid public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/profile/set-content/index.md b/doc/2/core-classes/profile/set-content/index.md
deleted file mode 100644
index 8374e6f3..00000000
--- a/doc/2/core-classes/profile/set-content/index.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-code: true
-type: page
-title: setContent
-description: Profile:setContent
----
-
-# setContent
-
-Replaces the content of the `Profile` object.
-
-:::info
-Updating a profile will have no impact until the `save` method is called
-:::
-
----
-
-## setContent(data)
-
-| Arguments | Type | Description |
-| --------- | ----------- | --------------- |
-| `data` | JSON Object | Profile content |
-
----
-
-## Return Value
-
-Returns the `Profile` object.
-
-## Usage
-
-<<< ./snippets/set-content-1.java
diff --git a/doc/2/core-classes/profile/set-content/snippets/set-content-1.java b/doc/2/core-classes/profile/set-content/snippets/set-content-1.java
deleted file mode 100644
index 3ec8e775..00000000
--- a/doc/2/core-classes/profile/set-content/snippets/set-content-1.java
+++ /dev/null
@@ -1,21 +0,0 @@
-
-JSONObject policy1 = new JSONObject()
- .put("roleId", "myrole");
-
-JSONObject policy2 = new JSONObject()
- .put("roleId", "default")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections",new JSONArray().put("foo").put("bar"))
- )
- );
-
-JSONObject newContent = new JSONObject()
- .put("policies", new JSONArray()
- .put(policy1)
- .put(policy2)
- );
-
-profile.setContent(newRolesList);
diff --git a/doc/2/core-classes/profile/set-policies/index.md b/doc/2/core-classes/profile/set-policies/index.md
deleted file mode 100644
index f6a335b3..00000000
--- a/doc/2/core-classes/profile/set-policies/index.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-code: true
-type: page
-title: setPolicies
-description: Profile:setPolicies
----
-
-# setPolicies
-
-Replaces the roles associated with this security profile.
-
----
-
-## `setPolicies(Array policyIDs)`
-
-| Arguments | Type | Description |
-| ----------- | ---------------- | ----------------- |
-| `policyIDs` | array of strings | Policy IDs to add |
-
----
-
-## `setPolicies(Array policyDefinitions)`
-
-| Arguments | Type | Description |
-| ------------------- | --------------------- | ------------------------- |
-| `policyDefinitions` | array of JSON objects | Policy definitions to add |
-
----
-
-## Return Value
-
-Returns the `Profile` object.
-
-::: info
-Updating a profile will have no impact until the `save` method is called
-:::
-
-## Usage
-
-<<< ./snippets/set-policies-1.java
diff --git a/doc/2/core-classes/profile/set-policies/snippets/set-policies-1.java b/doc/2/core-classes/profile/set-policies/snippets/set-policies-1.java
deleted file mode 100644
index 0f5bb759..00000000
--- a/doc/2/core-classes/profile/set-policies/snippets/set-policies-1.java
+++ /dev/null
@@ -1,10 +0,0 @@
-
-// Binding role IDs to a profile
-profile.setPolicies(new String[]{"role1 ID", "role2 ID", "role3 ID"});
-
-// Binding policies definition to a profile
-profile.setPolicies(new JSONObject[]{
- new JSONObject().put('roleId', 'role1 ID'),
- new JSONObject().put('roleId', 'role2 ID'),
- new JSONObject().put('roleId', 'role3 ID')
-});
diff --git a/doc/2/core-classes/profile/update/index.md b/doc/2/core-classes/profile/update/index.md
deleted file mode 100644
index 371e1f1c..00000000
--- a/doc/2/core-classes/profile/update/index.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-code: true
-type: page
-title: update
-description: Profile:update
----
-
-# update
-
-Performs a partial content update on this object.
-
----
-
-## update(content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------- |
-| `content` | JSON Object | Profile content |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Profile` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the updated version of this object.
-
-## Usage
-
-<<< ./snippets/update-1.java
diff --git a/doc/2/core-classes/profile/update/snippets/update-1.java b/doc/2/core-classes/profile/update/snippets/update-1.java
deleted file mode 100644
index e31f284b..00000000
--- a/doc/2/core-classes/profile/update/snippets/update-1.java
+++ /dev/null
@@ -1,17 +0,0 @@
-
-JSONObject policy1 = new JSONObject().put("roleId", "myrole");
-
-JSONObject updateContent = new JSONObject()
- .put("policies", new JSONArray().put(policy1));
-
-profile.update(updateContent, new ResponseListener() {
- @Override
- public void onSuccess(Profile updatedProfile) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/role/constructor/index.md b/doc/2/core-classes/role/constructor/index.md
deleted file mode 100644
index 0c3d223a..00000000
--- a/doc/2/core-classes/role/constructor/index.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: Role:constructor
-order: 1
----
-
-# Constructors
-
-Instantiates a new `Role` object, which defines a set of right policies.
-
----
-
-## Role(Security, id, content, [meta])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------- |
-| `Security` | Security | An instantiated [Security](/sdk/java/2/core-classes/security) object |
-| `id` | string | Unique role identifier |
-| `content` | JSON Object | Role content |
-| `meta` | JSON Object | Role metadata |
-
-**Note:** this constructor won't make any call to Kuzzle.
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ------------- | ----------- | ------------------------- | ------- |
-| `content` | JSON object | Raw role content | get |
-| `id` | string | Unique profile identifier | get |
-| `meta` | JSON object | Role metadata | get |
-
----
-
-## Return Value
-
-Returns the `Role` object.
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/role/constructor/snippets/constructor-1.java b/doc/2/core-classes/role/constructor/snippets/constructor-1.java
deleted file mode 100644
index 740f55c8..00000000
--- a/doc/2/core-classes/role/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-JSONObject roleDefinition = new JSONObject()
- .put("controllers", new JSONObject()
- .put("*", new JSONObject()
- .put("actions", new JSONObject()
- .put("*", true)
- )
- )
- )
-);
-
-Role role = new Role(kuzzle.security, "role ID", roleDefinition);
diff --git a/doc/2/core-classes/role/delete/index.md b/doc/2/core-classes/role/delete/index.md
deleted file mode 100644
index 52fb1235..00000000
--- a/doc/2/core-classes/role/delete/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: delete
-description: Role:delete
----
-
-# delete
-
-Deletes the role from Kuzzle.
-
----
-
-## delete([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the ID of the deleted role.
-
-## Usage
-
-<<< ./snippets/delete-1.java
diff --git a/doc/2/core-classes/role/delete/snippets/delete-1.java b/doc/2/core-classes/role/delete/snippets/delete-1.java
deleted file mode 100644
index df0bf65a..00000000
--- a/doc/2/core-classes/role/delete/snippets/delete-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-role.delete(new ResponseListener() {
- @Override
- public void onSuccess(String deletedId) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/role/index.md b/doc/2/core-classes/role/index.md
deleted file mode 100644
index f0d01c2e..00000000
--- a/doc/2/core-classes/role/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: Role
-description: Role documentation
----
diff --git a/doc/2/core-classes/role/save/index.md b/doc/2/core-classes/role/save/index.md
deleted file mode 100644
index b51ae7be..00000000
--- a/doc/2/core-classes/role/save/index.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-code: true
-type: page
-title: save
-description: Role:save
----
-
-# save
-
-Creates or replaces the role in Kuzzle's database layer.
-
----
-
-## save([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Role` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `Role` object.
-
-## Usage
-
-<<< ./snippets/save-1.java
diff --git a/doc/2/core-classes/role/save/snippets/save-1.java b/doc/2/core-classes/role/save/snippets/save-1.java
deleted file mode 100644
index f2f1689b..00000000
--- a/doc/2/core-classes/role/save/snippets/save-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-role.save(new ResponseListener {
- @Override
- public void onSuccess(Role savedRole) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/role/set-content/index.md b/doc/2/core-classes/role/set-content/index.md
deleted file mode 100644
index f2154b49..00000000
--- a/doc/2/core-classes/role/set-content/index.md
+++ /dev/null
@@ -1,32 +0,0 @@
----
-code: true
-type: page
-title: setContent
-description: Role:setContent
----
-
-# setContent
-
-Replaces the content of the `Role` object.
-
-:::info
-Updating a role content will have no impact until the [save](/sdk/java/2/core-classes/role/save) method is called
-:::
-
----
-
-## setContent(data)
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------ |
-| `data` | JSON Object | Role content |
-
----
-
-## Return Value
-
-Returns the `Role` object.
-
-## Usage
-
-<<< ./snippets/set-content-1.java
diff --git a/doc/2/core-classes/role/set-content/snippets/set-content-1.java b/doc/2/core-classes/role/set-content/snippets/set-content-1.java
deleted file mode 100644
index 9cdbf3ae..00000000
--- a/doc/2/core-classes/role/set-content/snippets/set-content-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-JSONObject roleDefinition = new JSONObject()
- .put("controllers", new JSONObject()
- .put("*", new JSONObject()
- .put("actions", new JSONObject()
- .put("*", true)
- )
- )
- )
-);
-
-role.setContent(roleDefinition);
diff --git a/doc/2/core-classes/role/update/index.md b/doc/2/core-classes/role/update/index.md
deleted file mode 100644
index c951bce2..00000000
--- a/doc/2/core-classes/role/update/index.md
+++ /dev/null
@@ -1,53 +0,0 @@
----
-code: true
-type: page
-title: update
-description: Role:update
----
-
-# update
-
-Updates the role object in Kuzzle.
-
-:::warning
-Unlike a regular document update, this method will replace the whole role definition under the indexes node with the `updateContent` parameter.
-In other words, you always need to provide the complete role definition in the `updateContent` object.
-
-This method has the same effect as calling [setContent](/sdk/java/2/core-classes/role/set-content) followed by the [save](/sdk/java/2/core-classes/role/save) method.
-:::
-
-To get more information about Kuzzle permissions, please refer to our [permissions guide](/core/1/guides/essentials/security#user-permissions).
-
----
-
-## update(content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------------- |
-| `content` | JSON Object | New role content |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Optional callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `Role` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the updated version of this object.
-
-## Usage
-
-<<< ./snippets/update-1.java
diff --git a/doc/2/core-classes/role/update/snippets/update-1.java b/doc/2/core-classes/role/update/snippets/update-1.java
deleted file mode 100644
index 28ac63c9..00000000
--- a/doc/2/core-classes/role/update/snippets/update-1.java
+++ /dev/null
@@ -1,22 +0,0 @@
-
-JSONObject roleDefinition = new JSONObject()
- .put("controllers", new JSONObject()
- .put("document", new JSONObject()
- .put("actions", new JSONObject()
- .put("get", true)
- )
- )
- )
-);
-
-role.update(roleDefinition, new ResponseListener() {
- @Override
- public void onSuccess(Role updatedRole) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/room/constructor/index.md b/doc/2/core-classes/room/constructor/index.md
deleted file mode 100644
index 976e5978..00000000
--- a/doc/2/core-classes/room/constructor/index.md
+++ /dev/null
@@ -1,55 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: Room:constructor
-order: 1
----
-
-# Constructors
-
-The `Room` object is the result of a subscription request, allowing you to manipulate the subscription itself.
-
----
-
-## Room(Collection, [options])
-
-| Arguments | Type | Description |
-| ------------ | ------ | ---------------------------------------- |
-| `Collection` | object | an instantiated Kuzzle Collection object |
-| `options` | object | Optional subscription configuration |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ----------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | `null` |
-| `scope` | string | Filter [document notifications](/sdk/java/2/essentials/realtime-notifications#document-notification) depending on their scope status. You may receive entering documents (scope: `in`), leaving documents (scope: `out`), all documents changes (scope: `all`) or filter these notifications completely (scope: `none`). This filter does not affect pub/sub messages or user events. | `all` |
-| `state` | string | Filter [document notifications](/sdk/java/2/essentials/realtime-notifications#document-notification) depending on the state of the modifying request. You may receive real-time notifications when a document is about to be changed (state: `pending`), or be notified when the change has been fully written in the database (state: `done`), or both (state: `all`). This filter does not affect pub/sub messages or user events. | `done` |
-| `subscribeToSelf` | boolean | (Don't) subscribe to notifications fired as a consequence of our own queries | `true` |
-| `users` | string | Filter [user notifications](/sdk/java/2/essentials/realtime-notifications#user-notification) triggered upon a user entering the room (user: `in`), leaving the room (user: `out`), or both (user: `all`). Setting this variable to `none` prevents receiving these notifications | `none` |
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ----------------- | ----------- | ---------------------------------------------------------------------------- | ------- |
-| `collection` | string | The subscribed collection | get |
-| `filters` | JSON object | The current set of filters of this room | get/set |
-| `headers` | JSON Object | Common headers for all sent documents. | get/set |
-| `volatile` | JSON Object | Additional information passed to notifications to other users | get/set |
-| `subscribeToSelf` | boolean | (Don't) subscribe to notifications fired as a consequence of our own queries | get/set |
-| `roomId` | string | Unique room identifier | get |
-
-**Notes:**
-
-- the `headers` property is inherited from the provided `Collection` object and can be overridden
-- updating the `volatile` property takes effect only after the subscription is renewed
-- by default, the global `volatile` properties are sent along with the subscription request. If a `volatile` option is provided during subscription, it will be merged with the global `volatile` for the subscription only. In case of conflicts, subscription `volatile` data takes priority over the global `volatile` ones.
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/room/constructor/snippets/constructor-1.java b/doc/2/core-classes/room/constructor/snippets/constructor-1.java
deleted file mode 100644
index a9c633c7..00000000
--- a/doc/2/core-classes/room/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,5 +0,0 @@
-
-Room room = new Room(dataCollection);
-
-RoomOptions options = new RoomOptions().setSubscribeToSelf(false);
-Room room = new Room(dataCollection, options);
diff --git a/doc/2/core-classes/room/count/index.md b/doc/2/core-classes/room/count/index.md
deleted file mode 100644
index 9982097b..00000000
--- a/doc/2/core-classes/room/count/index.md
+++ /dev/null
@@ -1,34 +0,0 @@
----
-code: true
-type: page
-title: count
-description: Room:count
----
-
-# count
-
-Returns the number of subscribers in the room.
-
----
-
-## count(callback)
-
-| Arguments | Type | Description |
-| ---------- | -------- | ------------------------------ |
-| `callback` | function | Callback handling the response |
-
----
-
-## Callback Response
-
-Returns an `integer` containing the number of users subscribing to this room.
-
-## Usage
-
-<<< ./snippets/count-1.java
-
-> Callback response
-
-```json
-1
-```
diff --git a/doc/2/core-classes/room/count/snippets/count-1.java b/doc/2/core-classes/room/count/snippets/count-1.java
deleted file mode 100644
index eb1162e1..00000000
--- a/doc/2/core-classes/room/count/snippets/count-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-room.count(new ResponseListener() {
- @Override
- public void onSuccess(Integer result) throws Exception {
- // ...
- }
-
- @Override
- public void onError(JSONObject error) throws Exception {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/room/index.md b/doc/2/core-classes/room/index.md
deleted file mode 100644
index acee84a3..00000000
--- a/doc/2/core-classes/room/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: Room
-description: Room documentation
----
diff --git a/doc/2/core-classes/room/renew/index.md b/doc/2/core-classes/room/renew/index.md
deleted file mode 100644
index a30a9d5e..00000000
--- a/doc/2/core-classes/room/renew/index.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-code: true
-type: page
-title: renew
-description: Room:renew
----
-
-# renew
-
-Renew the subscription. Force a new subscription using the same filters if no new ones are provided.
-
-Unsubscribes first if this `Room` object was already listening to events.
-
----
-
-## renew([filters], notificationCallback, subscriptionCallback)
-
-| Arguments | Type | Description |
-| ---------------------- | ----------- | ------------------------------------------------------------------------------------------------ |
-| `filters` | JSON Object | [Filters](/core/1/guides/cookbooks/realtime-api) |
-| `notificationCallback` | function | Function called each time a [notification](/sdk/java/2/essentials/realtime-notifications) is received |
-| `subscriptionCallback` | function | Function called with the subscription result |
-
-## Usage
-
-<<< ./snippets/renew-1.java
diff --git a/doc/2/core-classes/room/renew/snippets/renew-1.java b/doc/2/core-classes/room/renew/snippets/renew-1.java
deleted file mode 100644
index 24449954..00000000
--- a/doc/2/core-classes/room/renew/snippets/renew-1.java
+++ /dev/null
@@ -1,49 +0,0 @@
-
-JSONObject filter = new JSONObject()
- .put("and", new JSONArray()
- .put(
- new JSONObject().put("in",
- new JSONObject().put("status",
- new JSONArray()
- .put("idle")
- .put("wantToHire")
- .put("toHire")
- .put("riding")
- )
- )
- )
- .put(
- new JSONObject().put("in",
- new JSONObject()
- .put("type", new JSONArray().put("cab"))
- )
- )
- .put(
- new JSONObject().put("geoDistance",
- new JSONObject()
- .put("distance", "10km")
- .put("pos",
- new JSONObject()
- .put("lat", "48.8566140")
- .put("lon", "2.352222")
- )
- )
- )
- );
-
-room.renew(filters, new ResponseListener() {
- @Override
- public void onSuccess(NotificationResponse result) throws Exception {
- // called each time a change is detected on documents matching this filter
-
- // check the Room/Notifications section of this documentation
- // to get notification examples
- }
-
- @Override
- public void onError(JSONObject error) throws Exception {
- // Handle error
- }
-}, new ResponseListener() {
- // Handle the subscription result
-});
diff --git a/doc/2/core-classes/room/set-headers/index.md b/doc/2/core-classes/room/set-headers/index.md
deleted file mode 100644
index 35d5e6b8..00000000
--- a/doc/2/core-classes/room/set-headers/index.md
+++ /dev/null
@@ -1,33 +0,0 @@
----
-code: true
-type: page
-title: setHeaders
-description: Room:setHeaders
----
-
-# setHeaders
-
-> Returns itself
-
-This is a helper function returning itself, allowing to easily chain calls.
-
----
-
-## setHeaders(content, [replace])
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------------------------------------------------------- |
-| `content` | JSON Object | New content |
-| `replace` | boolean | true: replace the current content with the provided data, false: merge it |
-
-**Note:** by default, the `replace` argument is set to `false`
-
----
-
-## Return value
-
-Returns this `Room` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/set-headers-1.java
diff --git a/doc/2/core-classes/room/set-headers/snippets/set-headers-1.java b/doc/2/core-classes/room/set-headers/snippets/set-headers-1.java
deleted file mode 100644
index ca09ea47..00000000
--- a/doc/2/core-classes/room/set-headers/snippets/set-headers-1.java
+++ /dev/null
@@ -1,4 +0,0 @@
-
-JSONObject headers = new JSONObject();
-headers.put("someContent", "someValue");
-room.setHeaders(headers, true);
diff --git a/doc/2/core-classes/room/unsubscribe/index.md b/doc/2/core-classes/room/unsubscribe/index.md
deleted file mode 100644
index 15a6c543..00000000
--- a/doc/2/core-classes/room/unsubscribe/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: unsubscribe
-description: Room:unsubscribe
----
-
-# unsubscribe
-
-Cancels the current subscription.
-
----
-
-## Return value
-
-Returns this `Room` object to allow chaining.
-
-## Usage
-
-<<< ./snippets/unsubscribe-1.java
diff --git a/doc/2/core-classes/room/unsubscribe/snippets/unsubscribe-1.java b/doc/2/core-classes/room/unsubscribe/snippets/unsubscribe-1.java
deleted file mode 100644
index 52bce96c..00000000
--- a/doc/2/core-classes/room/unsubscribe/snippets/unsubscribe-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-room.unsubscribe();
diff --git a/doc/2/core-classes/search-result/constructor/index.md b/doc/2/core-classes/search-result/constructor/index.md
deleted file mode 100644
index 23db326b..00000000
--- a/doc/2/core-classes/search-result/constructor/index.md
+++ /dev/null
@@ -1,27 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: SearchResult:constructor
-order: 1
----
-
-# Constructor
-
-This object can only be instantiated internally by this SDK, and is an easy-to-use representation of a paginated result from a [search](/sdk/java/2/core-classes/collection/search) or a [scroll](/sdk/java/2/core-classes/collection/scroll) request.
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| -------------- | ---------- | --------------------------------------------------------- | ------- |
-| `aggregations` | object | The result of an aggregation produced by a search request | get |
-| `collection` | Collection | The collection associated to this document | get |
-| `documents` | Document[] | An array of instantiated Document objects | get |
-| `fetched` | number | The number of fetched documents so far | get/set |
-| `options` | object | The arguments of the search/scroll request | get |
-| `filters` | object | The filters of the search request | get |
-| `total` | integer | The total number of results that can be fetched | get |
-
----
diff --git a/doc/2/core-classes/search-result/fetch-next/index.md b/doc/2/core-classes/search-result/fetch-next/index.md
deleted file mode 100644
index c92875e9..00000000
--- a/doc/2/core-classes/search-result/fetch-next/index.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-code: true
-type: page
-title: fetchNext
-description: SearchResult:fetchNext
----
-
-# fetchNext
-
-Fetches the next SearchResult, by triggering a new search/scroll request depending on the options and filters of the SearchResult.
-
-If the previous request was a search or a scroll action which provided a `scroll` argument,
-`fetchNext` will use the `scrollId` retrieved from the current result to make a new scroll request.
-
-If the previous request was a search action which provided `size` argument and `sort` filtering,
-`fetchNext` will use Elasticsearch's [`search_after`](https://www.elastic.co/guide/en/elasticsearch/reference/7.5/search-request-body.html#request-body-search-search-after) mechanism, which can efficiently search through a large volume of documents, bypassing internal hard limits\[1\],
-but at the cost of reflecting the latest changes of the index, as opposed to using scroll.
-
-If the previous request was a search action which provided `from` and `size` arguments,
-`fetchNext` will add `size` to `from` and make a new search request.
-
----
-
-## How to process every document of a collection
-
-The safest way to process all documents in a collection is to fetch them as a batch in order to avoid memory exhaustion and possibly hitting some hard limits\[1\] on the database layer.
-
-:::warning
-Make sure your first search request includes the `size` and `scroll` parameters
-:::
-
-:::info
-\[1\] Elasticsearch limits the number of documents inside a single page to [10,000 by default](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/index-modules.html#dynamic-index-settings).
-:::
-
-## Usage
-
-<<< ./snippets/fetch-next-1.java
-
-<<< ./snippets/fetch-next-2.java
diff --git a/doc/2/core-classes/search-result/fetch-next/snippets/fetch-next-1.java b/doc/2/core-classes/search-result/fetch-next/snippets/fetch-next-1.java
deleted file mode 100644
index e6b8e262..00000000
--- a/doc/2/core-classes/search-result/fetch-next/snippets/fetch-next-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-searchResult.fetchNext(new ResponseListener() {
- @Override
- public void onSuccess(SearchResult nextSearchResult) {
- // called once the fetchNext action has been completed
- // nextSearchResult is an instantiated SearchResult object
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-});
diff --git a/doc/2/core-classes/search-result/fetch-next/snippets/fetch-next-2.java b/doc/2/core-classes/search-result/fetch-next/snippets/fetch-next-2.java
deleted file mode 100644
index ae1f884a..00000000
--- a/doc/2/core-classes/search-result/fetch-next/snippets/fetch-next-2.java
+++ /dev/null
@@ -1,37 +0,0 @@
-
-import io.kuzzle.sdk.core.Kuzzle;
-import io.kuzzle.sdk.core.Options;
-
-Kuzzle kuzzle = new Kuzzle("localhost");
-
-JSONObject filter = new JSONObject();
-
-Options options = new Options();
-options.setFrom((long) 0);
-options.setSize((long) 1000);
-options.setScroll("30s");
-
-ResponseListener listener = new ResponseListener() {
- @Override
- public void onSuccess(SearchResult searchResult) {
- if (searchResult == null) {
- return;
- }
-
- for (Document doc : searchResult.getDocuments()) {
- // do something with the document
- // this.processDocument(doc);
- }
-
- searchResult.fetchNext(this);
- }
-
- @Override
- public void onError(JSONObject error) {
- // handle errors here
- }
-};
-
-kuzzle
- .collection("collection", "index")
- .search(filter, options, listener);
diff --git a/doc/2/core-classes/search-result/index.md b/doc/2/core-classes/search-result/index.md
deleted file mode 100644
index 9d05e1bd..00000000
--- a/doc/2/core-classes/search-result/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: SearchResult
-description: SearchResult documentation
----
diff --git a/doc/2/core-classes/security/constructor/index.md b/doc/2/core-classes/security/constructor/index.md
deleted file mode 100644
index 6316ea02..00000000
--- a/doc/2/core-classes/security/constructor/index.md
+++ /dev/null
@@ -1,25 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: Security:constructor
-order: 1
----
-
-# Constructor
-
-The Security component lets you handle user permissions in Kuzzle.
-
-Please refer to our [permissions guide](/core/1/guides/essentials/security#user-permissions) for more information.
-
----
-
-## Security
-
-| Arguments | Type | Description |
-| --------- | ------ | -------------------------------------------------------------------- |
-| `Kuzzle` | object | An instantiated [Kuzzle](/sdk/java/2/core-classes/kuzzle) object |
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/security/constructor/snippets/constructor-1.java b/doc/2/core-classes/security/constructor/snippets/constructor-1.java
deleted file mode 100644
index 7a7e5f51..00000000
--- a/doc/2/core-classes/security/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,6 +0,0 @@
-
-// using the static instance
-Security security = kuzzle.security;
-
-// or instantiating a new Security object
-Security security = new Security(kuzzle);
diff --git a/doc/2/core-classes/security/create-credentials/index.md b/doc/2/core-classes/security/create-credentials/index.md
deleted file mode 100644
index b1107419..00000000
--- a/doc/2/core-classes/security/create-credentials/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: createCredentials
-description: Security:createCredentials
----
-
-# createCredentials
-
-Create credentials of user with `kuid` for the specified `strategy`.
-
----
-
-## createCredentials(strategy, kuid, credentials, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `strategy` | string | Strategy you want to create credentials in |
-| `kuid` | string | User's kuid |
-| `credentials` | JSON object | The credentials |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the created credentials.
-
-## Usage
-
-<<< ./snippets/create-credentials-1.java
-
-> Callback response
-
-```json
-{
- "username": "foo",
- "kuid": ""
-}
-```
diff --git a/doc/2/core-classes/security/create-credentials/snippets/create-credentials-1.java b/doc/2/core-classes/security/create-credentials/snippets/create-credentials-1.java
deleted file mode 100644
index b13e1560..00000000
--- a/doc/2/core-classes/security/create-credentials/snippets/create-credentials-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-JSONObject credentials = new JSONObject().put("username", "bar");
-
-kuzzle.security.createCredentials("local", "kuid", credentials, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject credentials) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/create-profile/index.md b/doc/2/core-classes/security/create-profile/index.md
deleted file mode 100644
index bf484502..00000000
--- a/doc/2/core-classes/security/create-profile/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: createProfile
-description: Security:createProfile
----
-
-# createProfile
-
-Create a new profile in Kuzzle.
-
-:::info
-There is a small delay between profile creation and its availability in our search layer (usually a couple of seconds).
-That means that a profile that was just created might not be immediately returned by the `searchProfiles` function.
-:::
-
----
-
-## createProfile(id, content, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | --------------------- | ----------------------------------------- |
-| `id` | string | Unique profile identifier |
-| `policies` | array of JSON objects | List of policies to apply to this profile |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `replaceIfExist` | boolean | If the same profile already exists: throw an error if sets to false. Replace the existing profile otherwise | `false` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Callback Response
-
-Returns a security [Profile](/sdk/java/2/core-classes/profile) object.
-
-## Usage
-
-<<< ./snippets/create-profile-1.java
diff --git a/doc/2/core-classes/security/create-profile/snippets/create-profile-1.java b/doc/2/core-classes/security/create-profile/snippets/create-profile-1.java
deleted file mode 100644
index 4d094d1d..00000000
--- a/doc/2/core-classes/security/create-profile/snippets/create-profile-1.java
+++ /dev/null
@@ -1,29 +0,0 @@
-
-JSONObject[] policies = new JSONObject[]{
- new JSONObject().put("roleId", "myrole"),
- new JSONObject()
- .put("roleId", "default")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections",new JSONArray().put("foo").put("bar"))
- )
- )
-};
-
-Options opts = new Options().setReplaceIfExist(true);
-
-kuzzle
- .security
- .createProfile("myprofile", policies, opts, new ResponseListener() {
- @Override
- public void onSuccess(Profile profile) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/create-restricted-user/index.md b/doc/2/core-classes/security/create-restricted-user/index.md
deleted file mode 100644
index 39d20706..00000000
--- a/doc/2/core-classes/security/create-restricted-user/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: createRestrictedUser
-description: Security:createRestrictedUser
----
-
-# createRestrictedUser
-
-Create a new restricted user in Kuzzle.
-This function allows anonymous users to create a "restricted" user with predefined rights.
-
-:::info
-There is a small delay between user creation and its availability in our search layer (usually a couple of seconds).
-That means that a user that was just created may not be immediately returned by the `searchUsers` function.
-:::
-
----
-
-## createRestrictedUser(id, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------ |
-| `id` | string | Unique user identifier, will be used as username |
-| `content` | JSON Object | A plain JSON object representing the user |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer indexation to return (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Callback response
-
-Resolves to a [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/create-restricted-user-1.java
diff --git a/doc/2/core-classes/security/create-restricted-user/snippets/create-restricted-user-1.java b/doc/2/core-classes/security/create-restricted-user/snippets/create-restricted-user-1.java
deleted file mode 100644
index 1eaaecca..00000000
--- a/doc/2/core-classes/security/create-restricted-user/snippets/create-restricted-user-1.java
+++ /dev/null
@@ -1,28 +0,0 @@
-
-JSONObject content = new JSONObject();
-
-JSONObject newUser = new JSONObject().put("content", content);
-
-JSONObject credentials = new JSONObject()
- .put("local", new JSONObject()
- // The "local" authentication strategy requires a password
- .put("password", "secret password")
- .put("lastLoggedIn", 1494411803));
-
-newUser.put("credentials", credentials);
-
-Options opts = new Options().setReplaceIfExist(true);
-
-kuzzle
- .security
- .createUser("myNewUser", newUser, opts, new ResponseListener() {
- @Override
- public void onSuccess(User user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/create-role/index.md b/doc/2/core-classes/security/create-role/index.md
deleted file mode 100644
index 8af2b187..00000000
--- a/doc/2/core-classes/security/create-role/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: createRole
-description: Security:createRole
----
-
-# createRole
-
-Create a new role in Kuzzle.
-
-:::info
-There is a small delay between role creation and its availability in our search layer (usually a couple of seconds).
-That means that a role that was just created may not be immediately returned by the `searchRole` function.
-:::
-
----
-
-## createRole(id, content, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `id` | string | Unique role identifier |
-| `content` | JSON Object | A plain JSON object representing the role |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `replaceIfExist` | boolean | If the same role already exists: throw an error if sets to false. Replace the existing role otherwise | `false` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Callback Response
-
-Returns a [Role](/sdk/java/2/core-classes/role) object.
-
-## Usage
-
-<<< ./snippets/create-role-1.java
diff --git a/doc/2/core-classes/security/create-role/snippets/create-role-1.java b/doc/2/core-classes/security/create-role/snippets/create-role-1.java
deleted file mode 100644
index 57062c93..00000000
--- a/doc/2/core-classes/security/create-role/snippets/create-role-1.java
+++ /dev/null
@@ -1,26 +0,0 @@
-
-JSONObject roleDefinition = new JSONObject()
- .put("controllers", new JSONObject()
- .put("*", new JSONObject()
- .put("actions", new JSONObject()
- .put("*", true)
- )
- )
- )
-);
-
-Options opts = new Options().setReplaceIfExist(true);
-
-kuzzle
- .security
- .createRole("myrole", roleDefinition, opts, new ResponseListener() {
- @Override
- public void onSuccess(Role role) {
- // the result is an instantiated Role object
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- })
diff --git a/doc/2/core-classes/security/create-user/index.md b/doc/2/core-classes/security/create-user/index.md
deleted file mode 100644
index f069c560..00000000
--- a/doc/2/core-classes/security/create-user/index.md
+++ /dev/null
@@ -1,54 +0,0 @@
----
-code: true
-type: page
-title: createUser
-description: Security:createUser
----
-
-# createUser
-
-Create a new user in Kuzzle.
-
-:::info
-There is a small delay between user creation and its availability in our search layer (usually a couple of seconds).
-That means that a user that was just created might not be returned immediately by the `searchUsers` function.
-:::
-
----
-
-## createUser(id, user, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------- |
-| `id` | string | [Unique user identifier](/core/1/guides/essentials/user-authentication#kuzzle-user-identifier-kuid) |
-| `user` | JSON Object | A plain JSON object representing the user (see below) |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | Callback handling the response |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
-The `user` object to provide must have the following properties:
-
-- `content` (JSON object): user global properties
- - This object must contain a `profileIds` properties, an array of strings listing the security [profiles](/core/1/guides/essentials/security#users-profiles-and-roles) to be attached to the new user
- - Any other property will be copied as additional global user information
-- `credentials` (JSON object): a description of how the new user can identify themselves on Kuzzle
- - Any number of credentials can be added, each one being an object with name equal to the [authentication strategy](/core/1/plugins/guides/strategies#exposing-authentication-strategies) used to authenticate the user, and with the login data as content.
- - If this object is left empty, the user will be created in Kuzzle but the will not be able to login.
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/create-user-1.java
diff --git a/doc/2/core-classes/security/create-user/snippets/create-user-1.java b/doc/2/core-classes/security/create-user/snippets/create-user-1.java
deleted file mode 100644
index 6f51922e..00000000
--- a/doc/2/core-classes/security/create-user/snippets/create-user-1.java
+++ /dev/null
@@ -1,38 +0,0 @@
-
-JSONObject content = new JSONObject()
- // A "profileIds" field is required to bind a user to existing profiles
- .put("profileIds", new JSONArray()
- .put("admin")
- )
- // You can also set custom fields to your user
- .put("firstname", "John")
- .put("lastname", "Doe");
-
-JSONObject newUser = new JSONObject().put("content", content);
-
-JSONObject credentials = new JSONObject()
- // Authentication strategy to use
- .put("local", new JSONObject()
- // The necessary information to provide vary,
- // depending on the chosen authentication strategy
- .put("password", "secret password")
- .put("username", "jdoe")
- );
-
-newUser.put("credentials", credentials);
-
-Options opts = new Options();
-
-kuzzle
- .security
- .createUser("myNewUser", newUser, opts, new ResponseListener() {
- @Override
- public void onSuccess(User user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/delete-credentials/index.md b/doc/2/core-classes/security/delete-credentials/index.md
deleted file mode 100644
index 93addf55..00000000
--- a/doc/2/core-classes/security/delete-credentials/index.md
+++ /dev/null
@@ -1,47 +0,0 @@
----
-code: true
-type: page
-title: deleteCredentials
-description: Security:deleteCredentials
----
-
-# deleteCredentials
-
-Delete current user's credentials for the specified `strategy`.
-
----
-
-## deleteCredentials(strategy, kuid, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | -------------------------------------------- |
-| `strategy` | string | Strategy you want to delete credentials from |
-| `kuid` | string | User's kuid |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object reflecting the query status.
-
-## Usage
-
-<<< ./snippets/delete-credentials-1.java
-
-> Callback response
-
-```json
-{
- "acknowledged": true
-}
-```
diff --git a/doc/2/core-classes/security/delete-credentials/snippets/delete-credentials-1.java b/doc/2/core-classes/security/delete-credentials/snippets/delete-credentials-1.java
deleted file mode 100644
index 1d1d0ee6..00000000
--- a/doc/2/core-classes/security/delete-credentials/snippets/delete-credentials-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.security.deleteCredentials("local", "kuid", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject result) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/delete-profile/index.md b/doc/2/core-classes/security/delete-profile/index.md
deleted file mode 100644
index 20df30e1..00000000
--- a/doc/2/core-classes/security/delete-profile/index.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-code: true
-type: page
-title: deleteProfile
-description: Security:deleteProfile
----
-
-# deleteProfile
-
-Delete the provided profile.
-
-:::info
-There is a small delay between the time a profile is deleted and it being reflected in the search layer (usually a couple of seconds).
-That means that a profile that was just deleted might still be returned by the `searchProfiles` function.
-:::
-
----
-
-## deleteProfile(id, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `id` | string | Unique profile identifier to delete |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the ID of the security profile that has been deleted.
-
-## Usage
-
-<<< ./snippets/delete-profile-1.java
-
-> Callback response
-
-```json
-"deleted profile identifier"
-```
diff --git a/doc/2/core-classes/security/delete-profile/snippets/delete-profile-1.java b/doc/2/core-classes/security/delete-profile/snippets/delete-profile-1.java
deleted file mode 100644
index 5c48727f..00000000
--- a/doc/2/core-classes/security/delete-profile/snippets/delete-profile-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .security
- .deleteProfile("myprofile", new ResponseListener() {
- @Override
- public void onSuccess(String profileName) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/delete-role/index.md b/doc/2/core-classes/security/delete-role/index.md
deleted file mode 100644
index 84470bc4..00000000
--- a/doc/2/core-classes/security/delete-role/index.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-code: true
-type: page
-title: deleteRole
-description: Security:deleteRole
----
-
-# deleteRole
-
-Delete the provided role.
-
-:::info
-There is a small delay between the time a role is deleted and it being reflected in the search layer (usually a couple of seconds).
-That means that a role that was just deleted might still be returned by the `searchRoles` function.
-:::
-
----
-
-## deleteRole(id, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `id` | string | Unique role identifier to delete |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns the id of the rold that has been deleted.
-
-## Usage
-
-<<< ./snippets/delete-role-1.java
-
-> Callback response
-
-```json
-"deleted role identifier"
-```
diff --git a/doc/2/core-classes/security/delete-role/snippets/delete-role-1.java b/doc/2/core-classes/security/delete-role/snippets/delete-role-1.java
deleted file mode 100644
index a23f999f..00000000
--- a/doc/2/core-classes/security/delete-role/snippets/delete-role-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .security
- .deleteRole("myrole", new ResponseListener() {
- @Override
- public void onSuccess(String roleName) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/delete-user/index.md b/doc/2/core-classes/security/delete-user/index.md
deleted file mode 100644
index 8e631ac3..00000000
--- a/doc/2/core-classes/security/delete-user/index.md
+++ /dev/null
@@ -1,56 +0,0 @@
----
-code: true
-type: page
-title: deleteUser
-description: Security:deleteUser
----
-
-# deleteUser
-
-Delete the provided user.
-
-:::info
-There is a small delay between the time a user is deleted and it being reflected in the search layer (usually a couple of seconds).
-That means that a user that has just been deleted might still be returned by the `searchUsers` function.
-:::
-
----
-
-## deleteUser(id, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `id` | string | Unique user identifier to delete |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Return the id of the user that has been deleted.
-
-## Usage
-
-<<< ./snippets/delete-user-1.java
-
-> Callback response
-
-```json
-"deleted user identifier"
-```
diff --git a/doc/2/core-classes/security/delete-user/snippets/delete-user-1.java b/doc/2/core-classes/security/delete-user/snippets/delete-user-1.java
deleted file mode 100644
index e203abca..00000000
--- a/doc/2/core-classes/security/delete-user/snippets/delete-user-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .security
- .deleteUser("myuser", new ResponseListener() {
- @Override
- public void onSuccess(String userName) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/fetch-profile/index.md b/doc/2/core-classes/security/fetch-profile/index.md
deleted file mode 100644
index 185f7afd..00000000
--- a/doc/2/core-classes/security/fetch-profile/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: fetchProfile
-description: Security:fetchProfile
----
-
-# fetchProfile
-
-Fetches a single stored profile using its unique ID.
-
----
-
-## fetchProfile(id, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `id` | string | Unique profile identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a security [Profile](/sdk/java/2/core-classes/profile) object.
-
-## Usage
-
-<<< ./snippets/fetch-profile-1.java
diff --git a/doc/2/core-classes/security/fetch-profile/snippets/fetch-profile-1.java b/doc/2/core-classes/security/fetch-profile/snippets/fetch-profile-1.java
deleted file mode 100644
index b9beb3a4..00000000
--- a/doc/2/core-classes/security/fetch-profile/snippets/fetch-profile-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-kuzzle
- .security
- .fetchProfile("myprofile", new ResponseListener() {
- @Override
- public void onSuccess(Profile profile) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/fetch-role/index.md b/doc/2/core-classes/security/fetch-role/index.md
deleted file mode 100644
index b07e64a6..00000000
--- a/doc/2/core-classes/security/fetch-role/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: fetchRole
-description: Security:fetchRole
----
-
-# fetchRole
-
-Fetches a single stored role using its unique ID.
-
----
-
-## fetchRole(id, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `id` | string | Unique role identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a [Role](/sdk/java/2/core-classes/role) object.
-
-## Usage
-
-<<< ./snippets/fetch-role-1.java
diff --git a/doc/2/core-classes/security/fetch-role/snippets/fetch-role-1.java b/doc/2/core-classes/security/fetch-role/snippets/fetch-role-1.java
deleted file mode 100644
index 3a5d21cf..00000000
--- a/doc/2/core-classes/security/fetch-role/snippets/fetch-role-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-kuzzle
- .security
- .fetchRole("myrole", new ResponseListener() {
- @Override
- public void onSuccess(Role role) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/fetch-user/index.md b/doc/2/core-classes/security/fetch-user/index.md
deleted file mode 100644
index d0a6439b..00000000
--- a/doc/2/core-classes/security/fetch-user/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: fetchUser
-description: Security:fetchUser
----
-
-# fetchUser
-
-Fetches a single stored user using its unique ID.
-
----
-
-## fetchUser(id, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `id` | string | Unique user identifier |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/fetch-user-1.java
diff --git a/doc/2/core-classes/security/fetch-user/snippets/fetch-user-1.java b/doc/2/core-classes/security/fetch-user/snippets/fetch-user-1.java
deleted file mode 100644
index a8f73d93..00000000
--- a/doc/2/core-classes/security/fetch-user/snippets/fetch-user-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .security
- .fetchUser("myuser", new ResponseListener() {
- @Override
- public void onSuccess(User user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/get-all-credential-fields/index.md b/doc/2/core-classes/security/get-all-credential-fields/index.md
deleted file mode 100644
index 04544e14..00000000
--- a/doc/2/core-classes/security/get-all-credential-fields/index.md
+++ /dev/null
@@ -1,45 +0,0 @@
----
-code: true
-type: page
-title: getAllCredentialFields
-description: Security:getAllCredentialFields
----
-
-# getAllCredentialFields
-
-Fetches a list of accepted fields per authentication strategy.
-
----
-
-## getAllCredentialFields([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the credential fields.
-
-## Usage
-
-<<< ./snippets/get-all-credential-fields-1.java
-
-> Callback response:
-
-```json
-{
- "local": ["kuid", "username"]
-}
-```
diff --git a/doc/2/core-classes/security/get-all-credential-fields/snippets/get-all-credential-fields-1.java b/doc/2/core-classes/security/get-all-credential-fields/snippets/get-all-credential-fields-1.java
deleted file mode 100644
index 14b8a8e6..00000000
--- a/doc/2/core-classes/security/get-all-credential-fields/snippets/get-all-credential-fields-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.security.getAllCredentialFields(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject strategies) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/get-credentials-fields/index.md b/doc/2/core-classes/security/get-credentials-fields/index.md
deleted file mode 100644
index 0305efa5..00000000
--- a/doc/2/core-classes/security/get-credentials-fields/index.md
+++ /dev/null
@@ -1,44 +0,0 @@
----
-code: true
-type: page
-title: getCredentialsFields
-description: Security:getCredentialsFields
----
-
-# getCredentialFields
-
-Get credential information for the specified `strategy`.
-
----
-
-## getCredentialFields(strategy, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `strategy` | string | Strategy you want to get credentials from |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-The result is a an array of credential fields.
-
-## Usage
-
-<<< ./snippets/get-credentials-fields-1.java
-
-> Callback response:
-
-```json
-["kuid", "username"]
-```
diff --git a/doc/2/core-classes/security/get-credentials-fields/snippets/get-credentials-fields-1.java b/doc/2/core-classes/security/get-credentials-fields/snippets/get-credentials-fields-1.java
deleted file mode 100644
index 97021d8b..00000000
--- a/doc/2/core-classes/security/get-credentials-fields/snippets/get-credentials-fields-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.security.getCredentialFields("local", new ResponseListener() {
- @Override
- public void onSuccess(String[] fields) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/get-credentials/index.md b/doc/2/core-classes/security/get-credentials/index.md
deleted file mode 100644
index b4527150..00000000
--- a/doc/2/core-classes/security/get-credentials/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: getCredentials
-description: Security:getCredentials
----
-
-# getCredentials
-
-Get credential information of user with `kuid` for the specified `strategy`.
-
----
-
-## getCredentials(strategy, kuid, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `strategy` | string | Strategy you want to get credentials from |
-| `kuid` | string | User's kuid |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-The result is a an object with the credentials.
-
-## Usage
-
-<<< ./snippets/get-credentials-1.java
-
-> Callback response
-
-```json
-{
- "username": "foo",
- "kuid": ""
-}
-```
diff --git a/doc/2/core-classes/security/get-credentials/snippets/get-credentials-1.java b/doc/2/core-classes/security/get-credentials/snippets/get-credentials-1.java
deleted file mode 100644
index d7760617..00000000
--- a/doc/2/core-classes/security/get-credentials/snippets/get-credentials-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.security.getCredentials("local", "kuid", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject credentials) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/get-user-rights/index.md b/doc/2/core-classes/security/get-user-rights/index.md
deleted file mode 100644
index 1bd08450..00000000
--- a/doc/2/core-classes/security/get-user-rights/index.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-code: true
-type: page
-title: getUserRights
-description: Security:getUserRights
----
-
-# getUserRights
-
-> Callback response example
-
-```json
-[
- {
- "controller": "my-controller",
- "action": "my-action",
- "index": "*",
- "collection": "*",
- "value": "allowed"
- },
- {
- "controller": "another-controller",
- "action": "*",
- "index": "my-index",
- "collection": "*",
- "value": "conditional"
- }
-]
-```
-
-Given a Kuzzle user id (`kuid`), retrieves the list of permissions granted to that user.
-
----
-
-### getUserRights(id, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------- |
-| `kuid` | String | [Kuzzle User Unique Identifier](/core/1/guides/essentials/user-authentication#kuzzle-user-identifier-kuid) |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-### Callback Response
-
-Returns an array of objects.
-
-## Usage
-
-<<< ./snippets/get-user-rights-1.java
diff --git a/doc/2/core-classes/security/get-user-rights/snippets/get-user-rights-1.java b/doc/2/core-classes/security/get-user-rights/snippets/get-user-rights-1.java
deleted file mode 100644
index 5c2ffadd..00000000
--- a/doc/2/core-classes/security/get-user-rights/snippets/get-user-rights-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-kuzzle
- .security
- .getUserRights("kuid", new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] rights) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/has-credentials/index.md b/doc/2/core-classes/security/has-credentials/index.md
deleted file mode 100644
index 05c4d411..00000000
--- a/doc/2/core-classes/security/has-credentials/index.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-code: true
-type: page
-title: hasCredentials
-description: Security:hasCredentials
----
-
-# hasCredentials
-
-Checks if a user has credentials for the provided strategy.
-
----
-
-## hasCredentials(strategy, kuid, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | --------------------------------- |
-| `strategy` | string | Strategy to check for credentials |
-| `kuid` | JSON object | User's kuid |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a boolean value.
-
-## Usage
-
-<<< ./snippets/has-credentials-1.java
diff --git a/doc/2/core-classes/security/has-credentials/snippets/has-credentials-1.java b/doc/2/core-classes/security/has-credentials/snippets/has-credentials-1.java
deleted file mode 100644
index e12845e2..00000000
--- a/doc/2/core-classes/security/has-credentials/snippets/has-credentials-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-kuzzle.security.hasCredentials("local", "kuid", new ResponseListener() {
- @Override
- public void onSuccess(Boolean result) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/index.md b/doc/2/core-classes/security/index.md
deleted file mode 100644
index 5cdb0b71..00000000
--- a/doc/2/core-classes/security/index.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-code: true
-type: branch
-title: Security
-description: Security documentation
----
diff --git a/doc/2/core-classes/security/is-action-allowed/index.md b/doc/2/core-classes/security/is-action-allowed/index.md
deleted file mode 100644
index 219cec03..00000000
--- a/doc/2/core-classes/security/is-action-allowed/index.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-code: true
-type: page
-title: isActionAllowed
-description: Security:isActionAllowed
----
-
-# isActionAllowed
-
-Specifies if an action is allowed, denied or conditional based on the rights provided as the first argument:
-
-- `allowed` is returned when an action is authorized without condition
-- `conditional` is returned when the authorization depends on a closure
-- `denied` is returned when the action is forbidden
-
-An action is defined as a pair of action and controller (mandatory), plus an index and a collection(optional).
-
-:::info
-You can get the rights from Kuzzle by using [Security.getUserRights](/sdk/java/2/core-classes/security/get-user-rights) and [Kuzzle.getMyRights](/sdk/java/2/core-classes/kuzzle/get-my-rights).
-:::
-
----
-
-## isActionAllowed(rights, controller, action, index, collection)
-
-| Arguments | Type | Description |
-| ------------ | ---------- | -------------- |
-| `rights` | JSON array | Rights list |
-| `controller` | String | The controller |
-| `action` | String | The action |
-| `index` | String | The index |
-| `collection` | String | The collection |
-
----
-
-## Return Value
-
-Returns either `allowed`, `denied` or `conditional`.
-
-## Usage
-
-<<< ./snippets/is-action-allowed-1.java
diff --git a/doc/2/core-classes/security/is-action-allowed/snippets/is-action-allowed-1.java b/doc/2/core-classes/security/is-action-allowed/snippets/is-action-allowed-1.java
deleted file mode 100644
index 1eaf8b25..00000000
--- a/doc/2/core-classes/security/is-action-allowed/snippets/is-action-allowed-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle.security.getMyRights(new ResponseListener() {
- @Override
- public void onSuccess(JSONObject[] rights) {
- // Policies is an enum with the following properties:
- // allowed, denied, conditional
- Policies authorization = kuzzle.security.isActionAllowed(rights, "read", "get", "index1", "collection1");
- }
-
- @Override
- public void onError(JSONObject error) {
- // ...
- }
-});
diff --git a/doc/2/core-classes/security/profile/index.md b/doc/2/core-classes/security/profile/index.md
deleted file mode 100644
index 92656560..00000000
--- a/doc/2/core-classes/security/profile/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-code: true
-type: page
-title: profile
-description: Security:profile
----
-
-# profile
-
-Instantiate a new security [Profile](/sdk/java/2/core-classes/profile) object.
-
----
-
-## profile(id, content)
-
-| Arguments | Type | Description |
-| --------- | ----------- | ------------------------- |
-| `id` | string | Unique profile identifier |
-| `content` | JSON Object | Profile content |
-
----
-
-## Return Value
-
-Returns the new security [Profile](/sdk/java/2/core-classes/profile) object.
-
-## Usage
-
-<<< ./snippets/profile-1.java
diff --git a/doc/2/core-classes/security/profile/snippets/profile-1.java b/doc/2/core-classes/security/profile/snippets/profile-1.java
deleted file mode 100644
index 496345f4..00000000
--- a/doc/2/core-classes/security/profile/snippets/profile-1.java
+++ /dev/null
@@ -1,20 +0,0 @@
-
-JSONObject policy1 = new JSONObject()
- .put("roleId", "myrole");
-
-JSONObject policy2 = new JSONObject()
- .put("roleId", "default")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections",new JSONArray().put("foo").put("bar"))
- )
- );
-JSONObject profileDefinition = new JSONObject()
- .put("policies", new JSONArray()
- .put(policy1)
- .put(policy2)
- );
-
-Profile profile = kuzzle.security.profile("myprofile", profileDefinition);
diff --git a/doc/2/core-classes/security/replace-user/index.md b/doc/2/core-classes/security/replace-user/index.md
deleted file mode 100644
index 66afc110..00000000
--- a/doc/2/core-classes/security/replace-user/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: replaceUser
-description: Security:replaceUser
----
-
-# replaceUser
-
-Replaces an existing user.
-
----
-
-## replaceUser(id, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------------------------------------------------------------------ |
-| `id` | string | Unique user identifier |
-| `content` | JSON Object | A plain JSON object representing the user, should contain the mandatory `profileIds` field |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/replace-user-1.java
diff --git a/doc/2/core-classes/security/replace-user/snippets/replace-user-1.java b/doc/2/core-classes/security/replace-user/snippets/replace-user-1.java
deleted file mode 100644
index 42cd6f2b..00000000
--- a/doc/2/core-classes/security/replace-user/snippets/replace-user-1.java
+++ /dev/null
@@ -1,21 +0,0 @@
-
-JSONObject newContent = new JSONObject()
- .put("profileIds", new JSONArray()
- .put("admin")
- )
- .put("firstname", "My Name Is")
- .put("lastname", "Jonas");
-
-kuzzle
- .security
- .replaceUser("User ID", newContent, new ResponseListener() {
- @Override
- public void onSuccess(User user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/role/index.md b/doc/2/core-classes/security/role/index.md
deleted file mode 100644
index aa830dbb..00000000
--- a/doc/2/core-classes/security/role/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-code: true
-type: page
-title: role
-description: Security:role
----
-
-# role
-
-Instantiate a new [Role](/sdk/java/2/core-classes/role) object.
-
----
-
-## role(id, content)
-
-| Arguments | Type | Description |
-| --------- | ----------- | ---------------------- |
-| `id` | string | Unique role identifier |
-| `content` | JSON Object | Role content |
-
----
-
-## Return Value
-
-Returns the new [Role](/sdk/java/2/core-classes/role) object.
-
-## Usage
-
-<<< ./snippets/role-1.java
diff --git a/doc/2/core-classes/security/role/snippets/role-1.java b/doc/2/core-classes/security/role/snippets/role-1.java
deleted file mode 100644
index 8cb273b3..00000000
--- a/doc/2/core-classes/security/role/snippets/role-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-JSONObject roleDefinition = new JSONObject()
- .put("controllers", new JSONObject()
- .put("*", new JSONObject()
- .put("actions", new JSONObject()
- .put("*", true)
- )
- )
- )
-);
-
-Role role = kuzzle.security.role("myrole", roleDefinition);
diff --git a/doc/2/core-classes/security/scroll-profiles/index.md b/doc/2/core-classes/security/scroll-profiles/index.md
deleted file mode 100644
index 15d44150..00000000
--- a/doc/2/core-classes/security/scroll-profiles/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: scrollProfiles
-description: Security:scrollProfiles
----
-
-# scrollProfiles
-
-Scrolls on stored profiles using the provided scroll ID.
-
----
-
-## scrollProfiles(scrollId, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------- |
-| `scrollId` | string | Scroll identifier retrieved from a search query |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the list of fetched security profiles according to the scroll parameters (offset, limit etc.).
-
-## Usage
-
-<<< ./snippets/scroll-profiles-1.java
diff --git a/doc/2/core-classes/security/scroll-profiles/snippets/scroll-profiles-1.java b/doc/2/core-classes/security/scroll-profiles/snippets/scroll-profiles-1.java
deleted file mode 100644
index 8987b747..00000000
--- a/doc/2/core-classes/security/scroll-profiles/snippets/scroll-profiles-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .security
- .scrollProfiles(scrollId, options, new ResponseListener() {
- @Override
- public void onSuccess(SecurityDocumentList response) {
- // called once the scroll action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/security/scroll-users/index.md b/doc/2/core-classes/security/scroll-users/index.md
deleted file mode 100644
index 9d564b97..00000000
--- a/doc/2/core-classes/security/scroll-users/index.md
+++ /dev/null
@@ -1,38 +0,0 @@
----
-code: true
-type: page
-title: scrollUsers
-description: Security:scrollUsers
----
-
-# scrollUsers
-
-Scrolls on stored users using the provided scroll ID.
-
----
-
-## scrollUsers(scrollId, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------- |
-| `scrollId` | string | Scroll identifier retrieved from a search query |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns the list of fetched users according to the scroll parameters (offset, limit etc.).
-
-## Usage
-
-<<< ./snippets/scroll-users-1.java
diff --git a/doc/2/core-classes/security/scroll-users/snippets/scroll-users-1.java b/doc/2/core-classes/security/scroll-users/snippets/scroll-users-1.java
deleted file mode 100644
index 5cc6eef9..00000000
--- a/doc/2/core-classes/security/scroll-users/snippets/scroll-users-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-kuzzle
- .security
- .scrollUsers(scrollId, options, new ResponseListener() {
- @Override
- public void onSuccess(SecurityDocumentList response) {
- // called once the scroll action has been completed
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
- });
diff --git a/doc/2/core-classes/security/search-profiles/index.md b/doc/2/core-classes/security/search-profiles/index.md
deleted file mode 100644
index ca327176..00000000
--- a/doc/2/core-classes/security/search-profiles/index.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-code: true
-type: page
-title: searchProfiles
-description: Security:searchProfiles
----
-
-# searchProfiles
-
-Search for security profiles, optionally returning only those linked to the provided list of security roles.
-
----
-
-## searchProfiles(filters, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `filters` | JSON Object | Search query |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `from` | number | Starting offset | `0` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `scroll` | string | Start a scroll session, with a time to live equals to this parameter's value following the [Elastisearch time format](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/common-options.html#time-units) | `undefined` |
-| `size` | integer | Number of hits to return per page | `10` |
-
----
-
-## Filters
-
-| Filter | Type | Description | Default |
-| ------- | ----- | ------------------------------------------------ | ------- |
-| `roles` | array | Contains an array `roles` with a list of role id | `[]` |
-
----
-
-## Callback Response
-
-Returns a JSON Object
-
-## Usage
-
-<<< ./snippets/search-profiles-1.java
-
-> Callback response:
-
-```json
-{
- "total": 124,
- "profiles": [
- // array of Profile objects
- ],
- // only if a scroll parameter has been provided
- "scrollId": ""
-}
-```
diff --git a/doc/2/core-classes/security/search-profiles/snippets/search-profiles-1.java b/doc/2/core-classes/security/search-profiles/snippets/search-profiles-1.java
deleted file mode 100644
index 8884481a..00000000
--- a/doc/2/core-classes/security/search-profiles/snippets/search-profiles-1.java
+++ /dev/null
@@ -1,35 +0,0 @@
-
-// optional: search only for profiles referring the listed roles
-JSONObject filters = new JSONObject()
- .put("roles", new JSONArray().put("myrole").put("admin"));
-
-// optional: result pagination configuration
-Options options = new Options();
-options.setFrom((long) 0);
-options.setSize((long) 42);
-options.setScroll("1m");
-
-
-kuzzle
- .security
- .searchProfiles(filters, options, new ResponseListener() {
- @Override
- public void onSuccess(SecurityDocumentList profiles) {
- // Contains a profiles list
- for(Profile profile : profiles.getDocuments()) {
-
- }
-
- // Total number of profiles, regardless of pagination
- long total = profiles.getTotal();
-
- // Available only if a "scroll" option has been provided
- String scrollId = profiles.getScroll()
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
-
diff --git a/doc/2/core-classes/security/search-roles/index.md b/doc/2/core-classes/security/search-roles/index.md
deleted file mode 100644
index 00ab2cc7..00000000
--- a/doc/2/core-classes/security/search-roles/index.md
+++ /dev/null
@@ -1,59 +0,0 @@
----
-code: true
-type: page
-title: searchRoles
-description: Security:searchRoles
----
-
-# searchRoles
-
-Search for security roles, optionally returning only the roles giving access to the provided controller names.
-
----
-
-## searchRoles(filters, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ---------------------------------------------------------------------------------------------------- |
-| `filters` | JSON Object | Optionally contains a "controllers" array listing the controller names used to filter searched roles |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Filters
-
-| Filter | Type | Description | Default |
-| ------------- | ----- | --------------------------------------------------------- | ------- |
-| `controllers` | array | retrieve only roles allowing access to the provided names | `[]` |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ---------------------------------- | ------- |
-| `from` | number | Starting offset | `0` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `size` | number |  Number of hits to return per page | `10` |
-
----
-
-## Callback Response
-
-Return a JSON Object
-
-## Usage
-
-<<< ./snippets/search-roles-1.java
-
-> Callback response:
-
-```json
-{
- "total": 124,
- "roles": [
- // array of Role
- ]
-}
-```
diff --git a/doc/2/core-classes/security/search-roles/snippets/search-roles-1.java b/doc/2/core-classes/security/search-roles/snippets/search-roles-1.java
deleted file mode 100644
index 5daed381..00000000
--- a/doc/2/core-classes/security/search-roles/snippets/search-roles-1.java
+++ /dev/null
@@ -1,29 +0,0 @@
-
-// optional: retrieve only roles allowing access to the
-// provided controller names
-JSONObject filter = new JSONObject()
- .put("controllers", new JSONArray()
- .put("document")
- .put("security")
- );
-
-// optional: result pagination configuration
-Options options = new Options();
-options.setFrom((long) 0);
-options.setSize((long) 42);
-options.setScroll("1m");
-
-kuzzle
- .security
- .searchRoles(filter, options, new ResponseListener() {
- @Override
- public void onSuccess(SecurityDocumentList roles) {
- // roles.getDocuments() returns a roles list
- for(Role role : roles.getDocuments()) {
-
- }
-
- // roles.getTotal() returns the number of matched roles, regardless of pagination
- roles.getTotal();
- }
- });
diff --git a/doc/2/core-classes/security/search-users/index.md b/doc/2/core-classes/security/search-users/index.md
deleted file mode 100644
index 146d9e77..00000000
--- a/doc/2/core-classes/security/search-users/index.md
+++ /dev/null
@@ -1,58 +0,0 @@
----
-code: true
-type: page
-title: searchUsers
-description: Security:searchUsers
----
-
-# searchUsers
-
-Return users matching the given filter.
-
----
-
-## searchUsers(filters, [options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------- |
-| `filters` | JSON Object | Filter in [Elasticsearch's Query DSL](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/query-filter-context.html) format |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `from` | number | Starting offset | `0` |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `scroll` | string | Start a scroll session, with a time to live equals to this parameter's value following the [Elastisearch time format](https://www.elastic.co/guide/en/elasticsearch/reference/5.0/common-options.html#time-units) | `undefined` |
-| `size` | number |  Number of hits to return per result page | `10` |
-
-:::info
-To get more information about scroll sessions, please refer to the [API reference documentation](/core/1/api/controllers/document/search).
-:::
-
----
-
-## Callback Response
-
-Return a JSON Object
-
-## Usage
-
-<<< ./snippets/search-users-1.java
-
-> Callback response:
-
-```json
-{
- "total": 124,
- "users": [
- // array of User objects
- ],
- // only if a scroll parameter has been provided
- "scrollId": ""
-}
-```
diff --git a/doc/2/core-classes/security/search-users/snippets/search-users-1.java b/doc/2/core-classes/security/search-users/snippets/search-users-1.java
deleted file mode 100644
index 8acf4610..00000000
--- a/doc/2/core-classes/security/search-users/snippets/search-users-1.java
+++ /dev/null
@@ -1,49 +0,0 @@
-
-JSONObject filter = new JSONObject()
- .put("bool", new JSONObject()
- .put("must", new JSONArray()
- .put(new JSONObject()
- .put("terms", new JSONObject()
- .put("profileIds", new JSONArray().put("anonymous").put("default"))
- )
- )
- .put(new JSONObject()
- .put("geoDistance", new JSONObject()
- .put("distance", "10km")
- .put("pos", new JSONObject()
- .put("lat", 48.8566140)
- .put("lon", 2.352222)
- )
- )
- )
- )
- );
-
-// optional: result pagination configuration
-Options options = new Options();
-options.setFrom((long) 0);
-options.setSize((long) 42);
-options.setScroll("1m");
-
-kuzzle
- .security
- .searchUsers(filters, options, new ResponseListener() {
- @Override
- public void onSuccess(SecurityDocumentList users) {
- // users.getDocuments() returns an users list
- for(User user : users.getDocuments()) {
-
- }
-
- // Total number of profiles, regardless of pagination
- long total = users.getTotal();
-
- // Available only if a "scroll" option has been provided
- String scrollId = users.getScroll()
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/update-credentials/index.md b/doc/2/core-classes/security/update-credentials/index.md
deleted file mode 100644
index 3a973497..00000000
--- a/doc/2/core-classes/security/update-credentials/index.md
+++ /dev/null
@@ -1,49 +0,0 @@
----
-code: true
-type: page
-title: updateCredentials
-description: Security:updateCredentials
----
-
-# updateCredentials
-
-Update the current user's credentials for the specified ``. The credentials to send depend on the authentication plugin and the strategy.
-
----
-
-## updateCredentials(strategy, kuid, credentials, [options], [callback])
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `strategy` | string | Strategy you want to create credentials in |
-| `kuid` | JSON object | User's kuid |
-| `credentials` | JSON object | The credentials |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Optional callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an object with the updated credentials.
-
-## Usage
-
-<<< ./snippets/update-credentials-1.java
-
-> Callback response
-
-```json
-{
- "username": "foo",
- "kuid": ""
-}
-```
diff --git a/doc/2/core-classes/security/update-credentials/snippets/update-credentials-1.java b/doc/2/core-classes/security/update-credentials/snippets/update-credentials-1.java
deleted file mode 100644
index 22c9c3e4..00000000
--- a/doc/2/core-classes/security/update-credentials/snippets/update-credentials-1.java
+++ /dev/null
@@ -1,13 +0,0 @@
-
-JSONObject credentials = new JSONObject().put("username", "foo");
-
-kuzzle.security.updateCredentials("local", "kuid", credentials, new ResponseListener() {
- @Override
- public void onSuccess(JSONObject updatedCredentials) {
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/security/update-profile/index.md b/doc/2/core-classes/security/update-profile/index.md
deleted file mode 100644
index a7d46749..00000000
--- a/doc/2/core-classes/security/update-profile/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: updateProfile
-description: Security:updateProfile
----
-
-# updateProfile
-
-Performs a partial update on an existing profile.
-
----
-
-## updateProfile(id, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ---------------- | ----------------------------------------- |
-| `id` | string | Unique role identifier |
-| `policies` | array of objects | List of policies to apply to this profile |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Return an updated [Profile](/sdk/java/2/core-classes/profile) object.
-
-## Usage
-
-<<< ./snippets/update-profile-1.java
diff --git a/doc/2/core-classes/security/update-profile/snippets/update-profile-1.java b/doc/2/core-classes/security/update-profile/snippets/update-profile-1.java
deleted file mode 100644
index 54da81da..00000000
--- a/doc/2/core-classes/security/update-profile/snippets/update-profile-1.java
+++ /dev/null
@@ -1,27 +0,0 @@
-
-JSONObject[] policies = new JSONObject[]{
- new JSONObject().put("roleId", "myrole"),
- new JSONObject()
- .put("roleId", "default")
- .put("restrictedTo", new JSONArray()
- .put(new JSONObject().put("index", "index1"))
- .put(new JSONObject()
- .put("index", "index2")
- .put("collections", new JSONArray().put("foo").put("bar"))
- )
- )
-};
-
-kuzzle
- .security
- .updateProfile("profile ID", policies, new ResponseListener() {
- @Override
- public void onSuccess(Profile profile) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/update-role/index.md b/doc/2/core-classes/security/update-role/index.md
deleted file mode 100644
index ac73bdf9..00000000
--- a/doc/2/core-classes/security/update-role/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: updateRole
-description: Security:updateRole
----
-
-# updateRole
-
-Performs a partial update on an existing role.
-
----
-
-## updateRole(id, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `id` | string | Unique role identifier |
-| `content` | JSON Object | A plain JSON object representing the role |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an updated [Role](/sdk/java/2/core-classes/role) object.
-
-## Usage
-
-<<< ./snippets/update-role-1.java
diff --git a/doc/2/core-classes/security/update-role/snippets/update-role-1.java b/doc/2/core-classes/security/update-role/snippets/update-role-1.java
deleted file mode 100644
index 17b12ebb..00000000
--- a/doc/2/core-classes/security/update-role/snippets/update-role-1.java
+++ /dev/null
@@ -1,24 +0,0 @@
-
-JSONObject roleDefinition = new JSONObject()
- .put("controllers", new JSONObject()
- .put("*", new JSONObject()
- .put("actions", new JSONObject()
- .put("*", true)
- )
- )
- )
-);
-
-kuzzle
- .security
- .updateRole("Role ID", roleDefinition, new ResponseListener() {
- @Override
- public void onSuccess(Role role) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/update-user/index.md b/doc/2/core-classes/security/update-user/index.md
deleted file mode 100644
index 7b1b305f..00000000
--- a/doc/2/core-classes/security/update-user/index.md
+++ /dev/null
@@ -1,46 +0,0 @@
----
-code: true
-type: page
-title: updateUser
-description: Security:updateUser
----
-
-# updateUser
-
-Performs a partial update on an existing user.
-
----
-
-## updateUser(id, content, [options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `id` | string | Unique user identifier |
-| `content` | JSON Object | A plain JSON object representing the user |
-| `options` | string | (Optional) Optional arguments |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Filter | Type | Description | Default |
-| ---------- | ------- | -------------------------------------------------------------------------------------------------------------------------------- | ----------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-| `refresh` | string | If set to `wait_for`, Kuzzle will wait for the persistence layer to finish indexing (available with Elasticsearch 5.x and above) | `undefined` |
-
----
-
-## Return Value
-
-Returns the `Security` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns an updated [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/update-user-1.java
diff --git a/doc/2/core-classes/security/update-user/snippets/update-user-1.java b/doc/2/core-classes/security/update-user/snippets/update-user-1.java
deleted file mode 100644
index a922b597..00000000
--- a/doc/2/core-classes/security/update-user/snippets/update-user-1.java
+++ /dev/null
@@ -1,18 +0,0 @@
-
-JSONObject newContent = new JSONObject()
- .put("firstname", "My Name Is")
- .put("lastname", "Jonas");
-
-kuzzle
- .security
- .updateUser("User ID", newContent, new ResponseListener() {
- @Override
- public void onSuccess(User user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
- });
diff --git a/doc/2/core-classes/security/user/index.md b/doc/2/core-classes/security/user/index.md
deleted file mode 100644
index ae20fb8b..00000000
--- a/doc/2/core-classes/security/user/index.md
+++ /dev/null
@@ -1,29 +0,0 @@
----
-code: true
-type: page
-title: user
-description: Security:user
----
-
-# user
-
-Instantiates a new [User](/sdk/java/2/core-classes/user) object.
-
----
-
-## user(id, content)
-
-| Arguments | Type | Description |
-| --------- | ----------- | ---------------------- |
-| `id` | string | Unique user identifier |
-| `content` | JSON Object | User content |
-
----
-
-## Return value
-
-Returns the new [User](/sdk/java/2/core-classes/user) object.
-
-## Usage
-
-<<< ./snippets/user-1.java
diff --git a/doc/2/core-classes/security/user/snippets/user-1.java b/doc/2/core-classes/security/user/snippets/user-1.java
deleted file mode 100644
index f6b966e4..00000000
--- a/doc/2/core-classes/security/user/snippets/user-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-JSONObject userContent = new JSONObject()
- // A "profileIds" field is required to bind a user to an existing profile
- .put("profileIds", new JSONArray().put('someProfile'))
- // The "local" authentication strategy requires a password
- .put("password", "a password")
- // You can also set custom fields to your user
- .put("firstname", "John")
- .put("lastname", "Doe");
-
-User user = kuzzle.security.user("", userContent);
diff --git a/doc/2/core-classes/security/validate-credentials/index.md b/doc/2/core-classes/security/validate-credentials/index.md
deleted file mode 100644
index 98b8a83e..00000000
--- a/doc/2/core-classes/security/validate-credentials/index.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-code: true
-type: page
-title: validateCredentials
-description: Security:validateCredentials
----
-
-# validateCredentials
-
->
-
-Validate credentials of user with `kuid` for the specified `strategy`. Resolves to an error if the credentials are invalid.
-
----
-
-## validateCredentials(strategy, credentials, [options], callback)
-
-| Arguments | Type | Description |
-| ------------- | ----------- | ------------------------------------------ |
-| `strategy` | string | Strategy you want to create credentials in |
-| `kuid` | JSON object | User's kuid |
-| `credentials` | JSON object | The credentials |
-| `options` | JSON object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a boolean value if the credentials are valid, otherwise returns an error.
-
-## Usage
-
-<<< ./snippets/validate-credentials-1.java
-
-> Callback response
-
-```json
-true
-```
diff --git a/doc/2/core-classes/security/validate-credentials/snippets/validate-credentials-1.java b/doc/2/core-classes/security/validate-credentials/snippets/validate-credentials-1.java
deleted file mode 100644
index 10d0c439..00000000
--- a/doc/2/core-classes/security/validate-credentials/snippets/validate-credentials-1.java
+++ /dev/null
@@ -1,14 +0,0 @@
-
-JSONObject credentials = new JSONObject().put("username", "bar");
-
-kuzzle.security.validateCredentials("local", "kuid", credentials, new ResponseListener() {
- @Override
- public void onSuccess(Boolean result) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
- // Handle error
- }
-}
diff --git a/doc/2/core-classes/user/add-profile/index.md b/doc/2/core-classes/user/add-profile/index.md
deleted file mode 100644
index dc46fdce..00000000
--- a/doc/2/core-classes/user/add-profile/index.md
+++ /dev/null
@@ -1,40 +0,0 @@
----
-code: true
-type: page
-title: addProfile
-description: User:addProfile
----
-
-# addProfile
-
-Replaces the security profile associated with the user.
-
-:::info
-Updating a user will have no impact until the [create](/sdk/java/2/core-classes/user/create) or [replace](/sdk/java/2/core-classes/user/replace) method is called
-:::
-
----
-
-## addProfile(profileId)
-
-| Arguments | Type | Description |
-| ----------- | ------ | ----------- |
-| `profileId` | string | Profile ID |
-
----
-
-## addProfile(profile)
-
-| Arguments | Type | Description |
-| --------- | ------- | --------------------------------------------------------------------- |
-| `profile` | Profile | An instantiated [Profile](/sdk/java/2/core-classes/profile) object |
-
----
-
-## Return Value
-
-Returns the `User` object.
-
-## Usage
-
-<<< ./snippets/add-profile-1.java
diff --git a/doc/2/core-classes/user/add-profile/snippets/add-profile-1.java b/doc/2/core-classes/user/add-profile/snippets/add-profile-1.java
deleted file mode 100644
index c762ec18..00000000
--- a/doc/2/core-classes/user/add-profile/snippets/add-profile-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-// Updating the profile with a Profile object
-kuzzle
- .security
- .fetchProfile("myprofile", opts, new ResponseListener() {
- @Override
- public void onSuccess(Profile profile) {
- // Can add the profile directly with a Profile object
- user.addProfile(profile);
- }
- });
-
-// Updating the profile with a profile ID
-user.addProfile("myprofile");
diff --git a/doc/2/core-classes/user/constructor/index.md b/doc/2/core-classes/user/constructor/index.md
deleted file mode 100644
index 615b75d7..00000000
--- a/doc/2/core-classes/user/constructor/index.md
+++ /dev/null
@@ -1,42 +0,0 @@
----
-code: true
-type: page
-title: constructor
-description: User:constructor
-order: 1
----
-
-# Constructors
-
-## Instantiates a new User object, which is a representation of a Kuzzle user and is linked to a security [Profile](/sdk/java/2/core-classes/profile).
-
-## User(Security, id, content, [meta])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------- |
-| `Security` | Security | An instantiated Security object |
-| `id` | string | Unique user identifier |
-| `content` | JSON Object | User content |
-| `meta` | JSON Object | User metadata |
-
-**Note:** this constructor won't make any call to Kuzzle.
-
----
-
-## Properties
-
-| Property name | Type | Description | get/set |
-| ------------- | ----------- | ------------------------- | ------- |
-| `content` | JSON object | Raw user content | get |
-| `id` | string | Unique profile identifier | get |
-| `meta` | JSON object | User metadata | get |
-
----
-
-## Return Value
-
-Returns the `User` object.
-
-## Usage
-
-<<< ./snippets/constructor-1.java
diff --git a/doc/2/core-classes/user/constructor/snippets/constructor-1.java b/doc/2/core-classes/user/constructor/snippets/constructor-1.java
deleted file mode 100644
index e8b1866e..00000000
--- a/doc/2/core-classes/user/constructor/snippets/constructor-1.java
+++ /dev/null
@@ -1,15 +0,0 @@
-
-JSONObject userContent = new JSONObject()
- // A "profile" field is required to bind a user to an existing profile
- .put("profileIds", new JSONArray().put("admin"))
- // The "local" authentication strategy requires a password
- .put("password", "secret password")
- // You can also set custom fields to your user
- .put("firstname", "John")
- .put("lastname", "Doe");
-
-// Using the KuzzleSecurity factory:
-User user = kuzzle.security.user("user ID", userContent);
-
-// Or directly with the constructor:
-User user = new User(kuzzle.security, "user ID", userContent);
diff --git a/doc/2/core-classes/user/create/index.md b/doc/2/core-classes/user/create/index.md
deleted file mode 100644
index 5f3d3aec..00000000
--- a/doc/2/core-classes/user/create/index.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-code: true
-type: page
-title: create
-description: User:create
----
-
-# create
-
-Create the user in Kuzzle. Credentials can be created during the process by using [setCredentials](/sdk/java/2/core-classes/user/set-credentials) beforehand.
-
----
-
-## create([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Return Value
-
-Returns the `User` object to allow chaining.
-
----
-
-## Callback Response
-
-Returns a `User` object.
-
-## Usage
-
-<<< ./snippets/create-1.java
diff --git a/doc/2/core-classes/user/create/snippets/create-1.java b/doc/2/core-classes/user/create/snippets/create-1.java
deleted file mode 100644
index d6f7ae27..00000000
--- a/doc/2/core-classes/user/create/snippets/create-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-user.create(new ResponseListener() {
- @Override
- public void onSuccess(User user) {
-
- }
-
- @Override
- public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/user/delete/index.md b/doc/2/core-classes/user/delete/index.md
deleted file mode 100644
index e6b7b030..00000000
--- a/doc/2/core-classes/user/delete/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: delete
-description: User:delete
----
-
-# delete
-
-Deletes the user in Kuzzle.
-
----
-
-## delete([options], [callback])
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ----------------------------------------- |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | (Optional) Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns a `String` containing the id of the deleted user.
-
-## Usage
-
-<<< ./snippets/delete-1.java
diff --git a/doc/2/core-classes/user/delete/snippets/delete-1.java b/doc/2/core-classes/user/delete/snippets/delete-1.java
deleted file mode 100644
index 7386edb3..00000000
--- a/doc/2/core-classes/user/delete/snippets/delete-1.java
+++ /dev/null
@@ -1,11 +0,0 @@
-
-user.delete(new ResponseListener() {
- @Override
- public void onSuccess(String deletedId) {
-
- }
-
- @Override public void onError(JSONObject error) {
-
- }
-});
diff --git a/doc/2/core-classes/user/get-profileids/index.md b/doc/2/core-classes/user/get-profileids/index.md
deleted file mode 100644
index 385f2147..00000000
--- a/doc/2/core-classes/user/get-profileids/index.md
+++ /dev/null
@@ -1,20 +0,0 @@
----
-code: true
-type: page
-title: getProfileids
-description: User:getProfileids
----
-
-# getProfileIds
-
-Returns the list of profile identifiers associated with this user.
-
----
-
-## Return Value
-
-Returns an array of strings, each a profile identifier associated with this user.
-
-## Usage
-
-<<< ./snippets/get-profileids-1.java
diff --git a/doc/2/core-classes/user/get-profileids/snippets/get-profileids-1.java b/doc/2/core-classes/user/get-profileids/snippets/get-profileids-1.java
deleted file mode 100644
index eed4412b..00000000
--- a/doc/2/core-classes/user/get-profileids/snippets/get-profileids-1.java
+++ /dev/null
@@ -1,2 +0,0 @@
-
-String[] profileIds = user.getProfileIds();
diff --git a/doc/2/core-classes/user/get-profiles/index.md b/doc/2/core-classes/user/get-profiles/index.md
deleted file mode 100644
index 43999904..00000000
--- a/doc/2/core-classes/user/get-profiles/index.md
+++ /dev/null
@@ -1,37 +0,0 @@
----
-code: true
-type: page
-title: getProfiles
-description: User:getProfiles
----
-
-# getProfiles
-
-Gets the security [Profile](/sdk/java/2/core-classes/profile) instances linked to the user from Kuzzle's API.
-
----
-
-## getProfiles([options], callback)
-
-| Arguments | Type | Description |
-| ---------- | ----------- | ------------------------------ |
-| `options` | JSON Object | Optional parameters |
-| `callback` | function | Callback handling the response |
-
----
-
-## Options
-
-| Option | Type | Description | Default |
-| ---------- | ------- | --------------------------------- | ------- |
-| `queuable` | boolean | Make this request queuable or not | `true` |
-
----
-
-## Callback Response
-
-Returns an array of security [Profile](/sdk/java/2/core-classes/profile) objects.
-
-## Usage
-
-<<< ./snippets/get-profiles-1.java
diff --git a/doc/2/core-classes/user/get-profiles/snippets/get-profiles-1.java b/doc/2/core-classes/user/get-profiles/snippets/get-profiles-1.java
deleted file mode 100644
index 641a2358..00000000
--- a/doc/2/core-classes/user/get-profiles/snippets/get-profiles-1.java
+++ /dev/null
@@ -1,12 +0,0 @@
-
-user.getProfiles(new ResponseListener