Default Search-box in LMS not able to apply

42 views
Skip to first unread message

Chandrashekhar Patil

unread,
May 15, 2018, 7:51:56 AM5/15/18
to General Open edX discussion
Hello All,

I am trying to apply Default-Search box in LMS page. My installation is Devstack ginkgo2.0 
I followed the doc on "readthedocs" for Search-box. Below is result which shows different versions of programs:

ubuntu@ip-192-168-2-248:~$ pip freeze | grep pymongo
pymongo==3.6.1
ubuntu@ip-192-168-2-248:~$ pip freeze | grep Django
Django==1.11.13
ubuntu@ip-192-168-2-248:~$ pip freeze | grep pytz
pytz==2018.4
ubuntu@ip-192-168-2-248:~$ pip freeze | grep Django elasticsearch
grep: elasticsearch: No such file or directory
ubuntu@ip-192-168-2-248:~$ pip freeze | grep elasticsearch
django-elasticsearch==0.5
elasticsearch==6.2.0 
ubuntu@ip-192-168-2-248:~$


I added following additional settings in lms.env.json:

"ENABLE_COURSEWARE_SEARCH":true,
"ENABLE_DASHBOARD_SEARCH":true,
"ENABLE_COURSE_DISCOVERY":true,
"SEARCH_ENGINE":"search.elastic.ElasticSearchEngine",
"ENABLE_COURSEWARE_INDEX":true,
"ENABLE_LIBRARY_INDEX":true

But the Search box is not displaying in LMS. I have used theme also. I have used index theme which changes the gray background of LMS
Let me know if all versions of programs are correct or not?
Also let me know where i am going wrong.

Mahyar Damavand

unread,
May 15, 2018, 9:53:00 AM5/15/18
to edx-...@googlegroups.com
I have enabled edx-search about 2 years ago. The latest open edx version was dogwood that time.
  • Try to check log files and look for any error.
  • Disable your theme and check if the problem is from your changes.
  • check if you can see search box in http://YOURLMSADDRESS/courses
Good luck



--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/f600b0f6-1c24-40bd-90b3-57a8a6df1cee%40googlegroups.com.

Chandrashekhar Patil

unread,
May 15, 2018, 12:02:45 PM5/15/18
to edx-...@googlegroups.com
Hello Mahyar,

Thanks for reply.I tried your 2nd and 3rd steps but no luck.
Where to check log file?



Regards,
Chandrashekhar Patil

Mahyar Damavand

unread,
May 16, 2018, 1:55:01 AM5/16/18
to edx-...@googlegroups.com
I was hoping you get your answer from those 2. now double check if you have added those settings in their proper place.
for example "ENABLE_COURSEWARE_INDEX" and "ENABLE_LIBRARY_INDEX" should be added to cms.env.json under "FEATURES".
you can find many logs under /edx/var/log/ . the most useful reports I usualy use can be found by:
sudo tail -f /edx/var/log/{supervisor,lms,cms}/*log
good luck


Reply all
Reply to author
Forward
0 new messages