Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 65838 invoked from network); 2 Jun 2006 11:05:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2006 11:05:14 -0000 Received: (qmail 50428 invoked by uid 500); 2 Jun 2006 11:05:12 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 49674 invoked by uid 500); 2 Jun 2006 11:05:10 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Delivered-To: moderator for users@cocoon.apache.org Received: (qmail 47845 invoked by uid 99); 2 Jun 2006 11:01:41 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kochch@gmail.com designates 66.249.92.170 as permitted sender) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=f8lKYon9JKRpEB3GQ0bo4WpT4Nm9Uj3FYQfhcYWuboUhZY2OF8LQTEaMxcFbowu8oLKoCaawoEhaL0hYQo1TKFV0QhOSWQP52SwB8iuch9dv5yJGShlsR0aPfjuONWcNg1+EOEeTq+SiBBXpRd7E8x4f8ZmTxF+FgUyQg7Vnyv8= Message-ID: Date: Fri, 2 Jun 2006 13:01:17 +0200 From: 321los@gmail.com Sender: kochch@gmail.com To: users@cocoon.apache.org Subject: Completely lost with Lucene MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5932_1517362.1149246077408" X-Google-Sender-Auth: 24b17f18908df17c X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_5932_1517362.1149246077408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'd like to use the Lucene search in my page, but reading the docs at http://cocoon.apache.org/2.1/userdocs/concepts/xmlsearching.html and http://wiki.apache.org/cocoon/LuceneIndexTransformer does not really enlighten me. My case: The content of my pages is generated dynamically, getting the data from a mysql database. Something like that, So calling e.g. the address http://localhost:8080/cocoon/karte?lfdnr=412shows me the results of the page with the sql primary key 412 transformed via style.xsl. Lucene should be able to index the columns 'lfd_nr', 'venue' and 'description' (without indexing the other 6 columns of the table) and should give me the results, if those fields match my search query obviously, like shown above (http://localhost:8080/cocoon/karte?lfdnr='pk') Declaring the LuceneIndexTransformer of my sitemap is the only thing I have completely understood from the wiki. ;) A little guidance would be appreciated very much. (+ what to write in which files, since that does not always emanate from the wiki) Thanks in advance Marco ------=_Part_5932_1517362.1149246077408 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I'd like to use the Lucene search in my page, but reading the docs at http://cocoon.apache.org/2.1/userdocs/concepts/xmlsearching.html and http://wiki.apache.org/cocoon/LuceneIndexTransformer does not really enlighten me.

My case:
The content of my pages is generated dynamically, getting the data from a mysql database. Something like that,

<map:match pattern="karte">
    <map:generate type="file" src="documents/xml/sql.xml"/>
    <map:transform type="sql">
        <map:parameter name="use-connection" value="mysql-pool"/>
        <map:parameter name="lfdnr" value="{request-param:lfdnr}"/>
     </map:transform>
     <map:transform src="documents/stylesheets/style.xsl"/>
     <map:serialize type="html"/>
</map:match>

So calling e.g. the address http://localhost:8080/cocoon/karte?lfdnr=412 shows me the results of the page with the sql primary key 412 transformed via style.xsl.

Lucene should be able to index the columns 'lfd_nr', 'venue' and 'description' (without indexing the other 6 columns of the table) and should give me the results, if those fields match my search query obviously, like shown above ( http://localhost:8080/cocoon/karte?lfdnr='pk')

Declaring the LuceneIndexTransformer of my sitemap is the only thing I have completely understood from the wiki. ;)
A little guidance would be appreciated very much. (+ what to write in which files, since that does not always emanate from the wiki)

Thanks in advance
Marco ------=_Part_5932_1517362.1149246077408--