[LTER-im] PASTA+ upgrades Apache Solr...

Mark Servilla mark.servilla at gmail.com
Thu Mar 26 12:11:17 PDT 2020


Dear EDI user,

First off, if you do not use the PASTA+ search API in your local data
catalog, you may safely ignore this email from a “must do” perspective.

You may, however, like to know that we are in the process of updating the
PASTA+ search engine, Apache Solr, to its latest stable version 8.3.0.
Unfortunately, this update includes a change to Solr’s implementation of
geographic search when using bounding box coordinates, and this change
impacts the PASTA+ search API. The change itself is a slight modification
to how the coordinate-based search field is structured in the query URL and
is best demonstrated below by example:

Current version:

fq=coordinates:"IsWithin(-124.69213486974263 28.20856331238578
-107.11400986974263 37.42338632627267)"

New version:

fq=coordinates:"IsWithin(ENVELOPE(-123.09811264569426, -114.30905014569426,
37.54584041714496, 33.065259274237334))"

Specifically, an inner set must be declared using the “ENVELOPE” type
identifier and the bounding-box coordinates must now be separated with
commas. Note also that the inner set is enclosed by its own set of
parentheses. No other changes to the PASTA+ search API query URL are
required.

We have currently deployed Solr 8.3.0 to both the “development” and
“staging” tiers of PASTA+ and plan on deploying to the “production” tier on
Wednesday 8 April 2020. If you do use the geographic search capabilities of
the PASTA+ search API, please take the appropriate actions to update your
code before 8 April. You may see an example of this change in operation
today by executing the following query (note that parentheses, quotes,
commas, and spaces in the below URL have been appropriately url-encoded):

https://pasta-s.lternet.edu/package/search/eml?defType=edismax&q=*:*&fq=-scope:ecotrends&fq=-scope:lter-landsat*&fq=coordinates%3A%22IsWithin%28ENVELOPE%28-121.18432408185093%2C+-118.98705845685093%2C+34.776225089287166%2C+33.640551566130625%29%29%22&fl=id,packageid,title,author,organization,pubdate,coordinates&debug=false

The relevant portion in decoded form is:

fq=coordinates:"IsWithin(ENVELOPE(-121.18432408185093, -118.98705845685093,
34.776225089287166, 33.640551566130625))"

Please do not hesitate to get in touch with us if you have further
questions or concerns regarding this update.

Sincerely,

Mark

---
Mark Servilla
mark.servilla at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lternet.edu/pipermail/im/attachments/20200326/93eb41f7/attachment.html>


More information about the im mailing list