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

Check if solr 6 removal of 'defaultOperator' affects rdataone #213

Open
gothub opened this issue May 10, 2018 · 0 comments
Open

Check if solr 6 removal of 'defaultOperator' affects rdataone #213

gothub opened this issue May 10, 2018 · 0 comments
Milestone

Comments

@gothub
Copy link
Collaborator

gothub commented May 10, 2018

The 'defaultOperator' configuration parameter (in schema.xml) was deprecated in Solr 5 and removed in Solr 6 . This can affect queries where the operator (either 'and' or 'or') is not specified between query terms, as the default would be assumed in these cases, i.e. the query

https://cn.dataone.org/cn/v2/query/solr/?start=0&rows=0&fl=id,title,formatId&q=title:test page

could be interpreted as "title=test AND page" or "title=test OR page" depending on the default operator.

This is significant, because the default for metacat is set to 'AND' which will no longer be the case when Solr 7.x is implemented, i.e.:

https://github.com/NCEAS/metacat/blob/master/metacat-common/src/main/resources/solr-home/conf/schema.xml#L427

Check the 'query()' routine to see if &q.op=AND needs to be added to queries that are constructed by this method.

@mbjones mbjones added this to the 2.2.0 milestone May 22, 2018
@gothub gothub modified the milestones: 2.2.0, 2.1.1, 2.1.2 Jun 12, 2018
@gothub gothub modified the milestones: 2.1.2, 2.1.3 Jan 28, 2019
@gothub gothub modified the milestones: 2.1.3, 2.2.0 Jan 15, 2020
@gothub gothub modified the milestones: 2.2.0, 2.3.0 Sep 1, 2020
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