You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2007/01/14 20:09:14 UTC

svn commit: r496116 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft

Author: thorsten
Date: Sun Jan 14 11:09:13 2007
New Revision: 496116

URL: http://svn.apache.org/viewvc?view=rev&rev=496116
Log:
adding more documentation to the search contract. pointing out that one need to change the solr server config before using the contract.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft?view=diff&rev=496116&r1=496115&r2=496116
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft Sun Jan 14 11:09:13 2007
@@ -22,11 +22,15 @@
   
   <description>
     <p> This is the solr-search contract, it will output a search form to search an Apache solr server. </p>
-    <p>In your solr server change the following field definition in the schema.xmlotherwise
-      you need to prefix your queries. . </p>
-    <source>
-      <![CDATA[<defaultSearchField>content</defaultSearchField>]]>
-    </source>
+    <p>In your solr server change the following field definition in the schema.xml. We assume
+        "id" is already set as "uniqueKey" and you changed the "defaultSearchField" to
+        "content" otherwise you need to prefix your queries.</p>
+      <source><![CDATA[<field name="content" type="text" indexed="true" stored="true" />
+<field name="title" type="text" indexed="true" stored="true"/>
+<field name="subtitle" type="text" indexed="true" stored="true"/>
+<field name="abstract" type="text" indexed="true" stored="true"/>
+<field name="version" type="text" indexed="true" stored="true"/>
+<field name="author" type="text" indexed="true" stored="true" multiValued="true"/>]]> </source>
   </description>
   <usage><![CDATA[<forrest:contract name="solr-search">
  <forrest:property name="hidden">