shirosaidev / stocksight

Stock market analyzer and predictor using Elasticsearch, Twitter, News headlines and Python natural language processing and sentiment analysis
https://shirosaidev.github.io/stocksight/
Apache License 2.0
2.12k stars 463 forks source link

Unable to load stock price #10

Closed anshulpathak closed 5 years ago

anshulpathak commented 5 years ago

Hi,

Amazing idea!

But While running stock price, it is not adding data to stocksight index and throwing below error

2019-03-17 19:38:38,731 [DEBUG][elasticsearch] < {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Rejecting mapping update to [stocksight] as the final mapping would have more than 1 type: [tweet, stock]"}],"type":"illegal_argument_exception","reason":"Rejecting mapping update to [stocksight] as the final mapping would have more than 1 type: [tweet, stock]"},"status":400} 2019-03-17 19:38:38,731 [ERROR][stocksight] Exception: can't get stock data, trying again later, reason is TransportError(400, 'illegal_argument_exception', 'Rejecting mapping update to [stocksight] as the final mapping would have more than 1 type: [tweet, stock]')

Could you please help me to fix it.

Thanks, Anshul

shirosaidev commented 5 years ago

Requires Elasticsearch 5.x, I think you are using ES 6 which got rid of field mapping types.