Hello,

I am trying to make Velocity work in SOLR 5.0.0.

First of all, I have added the following lines to my core's solrconfig.xml file:

<luceneMatchVersion>5.0.0</luceneMatchVersion>
  
  <lib dir="../../../contrib/extraction/lib" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-cell-\d.*\.jar" />

  <lib dir="../../../contrib/langid/lib/" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-langid-\d.*\.jar" />

  <lib dir="../../../contrib/velocity/lib" regex=".*\.jar" />
  <lib dir="../../../dist/" regex="solr-velocity-\d.*\.jar" />
...


... and created a /browse request handler


 <requestHandler name="/browse" class="solr.SearchHandler">
     <lst name="defaults">
       <str name="echoParams">explicit</str>

       <!-- VelocityResponseWriter settings -->
       <str name="wt">velocity</str>
       <str name="v.template">browse</str>
       <str name="v.layout">layout</str>
       <str name="title">Archives</str>

       <!-- Query settings -->
       <str name="defType">edismax</str>
     
I have also copied the 'velocity' directory from a 4.9 core to the 

/archives/solr-5.0.0/server/solr/mycore1/conf directory  

as well as the toolbox.xml file.


The mycore1's conf directory now contains the following files and directories:

currency.xml  lang  protwords.txt  _rest_managed.json  schema.xml  
solrconfig.xml  stopwords.txt  synonyms.txt  toolbox.xml  velocity



When I type http://myserver.com:8990/solr/mycore1/select?q=*:* in a browser, I 
get an XML page, not HTML generated by Velocity, as expected.

<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">5</int>
<lst name="params"/>
</lst>
<result name="response" numFound="0" start="0" maxScore="0.0"/>
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="ymd"/>
</lst>
<lst name="facet_dates"/>
<lst name="facet_ranges"/>
<lst name="facet_intervals"/>
</lst>
<lst name="highlighting"/>
</response>


What did I miss?

Cheers,

Philippe








---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@velocity.apache.org
For additional commands, e-mail: user-h...@velocity.apache.org

Reply via email to