[ 
https://jira.duraspace.org/browse/DS-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27106#comment-27106
 ] 

Ivan Masár commented on DS-1409:
--------------------------------

First step might be to define a DAO for Solr, like this one:

https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/browse/ItemCountDAOPostgres.java#L68

The Solr query would look like this for collection_id=20:
q=location:l20
and for community_id=12:
q=location:m12
                
> Discovery should obsolete webui.strengths.cache
> -----------------------------------------------
>
>                 Key: DS-1409
>                 URL: https://jira.duraspace.org/browse/DS-1409
>             Project: DSpace
>          Issue Type: Improvement
>    Affects Versions: 1.7.2, 1.8.2, 3.0
>            Reporter: Ivan Masár
>             Fix For: 4.0
>
>
> If webui.strengths.show = true, it's recommended to set webui.strengths.cache 
> = true, otherwise the number of items in collections/communities are counted 
> in database when a page is displayed.
> When Discovery is enabled, the strengths could be fetched from Solr instead 
> of database, making it faster, real time (no need to run itemcounter) and 
> thus obsolete the webui.strengths.cache option.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
BUILD Helping you discover the best ways to construct your parallel projects.
http://goparallel.sourceforge.net
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to