Skip to content

Commit

Permalink
Try to create test to reproduce #95
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwilly98 committed Jun 24, 2013
1 parent dd34612 commit 619b73f
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 0 deletions.
1 change: 1 addition & 0 deletions resources/issues/95/01_create-river.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
curl -XPUT "http://localhost:9200/_river/river95/_meta" -d @mongodb-simple-river.json
3 changes: 3 additions & 0 deletions resources/issues/95/02_test-issue-95.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
%MONGO_HOME%\bin\mongo < test-issue-95.js
pause
curl -XGET localhost:9200/mydb95/_search?q=content:test91
19 changes: 19 additions & 0 deletions resources/issues/95/_query-in-chinese.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"query": {
"has_child": {
"type": "book",
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"term": {
"publisher": "Herge"
}
}
}
}
}
}
}
1 change: 1 addition & 0 deletions resources/issues/95/document-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{content:"美国留给伊拉克的是个烂摊子吗"}
1 change: 1 addition & 0 deletions resources/issues/95/file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_index":"index","_type":"fulltext","_id":"1","_version":1,"exists":true, "_source" : {content:"美国留给伊拉克的是个烂摊子吗"}}
21 changes: 21 additions & 0 deletions resources/issues/95/index-mapping.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"fulltext": {
"_all": {
"indexAnalyzer": "ik",
"searchAnalyzer": "ik",
"term_vector": "no",
"store": "false"
},
"properties": {
"content": {
"type": "string",
"store": "no",
"term_vector": "with_positions_offsets",
"indexAnalyzer": "ik",
"searchAnalyzer": "ik",
"include_in_all": "true",
"boost": 8
}
}
}
}
12 changes: 12 additions & 0 deletions resources/issues/95/mongodb-simple-river.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "mongodb",
"mongodb": {
"db": "mydb95",
"collection": "mycollection95",
gridfs: "false"
},
"index": {
"name": "mydb95",
"type": "type95"
}
}
19 changes: 19 additions & 0 deletions resources/issues/95/query-in-chinese.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"query": {
"has_child": {
"type": "book",
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"term": {
"publisher": "Herge"
}
}
}
}
}
}
}
5 changes: 5 additions & 0 deletions resources/issues/95/test-chinese.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"title": "中华料理 Chinese Cuisine",
"tags": ["中国", "食物", "Chinese", "food"],
"content": "中国菜很好吃。"
}
8 changes: 8 additions & 0 deletions resources/issues/95/test-issue-95.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
use mydb95
var o =
{
"title": "中华料理 Chinese Cuisine",
"tags": ["中国", "食物", "Chinese", "food"],
"content": "中国菜很好吃。"
}
db.mycollec95.save(o)

This comment has been minimized.

Copy link
@benmccann

benmccann Sep 24, 2013

Collaborator

this is broken since it uses mycollec95 and mycollection95 was specified in mongodb-simple-river.json. i've submitted a pull request to fix it: #130

1 change: 1 addition & 0 deletions resources/issues/95/typechinese-1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"_index":"testindex","_type":"typechinese","_id":"1","_version":1,"exists":true, "_source" : { "title": "中华料理 Chinese Cuisine", "tags": ["中国", "食物", "Chinese", "food"], "content": "中国菜很好吃。"}}

0 comments on commit 619b73f

Please sign in to comment.