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
Multiple collections do not work properly #52
Comments
The Collection button appears for me with "collections":[{},{}]. It doesn't work, but it appears whenever the collections setting contains more than one item. I have no idea why it isn't appearing. When aggregating collections, only one .zip file should be in specify_exports. Only the PortalData.csv file is needed for the other collections. |
The portal (web app and solr server) only needs to be built for one collection. Two collections are irrevelant. Maybe you only created one solr instance, but copied the web app data for both collections to the http servers root directory? Also I'm pretty sure the collections definition is in the wrong settings file. |
@timo11 here are the steps I used to install WP with multiple collections:
make clean && make
mkdir solr-7.5.0/server/solr/m1
cp -r build/cores/m1/core/* solr-7.5.0/server/solr/m1
cp build/cores/m1/web.xml solr-7.5.0/server/solr-webapp/webapp/WEB-INF/web.xml # Only necessary for the first core.
solr-7.5.0/bin/solr start
curl 'http://localhost:8983/solr/m1/update/csv?commit=true&encapsulator="&escape=\&header=true' --data-binary @build/cores/m1/PortalFiles/PortalData.csv -H 'Content-type:application/csv'
sudo systemctl restart nginx
curl 'http://localhost:8983/solr/m1/update/csv?commit=true&encapsulator="&escape=\&header=true' --data-binary @specify_exports/PortalFiles/PortalData.csv -H 'Content-type:application/csv'
solr-7.5.0/bin/solr restart Here is the I can send a video recording of me reproducing all of these steps |
The codes are 'KUITeach' and 'KUIT'. Also, case might not matter, but the collCodeSolrFld is "code" with a little "c". I still don't understand why settings in files in /home/specify/Downloads/webportal-installer/build/html/tissuedwc/resources/config/ wouldn't be reflected in the portal. |
You were right, I was supposed to have I will try to rebuild WP from scratch and report my progress |
restarting solr doesn't have anything to do with changing the portal app config. |
Reinstalled WP on a clean VM Searching works like expected and data is present in both collections |
Okay, I found out the solution problem with the settings file |
I am pretty sure that WP works well and I just made some mistake when setting up my WP
In order to find the possible issue, here is some information that may help:
My
settings.json
Webportal displays all records from collection1 and collection2
Could the problem be connected with the fact that that column has spaces in its values?
But the
Collection
button is not presenthttps://files.slack.com/files-pri/TC55W6XA8-F010V5N2588/screen_shot_2020-03-26_at_12.11.35_pm.png
I did restart solr and nginx
Also, I should say that I had exports from two collections in
specify_exports
folderAnd running
make clean && make
caused two collections to become visible on the WP menu pageBut
m2
does not have any recordsAnd importing them causes an error
The text was updated successfully, but these errors were encountered: