-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not getting bulk.json #1
Comments
I guess that the folder where the json files are supposed to be is empty. |
Yes it was. |
Hi 00aixxia00, It's been a while since we worked on this assignment. I believe the latter error might be due to a different version of elastic. At the time we did this assignment we used Elastic Search 5.6. According to this thread: https://stackoverflow.com/questions/47544966/elasticsearch-content-type-header-application-x-www-form-urlencoded-is-not-s it has to do with Elastic Search 6.0. Do you happen to be using this new version? Edit: So according to that thread, you could replace line 56 of push_to_server.py into: Let met know if this solves your problem! |
Yes this works now, thank you :) still have some problems: elasticsearch.exceptions.RequestError: RequestError(400, 'search_phase_execution_exception', 'field value function must not produce negative scores, but got: [-0.30000000447034836] for field value: [-3.0]') and ERROR in app: Exception on /posthandler [POST] |
Sounds like there is a negative float somewhere. |
{'TEXT': 'alcohol', 'CATEGORY': ['lifehacks'], 'EXCLUDE': [], 'DATE': None, 'SIZE': 10, 'SHOWCLOUD': False, 'DATETYPE': None} and if itype in alc i am getting: {'TEXT': 'alc', 'CATEGORY': ['lifehacks'], 'EXCLUDE': [], 'DATE': None, 'SIZE': 10, 'SHOWCLOUD': False, 'DATETYPE': None} |
You can try printing results['hits']['total'] as it seems that the value there is a dict instead of an int. Probably that is also version related. Perhaps you need further unpacking there. |
Hi,
nice project !
but..
when i try running push_to_server.py I get this message:
bulk0.json
{"error":{"root_cause":[{"type":"parse_exception","reason":"request body is required"}],"type":"parse_exception","reason":"request body is required"},"status":400}
and if I look at my bulk.json it is empty. can you help me?
The text was updated successfully, but these errors were encountered: