Skip to content

Instantly share code, notes, and snippets.

@brianV
Created December 29, 2016 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianV/be00761436f219efb8f057e42838e13f to your computer and use it in GitHub Desktop.
Save brianV/be00761436f219efb8f057e42838e13f to your computer and use it in GitHub Desktop.
Elastic import where GET API is not always returning the most recent revision
Note how in the document below, successive calls to getDocument() (which uses the GET API) return the same
version of the document despite new versions being indexed with addDocument().
[2016-12-29 10:43:46] app.INFO: Elastica version check: getDocument() called. Version 52 of 1:69 returned [] []
[2016-12-29 10:43:47] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:47] app.INFO: Elastica version check: getDocument() called. Version 52 of 1:69 returned [] []
[2016-12-29 10:43:47] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:47] app.INFO: Elastica version check: getDocument() called. Version 52 of 1:69 returned [] []
[2016-12-29 10:43:47] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:48] app.INFO: Elastica version check: getDocument() called. Version 55 of 1:69 returned [] []
[2016-12-29 10:43:48] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:48] app.INFO: Elastica version check: getDocument() called. Version 55 of 1:69 returned [] []
[2016-12-29 10:43:48] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:49] app.INFO: Elastica version check: getDocument() called. Version 55 of 1:69 returned [] []
[2016-12-29 10:43:49] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:49] app.INFO: Elastica version check: getDocument() called. Version 55 of 1:69 returned [] []
[2016-12-29 10:43:49] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:50] app.INFO: Elastica version check: getDocument() called. Version 59 of 1:69 returned [] []
[2016-12-29 10:43:50] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:50] app.INFO: Elastica version check: getDocument() called. Version 59 of 1:69 returned [] []
[2016-12-29 10:43:50] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:51] app.INFO: Elastica version check: getDocument() called. Version 59 of 1:69 returned [] []
[2016-12-29 10:43:51] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:51] app.INFO: Elastica version check: getDocument() called. Version 59 of 1:69 returned [] []
[2016-12-29 10:43:51] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:51] app.INFO: Elastica version check: getDocument() called. Version 63 of 1:69 returned [] []
[2016-12-29 10:43:52] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:52] app.INFO: Elastica version check: getDocument() called. Version 63 of 1:69 returned [] []
[2016-12-29 10:43:52] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:52] app.INFO: Elastica version check: getDocument() called. Version 63 of 1:69 returned [] []
[2016-12-29 10:43:52] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:53] app.INFO: Elastica version check: getDocument() called. Version 63 of 1:69 returned [] []
[2016-12-29 10:43:53] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:53] app.INFO: Elastica version check: getDocument() called. Version 63 of 1:69 returned [] []
[2016-12-29 10:43:53] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:53] app.INFO: Elastica version check: getDocument() called. Version 68 of 1:69 returned [] []
[2016-12-29 10:43:54] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:54] app.INFO: Elastica version check: getDocument() called. Version 68 of 1:69 returned [] []
[2016-12-29 10:43:54] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:54] app.INFO: Elastica version check: getDocument() called. Version 68 of 1:69 returned [] []
[2016-12-29 10:43:54] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:55] app.INFO: Elastica version check: getDocument() called. Version 68 of 1:69 returned [] []
[2016-12-29 10:43:55] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:55] app.INFO: Elastica version check: getDocument() called. Version 68 of 1:69 returned [] []
[2016-12-29 10:43:55] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:55] app.INFO: Elastica version check: getDocument() called. Version 73 of 1:69 returned [] []
[2016-12-29 10:43:56] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:56] app.INFO: Elastica version check: getDocument() called. Version 73 of 1:69 returned [] []
[2016-12-29 10:43:56] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:56] app.INFO: Elastica version check: getDocument() called. Version 73 of 1:69 returned [] []
[2016-12-29 10:43:57] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:57] app.INFO: Elastica version check: getDocument() called. Version 73 of 1:69 returned [] []
[2016-12-29 10:43:57] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:57] app.INFO: Elastica version check: getDocument() called. Version 73 of 1:69 returned [] []
[2016-12-29 10:43:57] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:58] app.INFO: Elastica version check: getDocument() called. Version 78 of 1:69 returned [] []
[2016-12-29 10:43:58] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:58] app.INFO: Elastica version check: getDocument() called. Version 78 of 1:69 returned [] []
[2016-12-29 10:43:58] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:59] app.INFO: Elastica version check: getDocument() called. Version 78 of 1:69 returned [] []
[2016-12-29 10:43:59] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:43:59] app.INFO: Elastica version check: getDocument() called. Version 78 of 1:69 returned [] []
[2016-12-29 10:43:59] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:00] app.INFO: Elastica version check: getDocument() called. Version 82 of 1:69 returned [] []
[2016-12-29 10:44:00] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:00] app.INFO: Elastica version check: getDocument() called. Version 82 of 1:69 returned [] []
[2016-12-29 10:44:00] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:00] app.INFO: Elastica version check: getDocument() called. Version 82 of 1:69 returned [] []
[2016-12-29 10:44:01] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:01] app.INFO: Elastica version check: getDocument() called. Version 82 of 1:69 returned [] []
[2016-12-29 10:44:01] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:01] app.INFO: Elastica version check: getDocument() called. Version 86 of 1:69 returned [] []
[2016-12-29 10:44:02] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:02] app.INFO: Elastica version check: getDocument() called. Version 86 of 1:69 returned [] []
[2016-12-29 10:44:02] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:03] app.INFO: Elastica version check: getDocument() called. Version 86 of 1:69 returned [] []
[2016-12-29 10:44:03] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:03] app.INFO: Elastica version check: getDocument() called. Version 86 of 1:69 returned [] []
[2016-12-29 10:44:03] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:04] app.INFO: Elastica version check: getDocument() called. Version 90 of 1:69 returned [] []
[2016-12-29 10:44:04] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:04] app.INFO: Elastica version check: getDocument() called. Version 90 of 1:69 returned [] []
[2016-12-29 10:44:05] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:05] app.INFO: Elastica version check: getDocument() called. Version 90 of 1:69 returned [] []
[2016-12-29 10:44:05] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:05] app.INFO: Elastica version check: getDocument() called. Version 93 of 1:69 returned [] []
[2016-12-29 10:44:06] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:06] app.INFO: Elastica version check: getDocument() called. Version 93 of 1:69 returned [] []
[2016-12-29 10:44:06] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:07] app.INFO: Elastica version check: getDocument() called. Version 93 of 1:69 returned [] []
[2016-12-29 10:44:07] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
[2016-12-29 10:44:07] app.INFO: Elastica version check: getDocument() called. Version 93 of 1:69 returned [] []
[2016-12-29 10:44:08] app.INFO: Elastica version check: Called addDocument() for 1:69 [] []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment