Skip to content

Elasticsearch not working in local installation #3803

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

Closed
irkartik opened this issue Mar 15, 2018 · 13 comments
Closed

Elasticsearch not working in local installation #3803

irkartik opened this issue Mar 15, 2018 · 13 comments
Labels
Needed: documentation Documentation is required

Comments

@irkartik
Copy link
Contributor

I am using readthedocs in my localhost but the problem here is that the search feature is not working and throws an exception everytime I search something.

Elasticsearch version 5.6.8 and i think it might be an issue related to the version of elasticsearch used. It would be great if the version to be installed shall be included into the installation documentation too.

Request Method: GET

Request URL: http://localhost:8000/search/?q=hello

Django version: 1.9.12

Exception Type: RequestError

Exception Value: TransportError(400, u'parsing_exception')

Exception Location: /home/raj/READTHEDOCS/venv/lib/python2.7/site-packages/elasticsearch/connection/base.py in _raise_error, line 105

Python Executable: /home/raj/READTHEDOCS/venv/bin/python

Python Version: 2.7.14

@RichardLitt RichardLitt added Bug A bug Needed: replication Bug replication is required labels Mar 15, 2018
@xrmx
Copy link
Contributor

xrmx commented Mar 18, 2018

You should use a 1.x version of elasticsearch, I think 1.3.x is the one that should work. 1.5.2 did not work for me.

@xrmx
Copy link
Contributor

xrmx commented Mar 18, 2018

Also see #3697

@irkartik
Copy link
Contributor Author

Thank you @xrmx .
I downgraded the elasticsearch to version 1.3.8 and run python manage.py reindex_elasticsearch to make it running.

@stsewd
Copy link
Member

stsewd commented Mar 22, 2018

@rajujha373 @xrmx would be awesome if you write a guide of how to make elastic search woking. Maybe under https://docs.readthedocs.io/en/latest/guides/index.html or on the Developer Documentation toctree.

@xrmx
Copy link
Contributor

xrmx commented Mar 22, 2018

@stsewd I'll gladly write one once #3787 is merged :)

@RichardLitt
Copy link
Member

Let's keep this open until there's a guide PR to close it, then. :)

@RichardLitt RichardLitt reopened this Mar 22, 2018
@humitos humitos added the Needed: documentation Documentation is required label Mar 22, 2018
@irkartik
Copy link
Contributor Author

@RichardLitt @stsewd Shall I write the guide for this then? @xrmx can update the guide once #3787 is merged :)

@stsewd
Copy link
Member

stsewd commented Mar 23, 2018

@rajujha373 I'm not the one to say it, but looks like the PR that #3787 is based on (#3373) was marked as blocked a couple months ago

screenshot-2018-3-22 upgrade search app to elastic search 5 4 by ericholscher pull request 3373 rtfd readthedocs org

So, I think is is safe to write the guide now.

@humitos what do you think?

@humitos
Copy link
Member

humitos commented Mar 23, 2018

I don't know. I'd wait for Eric to reply --who is the one that originally started this work.

You can start writting the guide, and then just update a couple of command/change the number of version and that's it.

@irkartik
Copy link
Contributor Author

Cool @humitos , I am writing the guide then

@stsewd
Copy link
Member

stsewd commented Jun 14, 2018

A guide was written in #3881

@stsewd stsewd closed this as completed Jun 14, 2018
@jibunzel
Copy link

Why did this guide disappear in rtd? I have been having issues with my elasticsearch not working for searching files and this guide would be helpful.

@dojutsu-user
Copy link
Member

@jibunzel
Previous guide was removed because it got outdated.
You can find the new guide here: https://docs.readthedocs.io/en/latest/development/search.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needed: documentation Documentation is required
Projects
None yet
Development

No branches or pull requests

7 participants