On Thu, Oct 6, 2011 at 15:28, helix84 <[email protected]> wrote:
> On Thu, Oct 6, 2011 at 14:05, Bram Luyten <[email protected]> wrote:
>> 1. To this goal, you can put "[* TO *]" in the fulltext filter query, with a
>> query like " fulltext:[* TO *]".
>> see it in action:
>> http://demo.dspace.org/xmlui/discover?scope=%2F&query=fulltext%3A[*+TO+*]&submit=Go
>
> Thanks, that worked great. I had to run filter-media first, it didn't
> work without that step.
>
> One more related question - it would be nice to display the number of
> full texts (the same query) on the repository front page. What would
> the XSL for that be?
Thanks to Bram's suggestion I was able to figure this out:
<xsl:variable name="fulltext"
select="document('http://localhost:8080/solr/search/select/?q=fulltext%3A[*+TO+*]&version=2.2&start=0&rows=0&indent=on&facet=true')"/>
Full texts: <xsl:value-of
select="$fulltext/response/result[@numFound]/@numFound"/>
Still working on the facet, I'm on trunk (practically speaking 1.8).
Regards,
~~helix84
------------------------------------------------------------------------------
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-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech