Jose,
Try the following
https://localhost/solr/statistics/select?indent=on&fl=*,score&rows=10&q=type:0+AND+bundleName:ORIGINAL+AND+time:[NOW-6MONTHS+TO+NOW]
If you do not need faceted results, the query is a bit easier to construct.
Terry
On Thu, Aug 29, 2013 at 3:43 PM, Jose Blanco <[email protected]> wrote:
> From looking at your code and not really knowing what the URL is
> suppose to look like, I created this URL which gave me an error:
>
>
> http://dev.deepblue.lib.umich.edu/solr/statistics/select?bundleName:ORIGINAL&facet.date.start=NOW/MONTH/DAY-6MONTHS&facet.date.end=NOW&facet.date.gap=1MONTH+AND+type:0+bundleName:ORIGINAL
>
> I thought I was asking for bitstream stats for the last six months.
>
> On Thu, Aug 29, 2013 at 1:19 PM, Terry Brady <[email protected]> wrote:
> > Jose,
> >
> > The following code illustrates the options that Georgetown has provided
> for
> > filtering our statistics. The code builds up a query string that might
> help
> > with your issue.
> >
> > The following file demonstrates how I constructed date range queries and
> > queries for original bitstream downloads.
> >
> >
> https://github.com/Georgetown-University-Libraries/DSpaceQCTools/blob/master/dspace-tools/web/solrFacets.php
> >
> > I was not satisfied with the existing bot detection. This code shows
> some
> > additional filters that I put into place to filter out bots.
> >
> >
> https://github.com/Georgetown-University-Libraries/DSpaceQCTools/blob/master/dspace-tools/web/solrStats.php
> >
> > Terry
> >
> >
> >
> > On Thu, Aug 29, 2013 at 12:22 PM, Jose Blanco <[email protected]> wrote:
> >>
> >> I would like to create a solr query that would tell me how many
> >> bitstreams were downloaded from my repository in a particular month.
> >> I would want the query NOT to include the spider downloads.
> >>
> >> So say, how many bitstreams were downloaded from my repository in
> >> August, not including things downloaded by spiders.
> >>
> >> Working from this as an example, I don't see how to come up with the
> >> query.
> >>
> >> Top downloaded items by a specific user:
> >>
> >>
> >>
> >>
> http://localhost/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
> >>
> >> Thank you!
> >> Jose
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> >> Discover the easy way to master current and previous Microsoft
> >> technologies
> >> and advance your career. Get an incredible 1,500+ hours of step-by-step
> >> tutorial videos with LearnDevNow. Subscribe today and save!
> >>
> >>
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> >> _______________________________________________
> >> DSpace-tech mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/dspace-tech
> >> List Etiquette:
> >> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
> >
> >
> >
> >
> > --
> > Terry Brady
> > Applications Programmer Analyst
> > Lauinger Information Technology
> > 202-687-7053
> >
> >
> ------------------------------------------------------------------------------
> > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
> > Discover the easy way to master current and previous Microsoft
> technologies
> > and advance your career. Get an incredible 1,500+ hours of step-by-step
> > tutorial videos with LearnDevNow. Subscribe today and save!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
> > _______________________________________________
> > DSpace-tech mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/dspace-tech
> > List Etiquette:
> > https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>
--
Terry Brady
Applications Programmer Analyst
Lauinger Information Technology
202-687-7053
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette