Simple query

7 views
Skip to first unread message

George Foster

unread,
Jul 21, 2017, 4:40:29 PM7/21/17
to Learning Registry Developers List
Hello,

I have a very simple use case to create an interface into the Learning Registry to query for a set of content by keyword. I'm looking through the documentation and I am a little overwhelmed and do not know where to start. If someone could point me in the right direction it would be greatly appreciated.

Thanks,
George

joe hobson

unread,
Jul 21, 2017, 4:50:35 PM7/21/17
to learnin...@googlegroups.com
hey George,

Welcome to the Learning Registry community, and apologies for the overwhelming documentation. The two simplest methods are the slice service and the search API.

Slice is a service that runs on each node, and can be used to find records by tag or publisher, with options for date ranges as well.

examples:

The search server is a separate instance powered by ElasticSearch and it also provides the back-end to our widget (example can be found at the bottom of learningregistry.org). Sign up for access at https://search.learningregistry.net and you will be provided with an API key for access.

examples (use your own API key):
Documentation on the API can be found here: http://search.learningregistry.net/help

I hope that helps. ... .joe

joe hobson
NAVIGATION NORTH



--
You received this message because you are subscribed to the Google Groups "Learning Registry Developers List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to learningreg-d...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

George Foster

unread,
Jul 21, 2017, 5:00:14 PM7/21/17
to Learning Registry Developers List
This is great and thank you for the quick response!!!

As soon as I sent this I saw the slice feature and discovered what to do and thank you for pointing me to the elastic search capability! The slice api is surprisingly easy to do simple queries.

Could you perhaps point me in the direction of being able to search for a specific mime type? For example, I'd like to make a dashboard that would show video (mp4 in particular) for keywords like biology.

Thank you so much and greatly appreciate the community feedback!

joe hobson

unread,
Jul 25, 2017, 11:35:41 AM7/25/17
to learnin...@googlegroups.com
There isn't really a good way to search for mime type, and it's not generally data that we see published. The closest thing that is more commonly submitted in schema.org formatted data is mediaType. Here's an example record that I published using the EasyPublish tool: https://node01.public.learningregistry.net/obtain?by_doc_ID=true&request_id=d89ddc92c8ef431db0ca524a7bea67b1

This field is not indexed by ElasticSearch on our search server, partially because it was designed to handle a wider variety of metadata formats, before schema.org became the norm.

As a plug for open source - you can help us expand the functionality by forking the LR-Data project, adding some code for indexing fields like those, and then submitting a pull request. We'd be more than happy to update the search server with new features.
Reply all
Reply to author
Forward
0 new messages