-
Notifications
You must be signed in to change notification settings - Fork 535
8941 adding file count in solr (v2) #10598
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
Changes from all commits
09b5c4c
816c052
25eeac8
7364816
280a8f8
a0028c3
c349748
42d5029
aa3f855
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| ## Release Highlights | ||
|
|
||
| ### Adding fileCount as SOLR field | ||
|
|
||
| A new search field called `fileCount` can be searched to discover the number of files per dataset. (#10598) | ||
|
|
||
| ## Upgrade Instructions | ||
|
|
||
| 1. Update your Solr `schema.xml` to include the new field. | ||
| For details, please see https://guides.dataverse.org/en/latest/admin/metadatacustomization.html#updating-the-solr-schema | ||
|
|
||
| 2. Reindex Solr. | ||
| Once the schema.xml is updated, Solr must be restarted and a reindex initiated. | ||
| For details, see https://guides.dataverse.org/en/latest/admin/solr-search-index.html but here is the reindex command: | ||
| `curl http://localhost:8080/api/admin/index` |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ public void setUp() { | |
| indexService.dataverseService = Mockito.mock(DataverseServiceBean.class); | ||
| indexService.datasetFieldService = Mockito.mock(DatasetFieldServiceBean.class); | ||
| indexService.datasetVersionService = Mockito.mock(DatasetVersionServiceBean.class); | ||
| indexService.datasetVersionFilesServiceBean = Mockito.mock(DatasetVersionFilesServiceBean.class); | ||
| BrandingUtil.injectServices(indexService.dataverseService, indexService.settingsService); | ||
|
|
||
| Mockito.when(indexService.dataverseService.findRootDataverse()).thenReturn(dataverse); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is it worth adding a test to SearchIT.java?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.