Skip to content

Commit 619b73f

Browse files
Try to create test to reproduce #95
1 parent dd34612 commit 619b73f

11 files changed

+91
-0
lines changed

Diff for: resources/issues/95/01_create-river.bat

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
curl -XPUT "http://localhost:9200/_river/river95/_meta" -d @mongodb-simple-river.json

Diff for: resources/issues/95/02_test-issue-95.bat

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
%MONGO_HOME%\bin\mongo < test-issue-95.js
2+
pause
3+
curl -XGET localhost:9200/mydb95/_search?q=content:test91

Diff for: resources/issues/95/_query-in-chinese.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"query": {
3+
"has_child": {
4+
"type": "book",
5+
"query": {
6+
"filtered": {
7+
"query": {
8+
"match_all": {}
9+
},
10+
"filter": {
11+
"term": {
12+
"publisher": "Herge"
13+
}
14+
}
15+
}
16+
}
17+
}
18+
}
19+
}

Diff for: resources/issues/95/document-1.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{content:"美国留给伊拉克的是个烂摊子吗"}

Diff for: resources/issues/95/file.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"_index":"index","_type":"fulltext","_id":"1","_version":1,"exists":true, "_source" : {content:"美国留给伊拉克的是个烂摊子吗"}}

Diff for: resources/issues/95/index-mapping.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"fulltext": {
3+
"_all": {
4+
"indexAnalyzer": "ik",
5+
"searchAnalyzer": "ik",
6+
"term_vector": "no",
7+
"store": "false"
8+
},
9+
"properties": {
10+
"content": {
11+
"type": "string",
12+
"store": "no",
13+
"term_vector": "with_positions_offsets",
14+
"indexAnalyzer": "ik",
15+
"searchAnalyzer": "ik",
16+
"include_in_all": "true",
17+
"boost": 8
18+
}
19+
}
20+
}
21+
}

Diff for: resources/issues/95/mongodb-simple-river.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"type": "mongodb",
3+
"mongodb": {
4+
"db": "mydb95",
5+
"collection": "mycollection95",
6+
gridfs: "false"
7+
},
8+
"index": {
9+
"name": "mydb95",
10+
"type": "type95"
11+
}
12+
}

Diff for: resources/issues/95/query-in-chinese.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"query": {
3+
"has_child": {
4+
"type": "book",
5+
"query": {
6+
"filtered": {
7+
"query": {
8+
"match_all": {}
9+
},
10+
"filter": {
11+
"term": {
12+
"publisher": "Herge"
13+
}
14+
}
15+
}
16+
}
17+
}
18+
}
19+
}

Diff for: resources/issues/95/test-chinese.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"title": "中华料理 Chinese Cuisine",
3+
"tags": ["中国", "食物", "Chinese", "food"],
4+
"content": "中国菜很好吃。"
5+
}

Diff for: resources/issues/95/test-issue-95.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
use mydb95
2+
var o =
3+
{
4+
"title": "中华料理 Chinese Cuisine",
5+
"tags": ["中国", "食物", "Chinese", "food"],
6+
"content": "中国菜很好吃。"
7+
}
8+
db.mycollec95.save(o)

Diff for: resources/issues/95/typechinese-1.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"_index":"testindex","_type":"typechinese","_id":"1","_version":1,"exists":true, "_source" : { "title": "中华料理 Chinese Cuisine", "tags": ["中国", "食物", "Chinese", "food"], "content": "中国菜很好吃。"}}

0 commit comments

Comments
 (0)