Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Mar 6, 2019

Conversation

cjcolvar
Copy link
Member

@cjcolvar cjcolvar commented Mar 4, 2019

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.

This fixes the tests that were blocking #3541

@samvera/hyrax-code-reviewers

@cjcolvar cjcolvar merged commit a0eec48 into master Mar 6, 2019
@cjcolvar cjcolvar deleted the cjcolvar-patch-2 branch March 6, 2019 01:46
@cjcolvar cjcolvar mentioned this pull request Mar 6, 2019
@no-reply
Copy link
Contributor

Will this require action for existing installations?

@cjcolvar
Copy link
Member Author

cjcolvar commented Mar 11, 2019

No, it shouldn't. Only new apps generated with AF 12.1.0 will get the new default schemas and this code change allows them to work with the new schema. Older apps will still have the older default schema which will still work with this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants