Sfoglia il codice sorgente

Cleanup some docs

Mark one `// NOTCONSOLE`, mark another `[source,painless]`, and
another `// TESTRESPONSE` and fix a bug in it.
Nik Everett 9 anni fa
parent
commit
3fe42beb64

+ 1 - 3
docs/java-api/query-dsl/script-query.asciidoc

@@ -14,7 +14,7 @@ QueryBuilder qb = scriptQuery(
 
 
 If you have stored on each data node a script named `myscript.painless` with:
 If you have stored on each data node a script named `myscript.painless` with:
 
 
-[source,js]
+[source,painless]
 --------------------------------------------------
 --------------------------------------------------
 doc['num1'].value > params.param1
 doc['num1'].value > params.param1
 --------------------------------------------------
 --------------------------------------------------
@@ -35,5 +35,3 @@ QueryBuilder qb = scriptQuery(
 <2> Script type: either `ScriptType.FILE`, `ScriptType.INLINE` or `ScriptType.INDEXED`
 <2> Script type: either `ScriptType.FILE`, `ScriptType.INLINE` or `ScriptType.INDEXED`
 <3> Scripting engine
 <3> Scripting engine
 <4> Parameters as a `Map` of `<String, Object>`
 <4> Parameters as a `Map` of `<String, Object>`
-
-

+ 2 - 1
docs/plugins/analysis-kuromoji.asciidoc

@@ -474,10 +474,11 @@ The above request returns:
     "start_offset" : 5,
     "start_offset" : 5,
     "end_offset" : 8,
     "end_offset" : 8,
     "type" : "word",
     "type" : "word",
-    "position" : 3
+    "position" : 2
   } ]
   } ]
 }
 }
 --------------------------------------------------
 --------------------------------------------------
+// TESTRESPONSE
 
 
 [[analysis-kuromoji-number]]
 [[analysis-kuromoji-number]]
 ===== `kuromoji_number` token filter
 ===== `kuromoji_number` token filter

+ 1 - 1
docs/python/index.asciidoc

@@ -35,6 +35,7 @@ It can be installed with pip:
 ------------------------------------
 ------------------------------------
 pip install elasticsearch
 pip install elasticsearch
 ------------------------------------
 ------------------------------------
+// NOTCONSOLE
 
 
 === Versioning
 === Versioning
 
 
@@ -124,4 +125,3 @@ distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 See the License for the specific language governing permissions and
 limitations under the License.
 limitations under the License.
-