[opencms-dev] Search Module

Mariano Barcia opencms at colaborativa.net
Mon Sep 27 17:44:52 CEST 2004


Daniel,

1. Incremental indexing upon notification was under testing in v5. I
don't know the status of this in v6
2. Structured content like the newsmodule was being indexed in v5. I
don't know the status of this in v6
3. I'm attaching a JSP for the search results page, and I'm including
below an example of the search form (top box).
HTH,
--mariano


**************** SEARCH FORM EXAMPLE ********************
<span id="searchForm">
<form id="search" action="<cms:link>search.html" method="get"
enctype="text/plain">
            <label id="searchInputLabel" for="searchInput"><fmt:message
key="search" /></label>
            <input name="query" type="text" size="20">
            <input type="image" class="override"
src="<cms:link>/add-ons/images/common/buttons/button-search.gif</cms:lin
k>" id="searchDATA"><%
            for (Iterator i = searchManager.getIndexNames().iterator();
i.hasNext();) {
                String indexName = (String)i.next(); 
                CmsSearchIndex searchIndex =
searchManager.getIndex(indexName);
                if(locale.equals(searchIndex.getLanguage())){ %><input
type="hidden" name="index" value="<%= indexName %>"><% }
                    }  %><input type="hidden" name="field"
value="title"><input type="hidden" name="field" value="keywords"><input
type="hidden" name="field" value="description"><input type="hidden"
name="field" value="content"></form>    </span>        
</div>
**************** END SEARCH FORM EXAMPLE ********************


--mariano


-----Mensaje original-----
De: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] En nombre de Daniel Wiesner
Enviado el: Lunes, 27 de Septiembre de 2004 11:35 a.m.
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] Search Module

Mariano,

it would be nice to have some lines of example - JSP - Code. Is it 
possible to search News from the Newsmodule also and how can I automatic

rebuild  the index after changing some documents?

Daniel

Mariano Barcia schrieb:

>Daniel,
>We have a 5.3.5 website using the built-in search module (not the
recent
>6.0 alpha 1 but I suppose it's the same) What do you need to know?
Maybe
>we can be of help.
>--mariano
>
>-----Mensaje original-----
>De: opencms-dev-bounces at opencms.org
>[mailto:opencms-dev-bounces at opencms.org] En nombre de Daniel Wiesner
>Enviado el: Lunes, 27 de Septiembre de 2004 05:08 a.m.
>Para: The OpenCms mailing list
>Asunto: [opencms-dev] Search Module
>
>hello,
>
>has anyone experiences using lucene-search module in 6.0 alpha?
>
>Daniel
>
>
>  
>


-- 
-----------------------------------------------------------
AV-Studio Kommunikationsmedien GmbH Halle            
Kurallee 13, D-06114 Halle (Saale)

Fon: +49 (0345) 20 999 -0 * Fax: +49 (0345) 20 999 -20
email: office at av-studio.de * http://www.av-studio.de
-----------------------------------------------------------



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit
http://mail.opencms.org/mailman/listinfo/opencms-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: search-results.jsp
Type: application/octet-stream
Size: 1541 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040927/49b7086b/attachment.obj>


More information about the opencms-dev mailing list