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

Rejecting mapping update to [stocksight] as the final mapping would have more than 1 type: #4

Closed mxmxxt closed 5 years ago

mxmxxt commented 5 years ago

2018-12-12 11:32:06,850 [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} 2018-12-12 11:32:06,850 [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]')

Also occurs when trying to scrape the newsheadlines

Elasticsearch 6.5.3 Python 3.6.6

n0m4d50u1 commented 5 years ago

what was the fix to this issue?

shirosaidev commented 5 years ago

I think he was using ES 6 which isn't supported, has to be ES 5.6.x

n0m4d50u1 commented 5 years ago

Ok, Thanks for the quick reply and it's an awesome job you did!