List Info

Thread: Re: Configuring the search index for each publication really necessary?




Re: Configuring the search index for each publication really necessary?
country flaguser name
Switzerland
2008-03-24 12:18:14
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-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


Re: Configuring the search index for each publication really necessary?
user name
2008-03-25 07:54:45
Andreas Hartmann wrote:
> 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"/>

haven't thought about it a lot, but off the cuff i like the
idea.


-- 
Jörn Nettingsmeier

"One of my most productive days was throwing away 1000
lines of code."
  - Ken Thompson.

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribelenya.apache.org
For additional commands, e-mail: dev-helplenya.apache.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )