From e2b625af45043a4cba04166e2563301a66c4967b Mon Sep 17 00:00:00 2001 From: Erik Hatcher Date: Fri, 18 Jun 2010 00:24:41 +0000 Subject: [PATCH] SOLR-1957: Move VelocityResponseWriter from contrib to core git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@955796 13f79535-47bb-0310-9956-ffa450edef68 --- solr/CHANGES.txt | 6 +- solr/example/solr/conf/solrconfig.xml | 35 ++++++- .../solr/conf/velocity/VM_global_library.vm | 51 ++++++++-- solr/example/solr/conf/velocity/browse.vm | 55 +++++++++++ solr/example/solr/conf/velocity/facets.vm | 12 +++ solr/example/solr/conf/velocity/footer.vm | 7 ++ solr/example/solr/conf/velocity/header.vm | 1 + solr/example/solr/conf/velocity/hit.vm | 19 ++++ solr/example/solr/conf/velocity/layout.vm | 23 +++++ solr/example/solr/conf/velocity/main.css | 96 +++++++++++++++++++ .../solr => }/lib/commons-beanutils-1.7.0.jar | 0 .../lib/commons-collections-3.2.1.jar | 0 .../main/solr => }/lib/commons-lang-2.4.jar | 0 .../src/main/solr => }/lib/velocity-1.6.1.jar | 0 .../lib/velocity-tools-2.0-beta3.jar | 0 .../java/org/apache/solr/core/SolrCore.java | 2 + .../org/apache/solr/response/PageTool.java | 0 .../response/SolrParamResourceLoader.java | 0 .../response/SolrVelocityResourceLoader.java | 0 .../solr/response/VelocityResponseWriter.java | 0 .../velocity/VelocityResponseWriterTest.java | 0 .../solr/conf/velocity/VM_global_library.vm | 0 22 files changed, 295 insertions(+), 12 deletions(-) create mode 100644 solr/example/solr/conf/velocity/browse.vm create mode 100644 solr/example/solr/conf/velocity/facets.vm create mode 100644 solr/example/solr/conf/velocity/footer.vm create mode 100644 solr/example/solr/conf/velocity/header.vm create mode 100644 solr/example/solr/conf/velocity/hit.vm create mode 100644 solr/example/solr/conf/velocity/layout.vm create mode 100644 solr/example/solr/conf/velocity/main.css rename solr/{contrib/velocity/src/main/solr => }/lib/commons-beanutils-1.7.0.jar (100%) rename solr/{contrib/velocity/src/main/solr => }/lib/commons-collections-3.2.1.jar (100%) rename solr/{contrib/velocity/src/main/solr => }/lib/commons-lang-2.4.jar (100%) rename solr/{contrib/velocity/src/main/solr => }/lib/velocity-1.6.1.jar (100%) rename solr/{contrib/velocity/src/main/solr => }/lib/velocity-tools-2.0-beta3.jar (100%) rename solr/{contrib/velocity/src/main => src}/java/org/apache/solr/response/PageTool.java (100%) rename solr/{contrib/velocity/src/main => src}/java/org/apache/solr/response/SolrParamResourceLoader.java (100%) rename solr/{contrib/velocity/src/main => src}/java/org/apache/solr/response/SolrVelocityResourceLoader.java (100%) rename solr/{contrib/velocity/src/main => src}/java/org/apache/solr/response/VelocityResponseWriter.java (100%) rename solr/{contrib/velocity => }/src/test/org/apache/solr/velocity/VelocityResponseWriterTest.java (100%) rename solr/{contrib/velocity/src/main => src/test/test-files}/solr/conf/velocity/VM_global_library.vm (100%) diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt index afff725a78a..0625204169d 100644 --- a/solr/CHANGES.txt +++ b/solr/CHANGES.txt @@ -27,6 +27,7 @@ Versions of Major Components Apache Lucene trunk Apache Tika 0.6 Carrot2 3.1.0 +Velocity 1.6.1 Upgrading from Solr 1.4 @@ -179,7 +180,10 @@ New Features * SOLR-1932: New relevancy function queries: termfreq, tf, docfreq, idf norm, maxdoc, numdocs. (yonik) - + +* SOLR-1957: The VelocityResponseWriter contrib moved to core. + Example search UI now available at http://localhost:8983/solr/browse + (ehatcher) Optimizations diff --git a/solr/example/solr/conf/solrconfig.xml b/solr/example/solr/conf/solrconfig.xml index 53d042b1ee1..af046ad3f91 100755 --- a/solr/example/solr/conf/solrconfig.xml +++ b/solr/example/solr/conf/solrconfig.xml @@ -55,7 +55,6 @@ classpath, this is useful for including all jars in a directory. --> - + + + + + velocity + + browse + layout + Solritas + + dismax + *:* + 10 + *,score + + on + cat + manu_exact + 1 + + text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4 + + + on + text features name + 0 + name + + + @@ -1022,14 +1052,13 @@ + Custom response writers can be declared as needed... --> - -