[ 
https://jira.duraspace.org/browse/DS-599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Van de Velde updated DS-599:
----------------------------------

    Attachment: DS-559--AddBundleNameToSOLR_V0_2.patch

Since I really liked Peter Dietz his idea, I started making an improvement that 
would allow users to configure which bundles they want to include.
This would be done by a simple configuration parameter.
I have however encountered some issues with the solr query to retrieve the 
results.
I attempted to add the following filter query:
(bundleName:ORIGINAL) OR (-bundleName:[* TO *])

For those who don't understand solr this means that the bundleName should be 
ORIGINAL or shouldn't be present at all.
But for some strange reason this query doesn't work. The two parts separately 
work just fine so running: "(bundleName:ORIGINAL)" will only retrieve bundles 
with the name ORIGINAL and the query "(-bundleName:[* TO *])" will retrieve all 
the statistics records which don't have a bundleName in them.
But when I put them together in a query with an OR mixed in the query returns 
no results what so ever.


I have attached the improved patch that will add the query to the solr query in 
the hopes that somebody else could take a look since I am out of ideas on how 
to fix this.
                
> SOLR statistics file download displays all files and not only those in the 
> Bundle Original
> ------------------------------------------------------------------------------------------
>
>                 Key: DS-599
>                 URL: https://jira.duraspace.org/browse/DS-599
>             Project: DSpace
>          Issue Type: Bug
>          Components: Solr
>    Affects Versions: 1.6.0, 1.6.1, 1.6.2
>            Reporter: Claudia Jürgen
>            Assignee: Kevin Van de Velde
>            Priority: Major
>             Fix For: 1.8.0
>
>         Attachments: DS-559--AddBundleNameToSOLR.patch, 
> DS-559--AddBundleNameToSOLR_V0_2.patch, Original_bundle_bugfix.patch
>
>
> The file download statistic for an item displays all the bitstreams 
> regardless of the bundle they belong to.
> So licenses, extracted texts got displayed and counted.  This is a bit 
> confusing for the normal user as their existence is usually hidden from him.
> Furthermore I wonder whether views from the edit item stage should be counted 
> as "regular" views at all.

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

       

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to