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

Extended search #382

Merged
merged 32 commits into from Nov 3, 2023
Merged

Extended search #382

merged 32 commits into from Nov 3, 2023

Conversation

litvinovg
Copy link
Contributor

@litvinovg litvinovg commented Apr 18, 2023

VIVO PR

What does this pull request do?

Introduces extended search to Vitro

What's new?

Added extended search controller
Added search ontology
Created search class group
Bootstrap migrated from VIVO tenderfoot theme
Modified freemarker files to support extended search.
Solr field type dateRange and dynamic field *_drsim should be created on startup

How should this be tested?

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.
Add sample data and example search settings attached below
example-search-settings.nt.zip
Try search, create new document modifiers, search filters

Notes

Additional Solr field configuration (autocreated on startup)
<dynamicField name="*_drsim" type="dateRange" stored="true" indexed="true" multiValued="true"/>
<fieldType name="dateRange" class="solr.DateRangeField"/>

New dependencies

js: noUiSlider
js: wnumb

Interested parties

@VIVO-project/vivo-committers
@chenejac

@litvinovg litvinovg requested a review from chenejac April 18, 2023 10:02
@litvinovg litvinovg marked this pull request as ready for review April 18, 2023 10:51
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@litvinovg thanks for this PR. It looks very nice. It works as it is described. I have posted a couple of comments. Besides those comments, I have also one additional remark:

  1. Should we include in the codebase some searchSettings.n3? It might be really basic one, and also provide some additional documentation at wiki how to customize the search page. I am afraid if we don't have that basic configuration included, the VIVO customers wouldn't be aware and wouldn't use this new functionality.

@litvinovg
Copy link
Contributor Author

litvinovg commented Apr 24, 2023

@litvinovg thanks for this PR. It looks very nice. It works as it is described. I have posted a couple of comments. Besides those comments, I have also one additional remark:

1. Should we include in the codebase some searchSettings.n3? It might be really basic one, and also provide some additional documentation at wiki how to customize the search page. I am afraid if we don't have that basic configuration included, the VIVO customers wouldn't be aware and wouldn't use this new functionality.

I think we should create and add one. Maybe as an update to VIVO PR.

@litvinovg litvinovg requested a review from chenejac April 26, 2023 13:44
@chenejac chenejac requested review from brianjlowe and a user and removed request for ivanmrsulja August 17, 2023 14:57
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@litvinovg Export of search results includes only the first page results (usually 30 results) in both format csv and xml. Besides that I have added a couple of more minor comments.

@litvinovg
Copy link
Contributor Author

Fixed export in csv and xml

chenejac
chenejac previously approved these changes Sep 30, 2023
Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@litvinovg well done

Copy link
Member

@ivanmrsulja ivanmrsulja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and works as expected! I have some tiny suggestions that you can maybe take into consideration.

Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@litvinovg well done.

Copy link
Member

@ivanmrsulja ivanmrsulja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks great. Good job!

@chenejac chenejac merged commit 83ddfc2 into vivo-project:main Nov 3, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants