0

I'm trying to extend the edx-platform by adding full-text search, but I'm having trouble understanding how to retrieve data from mongodb. Does anyone have any experience with edx? How can one access data in a Courses.objects.all() manner?

Thanks!

A.

misterte
  • 977
  • 1
  • 11
  • 21
  • EdX doesn't look like it uses Haystack. Haystack doesn't query directly from the Database and works from django models. What have you tried? –  Jan 19 '15 at 22:11
  • I know it does not use haystack. I want to add full-text search for courses, but need to retrieve them in order to create an index. Just managed to find a way to retrieve all courses by using the modulestore under the xmodule package. Any other suggestions? Thanks. – misterte Jan 19 '15 at 22:18

2 Answers2

1

Have a look at http://docs.mongodb.org/manual/data-modeling/ as well as https://github.com/selvinsource/mongodb-datamining-shell

Hope it helps.

Art
  • 11
  • 2
  • That mongodb-datamining-shell seems interesting, though kind out of the scope of this question. Thanks anyway. – misterte Mar 17 '15 at 04:05
1

There is some sub-project created by edX called edX search, which will employ searching in a manner closer to the way you want. They use ElasticSearch directly without the Haystack lib .. have a look and let me if you find it useful: https://github.com/edx/edx-search

Good luck!

securecurve
  • 5,589
  • 5
  • 45
  • 80