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

Missing Solr field in configuration #4016

Open
gneissone opened this issue Oct 22, 2024 · 1 comment
Open

Missing Solr field in configuration #4016

gneissone opened this issue Oct 22, 2024 · 1 comment

Comments

@gneissone
Copy link
Member

Describe the bug
Seeing this error when building against 1.15.0
`

(Local) Level Core Logger Message
22.10.2024, 11:28:09 ERROR false x:vivocore RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=vitroIndividual:https://vivo.mydomain.edu/individual/pub59165] unknown field 'dates_drsim'
22.10.2024, 11:28:10 ERROR false x:vivocore RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=vitroIndividual:https://vivo.mydomain.edu/individual/pub276838] unknown field 'dates_drsim'
22.10.2024, 11:28:11 ERROR false x:vivocore RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=vitroIndividual:https://vivo.mydomain.edu/individual/pub70151] unknown field 'dates_drsim'

`

To Reproduce
Add a new publication with a date against a fresh v1.15.0 instance.

Expected behavior
No error thrown in log, date added to dates_drsim field in Solr

Screenshots

Environment (please complete the following information):

  • OS: macOs
  • Tomcat version 9.0.78
  • VIVO version 1.15.0
  • Apache Solr 9.6.1

Additional context
As far as I can tell, there have been no commits to https://github.com/vivo-project/vivo-solr/ to account for the addition field(s) required by #3860

@chenejac
Copy link
Contributor

Hi @gneissone ,

I think dates_drsim field should be automatically created.

Check logs to verify that field type dateRange and dynamic field *_drsim has been created on startup
[SolrFieldInitializer] Solr field type 'dateRange' not found. Trying to create.
[SolrFieldInitializer] Solr field type 'dateRange' has been created.
[SolrFieldInitializer] Solr dynamic field '*_drsim' of type dateRange not found. Trying to create.
[SolrFieldInitializer] Solr dateRange dynamic field '*_drsim' has been created.

@litvinovg any idea what might be the issue? Did anyone test this with Solr 9.x so far?

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

No branches or pull requests

2 participants