Search notes not working

Hello everyone,

I have enabled notes feature for one of my course and added several notes. whenever i try to search any note, it says No results found for “When you take”. Please try searching again.
Below are the logs for notes search via elasticsearch:

params----------- {‘user’: ‘5c10f66f2d6390b70662c914aae7ef79’, ‘course_id’: ‘course-v1:edX+DemoX+Demo_Course’, ‘page’: ‘1’, ‘page_size’: ‘25’, ‘text’: ‘When you take’, ‘highlight’: ‘True’}
2023-02-15 12:31:45,825 DEBUG 10 [urllib3.connectionpool] connectionpool.py:227 - Starting new HTTP connection (1): edx.devstack-mapple.master.elasticsearch710:9200
2023-02-15 12:31:45,980 DEBUG 10 [urllib3.connectionpool] connectionpool.py:452 - http://edx.devstack-mapple.master.elasticsearch710:9200 “POST /notes_index/_count HTTP/1.1” 200 71
2023-02-15 12:31:45,980 INFO 10 [elasticsearch] base.py:270 - POST http://edx.devstack-mapple.master.elasticsearch710:9200/notes_index/_count [status:200 request:0.156s]
2023-02-15 12:31:45,980 DEBUG 10 [elasticsearch] base.py:273 - > {“query”:{“bool”:{“filter”:[{“terms”:{“course_id”:[“course-v1:edX+DemoX+Demo_Course”]}},{“terms”:{“user”:[“5c10f66f2d6390b70662c914aae7ef79”]}}],“should”:[{“match”:{“text”:{“query”:“When you take”}}},{“match”:{“tags”:{“query”:“When you take”}}}],“minimum_should_match”:1}}}
2023-02-15 12:31:45,980 DEBUG 10 [elasticsearch] base.py:274 - < {“count”:0,“_shards”:{“total”:1,“successful”:1,“skipped”:0,“failed”:0}}
2023-02-15 12:31:46,015 DEBUG 10 [urllib3.connectionpool] connectionpool.py:452 - http://edx.devstack-mapple.master.elasticsearch710:9200 “POST /notes_index/_search HTTP/1.1” 200 161
2023-02-15 12:31:46,016 INFO 10 [elasticsearch] base.py:270 - POST http://edx.devstack-mapple.master.elasticsearch710:9200/notes_index/_search [status:200 request:0.035s]
2023-02-15 12:31:46,016 DEBUG 10 [elasticsearch] base.py:273 - > {“query”:{“bool”:{“filter”:[{“terms”:{“course_id”:[“course-v1:edX+DemoX+Demo_Course”]}},{“terms”:{“user”:[“5c10f66f2d6390b70662c914aae7ef79”]}}],“should”:[{“match”:{“text”:{“query”:“When you take”}}},{“match”:{“tags”:{“query”:“When you take”}}}],“minimum_should_match”:1}},“sort”:[{“updated”:{“order”:“desc”}}],“from”:0,“size”:0,“highlight”:{“fields”:{“text”:{“pre_tags”:[“{elasticsearch_highlight_start}”],“post_tags”:[“{elasticsearch_highlight_end}”],“number_of_fragments”:0},“tags”:{“pre_tags”:[“{elasticsearch_highlight_start}”],“post_tags”:[“{elasticsearch_highlight_end}”],“number_of_fragments”:0}}}}
2023-02-15 12:31:46,016 DEBUG 10 [elasticsearch] base.py:274 - < {“took”:17,“timed_out”:false,“_shards”:{“total”:1,“successful”:1,“skipped”:0,“failed”:0},“hits”:{“total”:{“value”:0,“relation”:“eq”},“max_score”:null,“hits”:}}

should there be any mistake in elasticsearch config or something else?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.