Hi Clinton, I tried to lookup in discovery config and it seems it has the publisher feature but I'm currently experiencing an error in the oauth2 part so I can't fully validate it.
social_core.exceptions.AuthCanceled: Authentication process canceled Thanks again :) On Wednesday, August 15, 2018 at 12:04:16 PM UTC+8, Clinton Blackburn wrote: > > Yeah, it seems you don’t have any subjects associated with your courses. > If you do, they aren’t indexed. > > Publisher should be able to handle this but, again, I don’t know if that’s > officially supported for Open edX. > > Clinton > > On Tue, Aug 14, 2018 at 8:00 PM JP Mateo <[email protected] <javascript:>> > wrote: > >> Hi Clinton, >> >> Here is the raw data: >> >> I added this on */edx/app/edxapp/edx-platform/lms/envs/aws.py* >> >> COURSE_DISCOVERY_FILTERS = [ "start", "subjects", "pacing_type", "org", >> "language", "modes"] >> LANGUAGE_MAP = {'terms': {lang: display for lang, display in >> ALL_LANGUAGES}, 'name': 'Language'} >> COURSE_DISCOVERY_MEANINGS = { >> 'org': { >> 'name': 'Organization', >> }, >> 'modes': { >> 'name': 'Course Type', >> 'terms': { >> 'honor': 'Honor', >> 'verified': 'Verified', >> }, >> }, >> 'language': LANGUAGE_MAP, >> 'pacing_type': 'Availability', >> } >> >> >> >> >> Response from OpenEdx Test Site: >> "facets":{ >> "modes":{ >> "total":10, >> "terms":{ >> "audit":10 >> }, >> "other":0 >> }, >> "language":{ >> "total":10, >> "terms":{ >> "en":10 >> }, >> "other":0 >> }, >> "start":{ >> "total":10, >> "terms":{ >> "2018-07-04T00:00:00+00:00":1, >> "2018-01-01T00:00:00+00:00":3, >> "2018-03-07T05:00:00+00:00":1, >> "2030-01-01T00:00:00+00:00":3, >> "2018-04-05T00:30:00+00:00":1, >> "2018-01-02T00:00:00+00:00":1 >> }, >> "other":0 >> }, >> "subjects":{ >> "total":0, >> "terms":{ >> >> }, >> "other":0 >> }, >> "pacing_type":{ >> "total":0, >> "terms":{ >> >> }, >> "other":0 >> }, >> "org":{ >> "total":10, >> "terms":{ >> "BPI":1, >> "HCX":1, >> "Compliance":1, >> "BPIU":1, >> "AU":4, >> "edX":1, >> "Globe":1 >> }, >> "other":0 >> } >> }, >> "total":10, >> "max_score":1.0, >> "took":227, >> "results":[ >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:HCX+DemoX+2018_T2", >> "data":{ >> "end":"2019-01-31T00:00:00+00:00", >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:HCX+DemoX+2018_T2", >> "number":"DemoX", >> "content":{ >> "short_description":"Lorem Ipsum is simply dummy text of the >> printing and typesetting industry. Lorem Ipsum has been the industry's >> standard dummy text ever since the 1500s, when an unknown printer took a >> galley of type and scrambled it to make a type specimen book. It has >> survived not only five centuries, but also the leap into electronic >> typesetting, remaining essentially unchanged. It was popularised in the >> 1960s with the release of Letraset sheets containing Lorem Ipsum passages, >> and more recently with desktop publishing software like Aldus PageMaker >> including versions of Lorem Ipsum.", >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Prerequisites Add >> information about course prerequisites here. Course Staff Staff Member #1 >> Biography of instructor/staff member #1 Staff Member #2 Biography of >> instructor/staff member #2 Frequently Asked Questions What web browser >> should I use? The Open edX platform works best with current versions of >> Chrome, Firefox or Safari, or with Internet Explorer version 9 and above. >> See our list of supported browsers for the most up-to-date information. >> Question #2 Your answer would be displayed here. ", >> "video":"", >> "number":"DemoX", >> "display_name":"Demo Course" >> }, >> "start":"2018-01-01T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:HCX+DemoX+2018_T2+type@[email protected]", >> "org":"HCX", >> "id":"course-v1:HCX+DemoX+2018_T2" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:Globe+GLB00001+2018Q1", >> "data":{ >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:Globe+GLB00001+2018Q1", >> "number":"GLB00001", >> "content":{ >> "short_description":"Hi!", >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"TEST BY IKE", >> "number":"GLB00001" >> }, >> "start":"2018-01-01T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:Globe+GLB00001+2018Q1+type@asset+block@images_course_image.jpg", >> "org":"Globe", >> "id":"course-v1:Globe+GLB00001+2018Q1" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:AU+EINVESTMENT_102+2018_T2", >> "data":{ >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:AU+EINVESTMENT_102+2018_T2", >> "number":"EINVESTMENT_102", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"Unit Investment Trust Fund eLearning", >> "number":"EINVESTMENT_102" >> }, >> "start":"2018-01-02T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:AU+EINVESTMENT_102+2018_T2+type@[email protected]", >> "org":"AU", >> "id":"course-v1:AU+EINVESTMENT_102+2018_T2" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:BPIU+AMLA101+2018_Q1", >> "data":{ >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:BPIU+AMLA101+2018_Q1", >> "number":"AMLA101", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"Anti-Money Laundering Act", >> "number":"AMLA101" >> }, >> "start":"2030-01-01T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:BPIU+AMLA101+2018_Q1+type@[email protected]", >> "org":"BPIU", >> "id":"course-v1:BPIU+AMLA101+2018_Q1" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:edX+DemoX+Demo_Course", >> "data":{ >> "end":"2018-09-27T00:00:00+00:00", >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:edX+DemoX+Demo_Course", >> "enrollment_start":"2018-01-01T00:00:00+00:00", >> "number":"DemoX", >> "content":{ >> "short_description":"Lorem Ipsum is simply dummy text of the >> printing and typesetting industry. Lorem Ipsum has been the industry's >> standard dummy text ever since the 1500s, when an unknown printer took a >> galley of type and scrambled it to make a type specimen book. It has >> survived not only five centuries, but also the leap into electronic >> typesetting, remaining essentially unchanged. It was popularised in the >> 1960s with the release of Letraset sheets containing Lorem Ipsum passages, >> and more recently with desktop publishing software like Aldus PageMaker >> including versions of Lorem Ipsum.", >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Prerequisites Add >> information about course prerequisites here. Course Staff Staff Member #1 >> Biography of instructor/staff member #1 Staff Member #2 Biography of >> instructor/staff member #2 Frequently Asked Questions What web browser >> should I use? The Open edX platform works best with current versions of >> Chrome, Firefox or Safari, or with Internet Explorer version 9 and above. >> See our list of supported browsers for the most up-to-date information. >> Question #2 Your answer would be displayed here. ", >> "display_name":"Values Orientation Workshop", >> "number":"DemoX" >> }, >> "start":"2018-03-07T05:00:00+00:00", >> >> >> "image_url":"/asset-v1:edX+DemoX+Demo_Course+type@[email protected]", >> "enrollment_end":"2018-09-22T00:00:00+00:00", >> "org":"edX", >> "id":"course-v1:edX+DemoX+Demo_Course" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:AU+EXCELDATAMGT_102+2018_T2", >> "data":{ >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:AU+EXCELDATAMGT_102+2018_T2", >> "number":"EXCELDATAMGT_102", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"Advance Data Management in Excel 2007 >> \u2013eLearning", >> "number":"EXCELDATAMGT_102" >> }, >> "start":"2030-01-01T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:AU+EXCELDATAMGT_102+2018_T2+type@[email protected]", >> "org":"AU", >> "id":"course-v1:AU+EXCELDATAMGT_102+2018_T2" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:Compliance+AMLA101+2018_Q1", >> "data":{ >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:Compliance+AMLA101+2018_Q1", >> "number":"AMLA101", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"AMLA", >> "number":"AMLA101" >> }, >> "start":"2030-01-01T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:Compliance+AMLA101+2018_Q1+type@[email protected]", >> "org":"Compliance", >> "id":"course-v1:Compliance+AMLA101+2018_Q1" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:AU+POLICY_102+2018_T2", >> "data":{ >> "end":"2018-12-22T00:00:00+00:00", >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:AU+POLICY_102+2018_T2", >> "enrollment_start":"2017-12-15T00:30:00+00:00", >> "number":"POLICY_102", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "video":"", >> "number":"POLICY_102", >> "display_name":"Conflict of Interest" >> }, >> "start":"2018-04-05T00:30:00+00:00", >> >> >> "image_url":"/asset-v1:AU+POLICY_102+2018_T2+type@[email protected]", >> "enrollment_end":"2018-08-31T01:30:00+00:00", >> "org":"AU", >> "id":"course-v1:AU+POLICY_102+2018_T2" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:AU+DHS_102+2018_T2", >> "data":{ >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:AU+DHS_102+2018_T2", >> "number":"DHS_102", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"Advance Derivatives and Hedging Solutions", >> "number":"DHS_102" >> }, >> "start":"2018-07-04T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:AU+DHS_102+2018_T2+type@[email protected]", >> "org":"AU", >> "id":"course-v1:AU+DHS_102+2018_T2" >> } >> }, >> { >> "_type":"course_info", >> "score":1.0, >> "_index":"courseware_index", >> "_score":1.0, >> "_id":"course-v1:BPI+CS101+2018Q2", >> "data":{ >> "end":"2018-08-31T00:00:00+00:00", >> "modes":[ >> "audit" >> ], >> "language":"en", >> "course":"course-v1:BPI+CS101+2018Q2", >> "number":"CS101", >> "content":{ >> "overview":" About This Course Include your long course >> description here. The long course description should contain 150-400 words. >> This is paragraph 2 of the long course description. Add more paragraphs as >> needed. Make sure to enclose them in paragraph tags. Requirements Add >> information about the skills and knowledge students need to take this >> course. Course Staff Staff Member #1 Biography of instructor/staff member >> #1 Staff Member #2 Biography of instructor/staff member #2 Frequently Asked >> Questions What web browser should I use? The Open edX platform works best >> with current versions of Chrome, Edge, Firefox, Internet Explorer, or >> Safari. See our list of supported browsers for the most up-to-date >> information. Question #2 Your answer would be displayed here. ", >> "display_name":"Test", >> "number":"CS101" >> }, >> "start":"2018-01-01T00:00:00+00:00", >> >> >> "image_url":"/asset-v1:BPI+CS101+2018Q2+type@asset+block@images_course_image.jpg", >> "org":"BPI", >> "id":"course-v1:BPI+CS101+2018Q2" >> } >> } >> ] >> } >> >> >> Thank you very much for your help. >> >> >> On Wednesday, August 15, 2018 at 10:47:27 AM UTC+8, Clinton Blackburn >> wrote: >>> >>> Please post raw data. Screenshots are not useful for exploring the full >>> schema. >>> >>> Subjects are stored in the Discovery Service. I'm not sure of the state >>> of the Publisher Tool, but edX.org uses it to assign subjects to courses. >>> You might try it or doing so manually through Django admin. You'll then >>> need to refresh your Elasticsearch index. At this point, we are very much >>> off the beaten (documented) path. I haven't worked with this codebase in >>> over 8 months, so I'll have to defer to someone with more recent experience. >>> >>> Clinton >>> >>> >>> On Tue, Aug 14, 2018 at 7:41 PM JP Mateo <[email protected]> wrote: >>> >>>> Hi Clinton, >>>> >>>> >>>> Thanks for the reply. I was able to add the "subjects" in the facets by >>>> adding it in COURSE_DISCOVERY_FILTERS but I think I need to have subjects >>>> field in my data/result response which I can't find where I need to add it. >>>> >>>> >>>> Facets >>>> >>>> [image: Screen Shot 2018-08-15 at 10.33.20 AM.png] >>>> >>>> >>>> >>>> Data/Result >>>> >>>> [image: Screen Shot 2018-08-15 at 10.33.32 AM.png] >>>> >>>> >>>> >>>> On Wednesday, August 15, 2018 at 10:22:21 AM UTC+8, Clinton Blackburn >>>> wrote: >>>>> >>>>> Can you post the response? What are the available facets? If the >>>>> subject facet is available, the issue may be with rendering. >>>>> >>>>> Clinton >>>>> >>>>> >>>>> On Tue, Aug 14, 2018 at 7:12 PM JP Mateo <[email protected]> wrote: >>>>> >>>>>> >>>>>> HI Clinton, >>>>>> >>>>>> I look at the endpoint that LMS is hitting, and it seems it's going >>>>>> to course_discovery but checked the returned response it similar to >>>>>> edx-search >>>>>> >>>>>> [image: Screen Shot 2018-08-15 at 10.10.30 AM.png] >>>>>> >>>>>> >>>>>> >>>>>> Thanks, >>>>>> JP >>>>>> >>>>>> >>>>>> On Wednesday, August 15, 2018 at 6:41:20 AM UTC+8, Clinton Blackburn >>>>>> wrote: >>>>>>> >>>>>>> The search results on edx.org are powered by the Discovery Service ( >>>>>>> https://github.com/edx/course-discovery). I'm not sure if LMS has >>>>>>> been updated to use it instead of edx-search. I'm guessing it hasn't >>>>>>> since >>>>>>> the documentation doesn't mention it. >>>>>>> >>>>>>> Clinton >>>>>>> >>>>>>> On Tuesday, August 14, 2018 at 12:53:16 AM UTC-7, JP Mateo wrote: >>>>>>>> >>>>>>>> Hi, >>>>>>>> >>>>>>>> Anyone knows how to add Subjects in OpenEdx Search. I already tried >>>>>>>> looking at this >>>>>>>> http://edx.readthedocs.io/projects/edx-installing-configuring-and-running/en/latest/configuration/edx_search.html >>>>>>>> >>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fedx.readthedocs.io%2Fprojects%2Fedx-installing-configuring-and-running%2Fen%2Flatest%2Fconfiguration%2Fedx_search.html&sa=D&sntz=1&usg=AFQjCNHwmJbG7IZ0j3w1WKpVV-B2GzHnNg> >>>>>>>> >>>>>>>> but it doesn't tell that much. I already looking at other topics but >>>>>>>> unfortunately, I failed to find one. Hope you can help me guys. Thanks >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> [image: Screen Shot 2018-08-14 at 3.50.57 PM.png] >>>>>>>> >>>>>>>> -- >>>>>> You received this message because you are subscribed to a topic in >>>>>> the Google Groups "General Open edX discussion" group. >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/edx-code/bffbabf5-6e4c-48e5-abce-2bd4a246c922%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/edx-code/bffbabf5-6e4c-48e5-abce-2bd4a246c922%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>> >>>>> >>>>>> -- >>>> You received this message because you are subscribed to a topic in the >>>> Google Groups "General Open edX discussion" group. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/edx-code/dfb9409a-95b3-4541-b498-949ff0a02ec3%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/edx-code/dfb9409a-95b3-4541-b498-949ff0a02ec3%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "General Open edX discussion" group. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/edx-code/3da8145c-f987-49d8-9871-dfdcf3c58731%40googlegroups.com >> >> <https://groups.google.com/d/msgid/edx-code/3da8145c-f987-49d8-9871-dfdcf3c58731%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- > Clinton > -- 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/7a5327b2-d659-42cd-bdb4-7ab35e148210%40googlegroups.com.
