node.js - elasticsearch node client using mget on index alias bringing back docs not in alias -


i using node js client es.

i doing mget using alias index field , not actual index. works in sense brings results 1 of documents not in alias in underlying index i.e. should fail alias test , not come come in result is.

itemids = ['3504479-4-41','3504700-4-41'];//test, second id not in alias esclient.mget({      index: 'live_articles',      _source: ['id','itemtypeid','headline','itemurl','startdate','summary', 'onlinestatus'],             body: {ids: itemids}         }, function (err, resp) {             var items = [];             console.log(resp.docs);         }); 

does mget in usage instance ignore conditions of alias , use alias index?

i'm afraid hitting issue: https://github.com/elasticsearch/elasticsearch/issues/3861.

an alias can hold filter, used filter search results, default filter. tricky part when use api (or multi_get), implies real-time , not executing search id, can done against transaction log if document not yet available search in lucene index (in case refresh has not happened yet). means in case filter ignored, using filter imply executing search, cause lose real-timeness of apis.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -