Lastly if you're just starting with SOLR, here's some of the essentials
you'll probably need to know.
I've read this scores of times whenever I want to refresh myself on
faceting/querying with SOLR.
http://www.lucidimagination.com/Community/Hear-from-the-Experts/Articles/Faceted-Search-Solr
Here's the schema we're using in dspace+solr stats, its essentially all the
fields you can query on.
<field name="type" type="integer" indexed="true" stored="true" required
="true"/>
<field name="id" type="integer" indexed="true" stored="true" required="true"
/>
<field name="ip" type="string" indexed="true" stored="true" required="false"
/>
<field name="time" type="date" indexed="true" stored="true" required="true"
/>
<field name="epersonid" type="integer" indexed="true" stored="true" required
="false"/>
<field name="continent" type="string" indexed="true" stored="true" required
="false"/>
<field name="country" type="string" indexed="true" stored="true" required
="false"/>
<field name="countryCode" type="string" indexed="true" stored="true"
required="false"/>
<field name="city" type="string" indexed="true" stored="true" required
="false"/>
<field name="longitude" type="float" indexed="true" stored="true" required
="false"/>
<field name="latitude" type="float" indexed="true" stored="true" required
="false"/>
<field name="owningComm" type="integer" indexed="true" stored="true"
required="false" multiValued="true"/>
<field name="owningColl" type="integer" indexed="true" stored="true"
required="false" multiValued="true"/>
<field name="owningItem" type="integer" indexed="true" stored="true"
required="false" multiValued="true"/>
<field name="dns" type="string" indexed="true" stored="true" required
="false"/>
<field name="userAgent" type="string" indexed="true" stored="true" required
="false"/>
<field name="isBot" type="boolean" indexed="true" stored="true" required
="false"/>
You can also visit the Solr book:
http://my.safaribooksonline.com/9781847195883/Cover but you should be able
to understand enough from the above link.
Peter Dietz
Systems Developer/Engineer
Ohio State University Libraries
On Tue, Sep 14, 2010 at 12:40 PM, Peter Dietz <[email protected]> wrote:
> Hi revskill,
>
> I think you'll be able to get the data you need via SOLR, and then
> customize the user page to use this data.
>
> An example query I made to get some data of top downloads by user:
>
> http://localhost:8080/solr/statistics/select?indent=on&version=2.2&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=&facet=true&
> *facet.field=epersonid*&q=*type:**0*
> *
> *
> Explained:
> facet.field=epersonid --- You want to group by epersonid, which is the user
> id.
> type:0 --- Interested in bitstreams only
> *
> *
> *
> <lst name="facet_counts">
> <lst name="facet_fields">
> <lst name="epersonid">
> <int name="66">1167</int>
>
> <int name="117">251</int>
>
> <int name="52">42</int>
>
> <int name="19">36</int>
>
> <int name="88">20</int>
>
> <int name="112">18</int>
>
> <int name="110">9</int>
>
> <int name="96">0</int>
>
> </lst>
> </lst>
> </lst>
> *
>
>
> You'll be able to add to the query that you just want a specific epersonid.
> I would look at how the "View Statistics" pages process statistics to get an
> idea on how to solve this.
>
> Good luck.
>
> Peter Dietz
> Systems Developer/Engineer
> Ohio State University Libraries
>
>
>
> On Tue, Sep 14, 2010 at 4:38 AM, revskill <[email protected]> wrote:
>
>> Hi , i'm new to the Dspace platform. Now i need to extend in the following
>> way:
>> I need to know the amount of bitstream one user has downloaded, so that in
>> the profile page, one can see how much he has downoaded .
>>
>> Can you help me some guide to make that change ?
>>
>> Thank you for your help.
>>
>>
>> ------------------------------------------------------------------------------
>> Start uncovering the many advantages of virtual appliances
>> and start using them to simplify application deployment and
>> accelerate your shift to cloud computing.
>> http://p.sf.net/sfu/novell-sfdev2dev
>> _______________________________________________
>> DSpace-tech mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/dspace-tech
>>
>>
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech