Difference between revisions of "Template:SOLR-WEBAPP"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| + | ==Example config for DSpace 1.7.2== | ||
| + | <pre> | ||
| + | |||
| + | ##### Search Indexing ##### | ||
| + | solr.search.server = http://localhost/solr/search | ||
| + | |||
| + | # Should no solr facet be configured for a certain page, this one will be used as default | ||
| + | #Every solr facet field which ends with _dt will be handled as a date | ||
| + | #Handeling as date implies that {field.name}.year will be used for faceting | ||
| + | solr.facets.search=dc.contributor.author,dc.subject,dc.date.issued_dt | ||
| + | |||
| + | solr.facets.site=dc.contributor.author,dc.subject,dc.date.issued_dt | ||
| + | solr.facets.community=dc.contributor.author,dc.subject,dc.date.issued_dt | ||
| + | solr.facets.collection=dc.contributor.author,dc.subject,dc.date.issued_dt | ||
| + | #solr.facets.item=dc.contributor.author,dc.subject,dc.date.issued_dt | ||
| + | |||
| + | |||
| + | # Put any default search filters here, these filters will be applied to any search in discovery | ||
| + | # You can specify multiple filters by separating them using , | ||
| + | ##Default filters are used for every search in discovery, including the separate scope filters below | ||
| + | #solr.default.filterQuery=location:l2 | ||
| + | # You can also specify (additional) filter(s) | ||
| + | ## for homepage recent submissions | ||
| + | #solr.site.default.filterQuery= | ||
| + | ## for community recent submissions | ||
| + | #solr.community.default.filterQuery= | ||
| + | ## for collection recent submissions | ||
| + | #solr.collection.default.filterQuery= | ||
| + | ## for searches | ||
| + | #solr.search.default.filterQuery= | ||
| + | ## for browsing (not used at the moment) | ||
| + | #solr.browse.default.filterQuery= | ||
| + | |||
| + | # The filters which can be selected in the search form | ||
| + | solr.search.filters=dc.title, dc.contributor.author, dc.date.issued.year, dc.subject, dc.type, dc.description.provenance | ||
| + | |||
| + | # Indexed fields which can sorted on in our search | ||
| + | solr.search.sort=dc.title, dc.date.issued_dt | ||
| + | |||
| + | #Defines whichs fields are indexed as dates | ||
| + | #please be aware that for each date field an _dt will be suffixed so that dc.date.issued will become dc.date.issued_dt | ||
| + | #For each date indexed the year will also be stored separately in a {field.name}.year so it can be used for date faceting | ||
| + | solr.index.type.date=dc.date,dc.date.* | ||
| + | |||
| + | #Recent submission size | ||
| + | solr.recent-submissions.size=10 | ||
| + | #The indexed field on which we sort so we can determine which items where recently submitted | ||
| + | recent.submissions.sort-option=dc.date.accessioned_dt | ||
| + | |||
| + | #Use the property below to limit the number of facet filters in the side of the search page | ||
| + | search.facet.max=20 | ||
| + | </pre> | ||
| + | |||
==Check SOLR webapp operation== | ==Check SOLR webapp operation== | ||
If you have problems with the SOLR webapp, then complete the following to check its operation. | If you have problems with the SOLR webapp, then complete the following to check its operation. | ||
Revision as of 09:40, 9 October 2012
Example config for DSpace 1.7.2
##### Search Indexing #####
solr.search.server = http://localhost/solr/search
# Should no solr facet be configured for a certain page, this one will be used as default
#Every solr facet field which ends with _dt will be handled as a date
#Handeling as date implies that {field.name}.year will be used for faceting
solr.facets.search=dc.contributor.author,dc.subject,dc.date.issued_dt
solr.facets.site=dc.contributor.author,dc.subject,dc.date.issued_dt
solr.facets.community=dc.contributor.author,dc.subject,dc.date.issued_dt
solr.facets.collection=dc.contributor.author,dc.subject,dc.date.issued_dt
#solr.facets.item=dc.contributor.author,dc.subject,dc.date.issued_dt
# Put any default search filters here, these filters will be applied to any search in discovery
# You can specify multiple filters by separating them using ,
##Default filters are used for every search in discovery, including the separate scope filters below
#solr.default.filterQuery=location:l2
# You can also specify (additional) filter(s)
## for homepage recent submissions
#solr.site.default.filterQuery=
## for community recent submissions
#solr.community.default.filterQuery=
## for collection recent submissions
#solr.collection.default.filterQuery=
## for searches
#solr.search.default.filterQuery=
## for browsing (not used at the moment)
#solr.browse.default.filterQuery=
# The filters which can be selected in the search form
solr.search.filters=dc.title, dc.contributor.author, dc.date.issued.year, dc.subject, dc.type, dc.description.provenance
# Indexed fields which can sorted on in our search
solr.search.sort=dc.title, dc.date.issued_dt
#Defines whichs fields are indexed as dates
#please be aware that for each date field an _dt will be suffixed so that dc.date.issued will become dc.date.issued_dt
#For each date indexed the year will also be stored separately in a {field.name}.year so it can be used for date faceting
solr.index.type.date=dc.date,dc.date.*
#Recent submission size
solr.recent-submissions.size=10
#The indexed field on which we sort so we can determine which items where recently submitted
recent.submissions.sort-option=dc.date.accessioned_dt
#Use the property below to limit the number of facet filters in the side of the search page
search.facet.max=20
Check SOLR webapp operation
If you have problems with the SOLR webapp, then complete the following to check its operation.
Install the "lynx" application.
sudo apt-get install lynx
Then type the following in the console:
lynx http://localhost/solr
You should get the following:
If not debug the solr webapp until you can.
Remember to restart the Tomcat server for each change you make to a webapp configuration.
