You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Rode González <ro...@libnova.es> on 2011/08/11 18:27:50 UTC

copyfields in schema.xml

Hi all.

 

if in schema.xml we put something like:

 

<field name="title" type="string" indexed="false" stored="false"
multiValued="true"/>

<field name="titulo" type="string" indexed="true" stored="true"
multiValued="true"/>

<field name="text" type="text_general" indexed="true" stored="false"
multiValued="true"/>

 

<copyField source="title" dest="titulo"/>

<copyField source="titulo" dest="text"/>

 

Can I expect that in 'text' field I have the 'title' and the 'titulo'
contents ?

 

thanks ;)

 

Note: in our app, the titles refer to books that can be named in several
different ways .

 

---

Rode González

 

  _____  

No se encontraron virus en este mensaje.
Comprobado por AVG - www.avg.com
Versión: 10.0.1392 / Base de datos de virus: 1520/3826 - Fecha de
publicación: 08/10/11


RE: copyfields in schema.xml

Posted by Michael Ryan <mr...@moreover.com>.
Nope. The 'text' field will just have the 'titulo' contents. To have both, you would have to do something like this:

<copyField source="title" dest="titulo"/>
<copyField source="title" dest="text"/>
<copyField source="titulo" dest="text"/>

-Michael