samvera / hydra-head

Samvera Repository Rails Engine
Other
98 stars 41 forks source link

Use [* TO *] to work with old and new versions of AF and Solr #479

Closed cjcolvar closed 5 years ago

cjcolvar commented 5 years ago

ActiveFedora 12.1.0 brings a new solr schema which switches from the deprecated solr.TrieDateField (to be removed in solr 8) to solr.DatePointField. While the TrieDateField allowed queries like date_dtsi:, DatePointField only allows single value and range queries so this example query needs to change to date_dtsi:[ TO ]. Luckily the latter also works in TrieDateField. This PR updates both the embargo and lease search builders to use the [ TO *] query to work with both types of solr fields.

@samvera/hydra-head

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 62.46% when pulling 5e183bd64d6be187f53a32b7e2ce33632bf10c8a on leases_and_embargos into b76fc884d0a7959223c2ee1b8bdbee0f193ff95b on master.