[opencms-dev] Lucene Search - How to create a search form!

Oliver Mauckner Oliver.Mauckner at sattelmacher.com
Mon Sep 8 12:54:01 CEST 2003


Hello,
 
I got the lucene search working! The files get indexed as I want it!
My problem: The search works if I call the simple-search directly! I
added the line query = "Esprit"
Then I get all the results I want!
Now I want to call the search function out of an html file with a
parameter how do I do that?
 
I know that I have to use that line:
<cms:import
page="/system/modules/net.grcomputing.opencms.search.lucene/elements/sim
ple-search.jsp"/>
and
<input type="text" name="q" value="your search string here">
 
can somebody give me some simple html code how I can submit the
parameter?
 
I created a link but It's not working!
 
[<a class="top-subnav"
href="/system/modules/net.grcomputing.opencms.search.lucene/elements/sim
ple_search.jsp">OK</a>]
 
can somebody help me? I want that the search is submitted by clicking
[OK]
 
Thank you
 
 
------------------------------------------------------------------------
--------
Oliver Mauckner
Theo Sommer GmbH
66955 Pirmasens
Sattelmacher.com
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030908/92395a7c/attachment.htm>


More information about the opencms-dev mailing list