From 88c833563335e708c6e9415be29ef057fd5fa34a Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Thu, 24 May 2007 19:06:29 +0000 Subject: [PATCH] SOLR-208: example XSLTs for RSS and Atom git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@541391 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 7 ++- example/solr/conf/xslt/example_atom.xsl | 63 +++++++++++++++++++++++++ example/solr/conf/xslt/example_rss.xsl | 62 ++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 1 deletion(-) create mode 100644 example/solr/conf/xslt/example_atom.xsl create mode 100644 example/solr/conf/xslt/example_rss.xsl diff --git a/CHANGES.txt b/CHANGES.txt index fe1e60c7fe3..d2551f80588 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -197,7 +197,12 @@ New Features 33. SOLR-234: TrimFilter can update the Token's startOffset and endOffset if updateOffsets="true". By default the Token offsets are unchanged. (ryan) - + +34. SOLR-208: new example_rss.xsl and example_atom.xsl to provide more + examples for people about the Solr XML response format and how they + can transform it to suit different needs. + (Brian Whitman via hossman) + Changes in runtime behavior 1. Highlighting using DisMax will only pick up terms from the main user query, not boost or filter queries (klaas). diff --git a/example/solr/conf/xslt/example_atom.xsl b/example/solr/conf/xslt/example_atom.xsl new file mode 100644 index 00000000000..d0d6c52264e --- /dev/null +++ b/example/solr/conf/xslt/example_atom.xsl @@ -0,0 +1,63 @@ + + + + + + + + + + + + + + Example Solr Atom Feed + + This has been formatted by the sample "example_atom.xsl" transform - + use your own XSLT to get a nicer Atom feed. + + + Apache Solr + solr-user@lucene.apache.org + + + + + + tag:localhost,2007:example + + + + + + + + + <xsl:value-of select="str[@name='name']"/> + + tag:localhost,2007: + + + + + + diff --git a/example/solr/conf/xslt/example_rss.xsl b/example/solr/conf/xslt/example_rss.xsl new file mode 100644 index 00000000000..b5f23561e22 --- /dev/null +++ b/example/solr/conf/xslt/example_rss.xsl @@ -0,0 +1,62 @@ + + + + + + + + + + + + + Example Solr RSS Feed + http://localhost:8983/solr + + This has been formatted by the sample "example_rss.xsl" transform - + use your own XSLT to get a nicer RSS feed. + + en-us + http://localhost:8983/solr + + + + + + + + + + + <xsl:value-of select="str[@name='name']"/> + + http://localhost:8983/solr/select?q=id: + + + + + + + http://localhost:8983/solr/select?q=id: + + + +