DSpace/DSpace — pull request #60 by abollini (2012-08-12 05:58:07+00:00)
Title: DS-1217 Initial contribution: porting Discovery to the JSPUI

Contribution from CILEA funded by the Hub project from HKU
(http://hub.hku.hk)
Faceting, filtering (autocomplete), sidebar facet for the site home page,
community and collections are all implemented.
Changes to the Discovery API/configuration:
1) changed the unique field for the SOLR document, now is used the
concatenation of ID and TYPE-ID (in future we want to index also object
that have not an handle)
2) the prune query has been changed in search.resourcetype:[2 TO 4] so to
not remove eventually extra data loaded in the SOLR search core
3) added defaultRpp parameter

Main differences from the XMLUI implementation:
1) facets doesn't have a "...More" link but there are pagination to
scroll facet in the context (search, home page, community, etc.)
2) facets doesn't show the values already selected
3) autocomplete is done against user input not dump all the values (this
is a performance issue in XMLUI, with 90k items I see JSON around 2Mb)

Other notable things:
- discovery is enabled by default, if you want turn it off you need to
specify the property lucene on packaging (i.e. mvn package -Dlucene)
- if you don't enable discovery no jar or webresources are added to the
lib directory or war