svn commit: r791007 - /lenya/branches/BRANCH_2_0_X/src/modules/lucene/sitemap.xmap

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Fri Jul  3 20:35:14 2009
New Revision: 791007

URL: http://svn.apache.org/viewvc?rev=791007&view=rev
Log:
Add search query type 'raw' to support Lucene query parser syntax request parameters.

Modified:
    lenya/branches/BRANCH_2_0_X/src/modules/lucene/sitemap.xmap

Modified: lenya/branches/BRANCH_2_0_X/src/modules/lucene/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/lucene/sitemap.xmap?rev=791007&r1=791006&r2=791007&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/lucene/sitemap.xmap (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/lucene/sitemap.xmap Fri Jul  3 20:35:14 2009
@@ -100,6 +100,12 @@
               <map:parameter name="query" value="{imageQueryString:queryString}"/>
             </map:generate>
           </map:when>
+          <map:when test="raw">
+            <map:generate type="search">
+              <map:parameter name="index" value="{index-path:{1}-{2}}"/>
+              <map:parameter name="query" value="{request-param:queryString}"/>
+            </map:generate>
+          </map:when>
           <map:otherwise>
             <map:generate type="search">
               <map:parameter name="index" value="{index-path:{1}-{2}}"/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.