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 DHast <ha...@gmail.com> on 2009/09/17 18:20:25 UTC

copyfield at search time?

is it possible to do somehting like this:

Now im wondering how to do something like this:
  
<field name="member_of_facet" type="string" indexed="true" stored="true"
multiValued="true"/> 

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


  <copyField source="member_of" dest="member_of_facet" /> 


if so, i dont seem to be making progress
thanks
-- 
View this message in context: http://www.nabble.com/copyfield-at-search-time--tp25491979p25491979.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: copyfield at search time?

Posted by Chris Harris <ry...@gmail.com>.
If the reason you're copying from member_of to member_of_facet is
because faceting isn't allowed on multi-valued fields, then that's no
longer true. See

    https://issues.apache.org/jira/browse/SOLR-475

which is in the trunk and which will be available in the 1.4 release.
If you're running an earlier version of Solr, maybe something like
this is necessary. (If multi-valued faceting is possible at all in
earlier versions.)

In any case, I'm not sure why the title of your message is "copyfield
at search time". Copyfield stuff happens at indexing time, not search
time. So if your approach is going to work, you're going to need to
reindex for it to take effect.

2009/9/17 DHast <ha...@gmail.com>:
>
> is it possible to do somehting like this:
>
> Now im wondering how to do something like this:
>
> <field name="member_of_facet" type="string" indexed="true" stored="true"
> multiValued="true"/>
>
> <field name="member_of" type="string" indexed="true" stored="true"
> multiValued="false"/>
>
>
>  <copyField source="member_of" dest="member_of_facet" />
>
>
> if so, i dont seem to be making progress
> thanks
> --
> View this message in context: http://www.nabble.com/copyfield-at-search-time--tp25491979p25491979.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>