Docs: adding some basic info about getting data from opensearch
authorJane Sandberg <sandbej@linnbenton.edu>
Tue, 10 Apr 2018 23:30:39 +0000 (16:30 -0700)
committerJane Sandberg <sandbej@linnbenton.edu>
Tue, 10 Apr 2018 23:30:39 +0000 (16:30 -0700)
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
docs/development/data_opensearch.adoc [new file with mode: 0644]
docs/root.adoc
docs/root_integrations.adoc

diff --git a/docs/development/data_opensearch.adoc b/docs/development/data_opensearch.adoc
new file mode 100644 (file)
index 0000000..102c90a
--- /dev/null
@@ -0,0 +1,26 @@
+Using Opensearch as a developer
+===============================
+
+Introduction
+------------
+
+Evergreen responds to OpenSearch requests. This can be a good way to get
+search results delivered in a format that you prefer.
+
+Throughout this section, replace `<hostname>` with the domain or subdomain
+of your Evergreen installation to try these examples on your own system.
+
+Opensearch queries will be in the format
+`http://<hostname>/opac/extras/opensearch/1.1/-/html-full?searchTerms=item_type(r)&searchClass=keyword&count=25`
+
+In this example,
+
+* html-full is the format you would like.  html-full is a good view for troubleshooting your query.
+* searchTerms is a url-encoded search query.  You can use limiters in the `limiter(value)` format.
+For example, you can use a query like `item_lang(spa)`
+* count is the number of results per page.  The default is 10, and the maximum is 25.
+
+Other options include:
+
+* searchSort and searchSortDir, which can be used to display the results in a different order (e.g. for an RSS feed).
+
index 09553e4..f29673a 100644 (file)
@@ -540,6 +540,8 @@ include::development/data_supercat.adoc[]
 
 include::development/data_unapi.adoc[]
 
+include::development/data_opensearch.adoc[]
+
 // Return to normal title levels.
 :leveloffset: 0
 
index 553d130..7d51c76 100644 (file)
@@ -30,6 +30,8 @@ include::development/data_supercat.adoc[]
 
 include::development/data_unapi.adoc[]
 
+include::development/data_opensearch.adoc[]
+
 include::admin/phonelist.adoc[]