-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd34612
commit 619b73f
Showing
11 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{content:"美国留给伊拉克的是个烂摊子吗"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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:"美国留给伊拉克的是个烂摊子吗"}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"title": "中华料理 Chinese Cuisine", | ||
"tags": ["中国", "食物", "Chinese", "food"], | ||
"content": "中国菜很好吃。" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": "中国菜很好吃。"}} |
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