-
Notifications
You must be signed in to change notification settings - Fork 215
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
b482776
commit 5d70e12
Showing
8 changed files
with
74 additions
and
15 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,4 @@ | ||
curl -XPUT "http://localhost:9200/mydb105" -d @disabled-mapping.json | ||
curl -XPUT "http://localhost:9200/mydb105/document/_mapping" -d @custom-mapping.json | ||
pause | ||
curl -XPUT "http://localhost:9200/_river/river105/_meta" -d @mongodb-river-simple.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,7 @@ | ||
%MONGO_HOME%\bin\mongo < test-issue-105.js | ||
pause | ||
curl -XGET localhost:9200/mydb105/_search?pretty=true&q=firstName:John | ||
pause | ||
%MONGO_HOME%\bin\mongo < drop-collection-105.js | ||
pause | ||
curl -XGET localhost:9200/mydb105/_mapping?pretty=true |
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 @@ | ||
{ | ||
"document": { | ||
"properties": { | ||
"firstName": { | ||
"type": "string" | ||
}, | ||
"lastName": { | ||
"type": "string" | ||
}, | ||
"nickName": { | ||
"type": "string", "index":"not_analyzed" | ||
}, | ||
"creationDate": { | ||
"type": "date", | ||
"format": "dateOptionalTime" | ||
} | ||
} | ||
} | ||
} |
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 @@ | ||
{ | ||
"index.mapper.dynamic": false | ||
} |
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,2 @@ | ||
use mydb105 | ||
db.document.drop() |
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,14 @@ | ||
{ | ||
"type": "mongodb", | ||
"mongodb": { | ||
"db": "mydb105", | ||
"collection": "document", | ||
"options": { | ||
"drop_collection": true | ||
} | ||
}, | ||
"index": { | ||
"name": "mydb105", | ||
"type": "document" | ||
} | ||
} |
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,10 @@ | ||
use mydb105 | ||
var o = | ||
{ | ||
"firstName": "John", | ||
"lastName": "Doe", | ||
"nickName": "The Boss", | ||
"creationDate": "2013-06-11T12:00:00.0000-04:00" | ||
} | ||
|
||
db.document.save(o) |
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
5d70e12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Richard Louapre » elasticsearch-river-mongodb #57 UNSTABLE
Looks like this commit caused a build failure
(what's this?)