Re: [Dspace-tech] Custom Discovery Search - Most Popular

2012-05-14 Thread Hayden Young
It seems using the query returned by the StatisticsDataVisits class 
(along with a couple of modifications) gives the top 10 total visits for 
all items in the repository:

http://localhost:8080/i/saber/solr/statistics/select?facet=true&facet.mincount=1&facet.limit=10&version=2&q=type:2&facet.field=id&fq=-isBot:true&indent=true

worked for me.

It also returns items that have been deleted (identified by their lack 
of an item title) but I'm guessing this is because logs are being used 
to build the statistics index; logs which may reference non-existent items.

On 14/05/12 23:31, Hayden Young wrote:
> Hi helix84, thanks for your reply.
>
> Could the solr query which generates the statistics on the "View 
> Statistics" page be modified to return the 10 most visited items in 
> the repository?
>
> cheers
>
>
> Hayden
>
> On 14/05/12 22:40, helix84 wrote:
>> On Mon, May 14, 2012 at 3:34 PM, Hayden 
>> Young  wrote:
>>> I have dspace discovery configured and functioning correctly and both
>>> statistics and search can be accessed locally on my dspace server. 
>>> Next,
>>> I would like to write a couple of custom solr queries with one in
>>> particular; a "most popular" query which retrieves a list of the top 10
>>> items with the most views.
>>>
>>> Is this possible with discovery, and, if so, how would it look?
>> Hi Hayden,
>>
>> it can be as easy as writing a SOLR query into the DSspace search
>> field, which will produce a regular search results page. You can then
>> take the URL with the query and link to it. That should be sufficient
>> for top 10 items. Or do you think you'll need to customize the
>> display, too?
>>
>> Regards,
>> ~~helix84
>

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 08 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Custom Discovery Search - Most Popular

2012-05-14 Thread Hayden Young
Hi helix84, thanks for your reply.

Could the solr query which generates the statistics on the "View 
Statistics" page be modified to return the 10 most visited items in the 
repository?

cheers


Hayden

On 14/05/12 22:40, helix84 wrote:
> On Mon, May 14, 2012 at 3:34 PM, Hayden Young  wrote:
>> I have dspace discovery configured and functioning correctly and both
>> statistics and search can be accessed locally on my dspace server. Next,
>> I would like to write a couple of custom solr queries with one in
>> particular; a "most popular" query which retrieves a list of the top 10
>> items with the most views.
>>
>> Is this possible with discovery, and, if so, how would it look?
> Hi Hayden,
>
> it can be as easy as writing a SOLR query into the DSspace search
> field, which will produce a regular search results page. You can then
> take the URL with the query and link to it. That should be sufficient
> for top 10 items. Or do you think you'll need to customize the
> display, too?
>
> Regards,
> ~~helix84

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 08 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


Re: [Dspace-tech] Custom Discovery Search - Most Popular

2012-05-14 Thread helix84
On Mon, May 14, 2012 at 3:34 PM, Hayden Young  wrote:
> I have dspace discovery configured and functioning correctly and both
> statistics and search can be accessed locally on my dspace server. Next,
> I would like to write a couple of custom solr queries with one in
> particular; a "most popular" query which retrieves a list of the top 10
> items with the most views.
>
> Is this possible with discovery, and, if so, how would it look?

Hi Hayden,

it can be as easy as writing a SOLR query into the DSspace search
field, which will produce a regular search results page. You can then
take the URL with the query and link to it. That should be sufficient
for top 10 items. Or do you think you'll need to customize the
display, too?

Regards,
~~helix84

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech


[Dspace-tech] Custom Discovery Search - Most Popular

2012-05-14 Thread Hayden Young
I have dspace discovery configured and functioning correctly and both 
statistics and search can be accessed locally on my dspace server. Next, 
I would like to write a couple of custom solr queries with one in 
particular; a "most popular" query which retrieves a list of the top 10 
items with the most views.

Is this possible with discovery, and, if so, how would it look?

Cheers


Hayden

-- 
Hayden Young
Managing Director
Wijiti Pty Ltd
p. +61 (0) 08 6398 5010
e. haydenyo...@wijiti.com
w. www.wijiti.com
vcard. www.wijiti.com/vcard/haydenyoung.vcf

NOTICE
This e-mail and any attachments are intended for the addressee(s) only and may 
be confidential. They may contain legally privileged or copyright material. You 
should not read, copy, use or disclose them without authorization. If you are 
not the intended recipient please contact the sender as soon as possible by 
return e-mail and then please delete both messages. This notice should not be 
removed.


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech