From: Ron V. d. B. <ron...@ka...> - 2011-07-18 14:10:42
|
Hi, > I have the same problem by trying just the example of Ron's blog: > http://rvdb.wordpress.com/2010/10/06/mimicking-faceted-searching-in-exist/with > the eXist release candidate of 1.4.1. > > I did the exact same as the blog explained - but the result of the > local:term-callback is still missing! > Have you made sure you have reindexed the /db/shakespeare collection after changing the collection.xconf file? I've just retested and it works fine with both eXist-1.4.x and trunk. @Marjorie: I think you've forgotten to pass the right index to util:index-keys(). By default, it scans the range index, unless you explicitly tell it to use lucene-index (or ngram-index). I think this one should work: declare function local:facets($hits as element()*) { <div id="facet">{ util:index-keys($hits, 'a', util:function(xs:QName("local:term-callback"), 2), 1000, 'lucene-index') }</div> }; Hope this helps, Ron -- Ron Van den Branden Wetenschappelijk attaché / Senior Researcher Reviews Editor LLC. The Journal of Digital Scholarship in the Humanities Centrum voor Teksteditie en Bronnenstudie - CTB (KANTL) Centre for Scholarly Editing and Document Studies Koninklijke Academie voor Nederlandse Taal- en Letterkunde Royal Academy of Dutch Language and Literature Koningstraat 18 / b-9000 Gent / Belgium tel: +32 9 265 93 51 / fax: +32 9 265 93 49 E-mail : ron...@ka... http://www.kantl.be/ctb |