Andreas Hartmann schrieb:
> Hi Lenya devs,
>
> atm the index fields are configured for each
publication:
>
>
> <index id="default-live"
analyzer="stopword_en"
>
directory="lenya/pubs/default/work/lucene/index/live/in
dex">
> <structure>
> <field id="url"
type="keyword" />
> <field id="title"
type="text" storetext="true"/>
> <field id="description"
type="text" storetext="true"/>
> <field id="subject"
type="keyword" storetext="true" />
> <field id="body"
type="text" storetext="true"/>
> </structure>
> </index>
>
>
> IMO this is an inappropriate place for this
configuration. Furthermore,
> it has to match the index XSLTs of all resource types.
>
> Wouldn't it be better to
>
> - index all meta data fields
It might be useful to add an optional "searchable"
attribute to the meta
data declaration:
<component-instance name="http://purl.or
g/dc/elements/1.1/"
class="org.apache.lenya.cms.metadata.ConfigurableElemen
tSet">
<element name="title"
multiple="false" editable="true"
searchable="true"/>
...
</component-instance>
All meta data would be indexed by default (for internal
queries), but
only some specific ones would be included when the user
issues a
document search.
-- Andreas
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe lenya.apache.org
For additional commands, e-mail: dev-help lenya.apache.org
|