elasticsearch

35 views
Skip to first unread message

jauzzz

unread,
Oct 27, 2017, 10:37:40 AM10/27/17
to General Open edX discussion
Hi,

I'm trying to find out the workflow of course filter (refine).




Up to now, i have already know:

When i click facets option(filter field rightside), course get searched via elasticsearch("search.elastic.ElasticSearchEngine") and refresh page via ajax,

and here is some program log.
    
    i.   [elasticsearch] base.py:49 - HEAD http://localhost:9200/courseware_index [status:200 request:0.003s]
    ii.  [elasticsearch] base.py:49 - GET http://localhost:9200/courseware_index/course_info/_search?from=0&size=20 [status:200 request:0.005s]
    iii. "POST /search/course_discovery/ HTTP/1.1" 200 33034

So, i checked 9200 port and it's elasticsearch and found that filter bar initial from search response.

If search response contains subject field(want to filter course by subject like math、cs), so it can shows subject facets on filter bar.

Finally, what i need is modify response of  "/search/course_discovery/ HTTP/1.1"
But it seems did not appear at edx-platform subject, can anybody give some advice?


Thanks in advance and sorry for my poor english.

Reply all
Reply to author
Forward
0 new messages