-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Page index fails to build unless PageIndex#put_mapping called explicitly #1045
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
Comments
Aye. This should be better documented. Would accept a PR adding some info about it to the install docs. |
Not sure how to fix this yet, but I found that my local installation of RTD fails when trying to build the elasticsearch index for Running this command fails since it build all the
If I select manually what project I want to build I see that all of the versions are properly indexed by elasticsearch but the
Output log:
|
I'm removing the |
Maybe we can close this in favor of #4183 |
On a local install of readthedocs, I must explicitly call PageIndex#put_mapping in order for pages to index properly in elasticsearch. Initially I was only able to see the status code for the bulk_import statement in readthedocs/search/indexes.py:Index#bulk_index:
After modifying elasticsearch/connection/http_urllib3.py to log the response body, I got this:
ElasticSearch version: 1.3.2
Running the script found in the elastic search setup of the documentation solves the issue. If this index setup is considered a necessary step, it might make sense to add it as an additional management command to the 'core' app. Another option might be to put the index mappings automatically, but I'm not sure where the best place to do that would be.
The text was updated successfully, but these errors were encountered: