forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject svn commit: r496116 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft
Date Sun, 14 Jan 2007 19:09:14 GMT
Author: thorsten
Date: Sun Jan 14 11:09:13 2007
New Revision: 496116

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
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.output.solr/resources/themes/common/html/solr-search.ft
+++ 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 @@
     <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"/>]]>
   <usage><![CDATA[<forrest:contract name="solr-search">
  <forrest:property name="hidden">

View raw message