Dear community,
I'm wondering if there is a clean solution to my rather interesting problem.
The following facet query results in a list of all facets and the number of
all documents matching the corresponding facet as seen below:
Probably the quickest way would be to write another XSLT transform to reformat
the results to match your requirements. Then add extra query params to call
the transform.
str name=wtxslt/str
str name=trreformat.xsl/str
Fergus.
Query:
str name=q*:*/str
str name=facet.limit5/str
str name=facet.fielden_atmosphere/str
str name=rows0/str
Results:
lst name=facet_counts
lst name=facet_queries/
lst name=facet_fields
lst name=en_atmosphere
int name=Snug and pleasant675/int
int name=Authentic385/int
int name=Modern and functional378/int
int name=Romantic374/int
int name=Modest339/int
/lst
/lst
Now I would like to have the documents as child node of the various facet
fields, so that the result will be something similar as:
lst name=facet_counts
lst name=facet_queries/
lst name=facet_fields
lst name=en_atmosphere
docs facet=Snug and pleasant
doc...
doc...
/docs
docs facet=Authentic
doc...
doc...
/docs
...
/lst
/lst
Of course it would be possible to send a couple of queries for each facet to
get the corresponding docs or I can parse the response xml, but it would be
more efficient if SOLR can return the result as above.
Thanks!
--
Jeffrey Gelens Buyways B.V. Tel. 050 853 6600
Webengineer Friesestraatweg 215c Fax. 050 853 6601
http://www.buyways.nl 9743 AD Groningen KvK 01074105
--
===
Fergus McMenemie Email:fer...@twig.me.uk
Techmore Ltd Phone:(UK) 07721 376021
Unix/Mac/Intranets Analyst Programmer
===