-
Notifications
You must be signed in to change notification settings - Fork 19
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
BulkIndexError when search_index --update
#146
Comments
Did that index already exist before you tried using bungie search on it? On Tue, Jan 26, 2016, 07:08 Jiyda Mint Moussa notifications@github.com
|
I was using django-haystack before but I cleared that index. The only index I have now is |
Okay. Odd. And the id on your model is definitely an integer with no null, On Tue, Jan 26, 2016, 07:51 Jiyda Mint Moussa notifications@github.com
|
my ProgramManager is existing code I had before, doesn't really do anything related to search. Any pointers on how I would debug the issue? |
If I recall correctly (I haven't changed how bungie search is used in To debug, I'd have a look at the Program Manager and see how the ID field On Tue, Jan 26, 2016, 08:14 Jiyda Mint Moussa notifications@github.com
|
I just changed the mapping of _id to string instead of integer and it worked, is that going to break other things? |
No, it should not break anything if the field is indeed an integer and I'll take the code you posted to attempt to create a test case and see On Tue, Jan 26, 2016, 12:01 Jiyda Mint Moussa notifications@github.com
|
I removed the ProgramManager and still was getting the error. It seems that the ES bulk method was expecting the mapping of _id to be string not an integer for some reason, since I tried the following in python console and it fails with _id as an integer bulk_index(es_instance, data, index=index_name, doc_type=doc_type, raise_on_error=True) You can check the bulk api, the _id is also provided as a string. I really appreciate your support. I am using it now and everything seems to work fine so far. |
I am unable to index my models.
My model:
My index
When I run
./manage.py search_index --update
My mapping
The text was updated successfully, but these errors were encountered: