forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thors...@apache.org
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

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">



Mime
View raw message