[opencms-dev] OpenCms search - max search results = 10

Steve Bryan steve at bright-interactive.com
Fri Jan 30 13:42:06 CET 2009


Hi Dipak

Check this article:
http://mail.opencms.org/pipermail/opencms-dev/2007q4/028564.html

The solution here is to use N different mappings.

Regards
Steve

-----Original Message-----

Date: Fri, 30 Jan 2009 11:28:47 +0530
From: "Kesarkar, Dipak" <dipak.kesarkar at capgemini.com>
Subject: Re: [opencms-dev] OpenCms search - max search results = 10
To: <opencms-dev at opencms.org>
Message-ID:
	
<7C7C72D1EFE973489F3AF325C7C1BABC01BB7B3B at BOMEX002.corp.capgemini.com>
Content-Type: text/plain; charset="us-ascii"

Hi,

 

I am using OpenCms 7.0.5 with Lucene search engine.

I need to index XML content for which I have a following field
configuration in the opencms-search.xml

 

            <fieldconfiguration>

                <name>DESC_FIELD_CONFIG</name>

                <fields>

                    <field name="Description" store="true" index="true"
excerpt="true">

                        <mapping
type="item">country[1]/record[1]/description[1]</mapping>

                    </field>

                </fields>

            </fieldconfiguration>

 

With the above field configuration, only 1st description node of the 1st
record of the 1st country gets indexed.

I need to index all the description nodes, of all the records of all the
country nodes, in my XML file.

I tried different XPATH notations, but it seems OpenCms does not
recognize those.

 

Does anybody have a solution to this?

 

 

Thanks,

Dipak






More information about the opencms-dev mailing list