List Info

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




Configuring the search index for each publication really necessary?
country flaguser name
Switzerland
2008-03-24 11:04:05
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
- configure the indexable fields for each resource type
(have to
   conform to the corresponding index XSLTs)

The index structure would be automatically derived from this

configuration (basically the union of all fields). Changing
the meta 
data or resource type configuration would certainly require
to re-index 
the whole content of the web application, but IMO this is
not a big issue.

WDYT?

-- 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


[1]

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