| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0"> |
| <map:components> |
| <map:generators default="file"> |
| <map:generator name="request" |
| src="org.apache.cocoon.generation.RequestGenerator"/> |
| <map:generator name="solr-search" |
| logger="sitemap.generator.searchgenerator" |
| src="org.apache.forrest.solr.client.SolrSearchGenerator" /> |
| </map:generators> |
| <map:transformers default="xslt"> |
| <map:transformer logger="sitemap.transformer.solr" name="solr" pool-max="16" |
| src="org.apache.forrest.solr.client.SolrQueryTransformer" /> |
| </map:transformers> |
| <map:serializers default="xml-utf8" > |
| <map:serializer name="xml-utf8" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer"> |
| <encoding>UTF-8</encoding> |
| </map:serializer> |
| </map:serializers> |
| </map:components> |
| <map:pipelines> |
| <map:pipeline> |
| <!-- Will dispatch a query against the solr server --> |
| <map:match pattern="solr-search.xml"> |
| <map:generate type="solr-search"> |
| <map:parameter name="destinationUrl" value="{properties:solr.select.url}"/> |
| </map:generate> |
| <map:transform type="solr"/> |
| <map:transform src="{lm:solr.transform.solrQueryResult.xdocs}"> |
| <map:parameter name="searchForm" value="{request:servletPath}"/> |
| </map:transform> |
| <map:serialize/> |
| </map:match> |
| <!--Generating xdocs--> |
| <map:match pattern="**.do.xml"> |
| <map:generate src="cocoon://{1}.do"/> |
| <map:transform src="{lm:solr.transform.solrResult.xdocs}"> |
| <map:parameter name="command" value="{1}"/> |
| </map:transform> |
| <map:serialize/> |
| </map:match> |
| </map:pipeline> |
| </map:pipelines> |
| </map:sitemap> |