The problem is exactly as stated, sending multiple fields to the
_same_ destination in copyField directives requires that the
destination field be multiValued, so you can't do what you're
describing unless the destination field is multiValued.

There is no requirement that faceting be performed on single-valued fields.

But this seems like an XY problem. From the naming of your fields
(suggest_facet) I'm not sure you want to deal with faceting at all.
Are you trying to implement autosuggest perhaps? It would be useful if
you stated the user problem you're trying to solve, because on the
surface it looks like you're not going down the best path.

That may just mean I don't understand the problem at all. And I'm
quite ignorant of what special handling is necessary for autosuggest
in Japanese so may be way off base here.

Best,
Erick

On Fri, Dec 23, 2016 at 7:14 AM, KRIS MUSSHORN <mussho...@comcast.net> wrote:
> work backwards and look at the type definition for fields named content, 
> title, author, and body. one of them has a type defined as multivalued
>
> ----- Original Message -----
>
> From: "武井宜行" <nta...@sios.com>
> To: solr-user@lucene.apache.org
> Sent: Friday, December 23, 2016 10:05:01 AM
> Subject: copying all fields to one specific single value field
>
> Hi,all
>
> I would like to copy all fields to one specific single value field.
> The reason is that I must use facet query.I think that
> the fileld to use facet query needs not multi value but single value.
>
> In order to achive this,I've tried to use CopyFiled in schema.xml,but
> Error occured.
>
> The Schema is as bellow.
> ※I'd like use facet query to "suggest_facet" field.
>
> <field name="title" type="text_ja" indexed="true" stored="true"/>
> <field name="author" type="text_ja" indexed="true" stored="true"/>
> <field name="body" type="text_ja" indexed="true" stored="true"/>
> <field name="suggest_facet" type="text_ja" indexed="true" stored="true" />
> <copyField source="content" dest="suggest_facet"/>
> <copyField source="title" dest="suggest_facet"/>
> <copyField source="author" dest="suggest_facet"/>
> <copyField source="body" dest="suggest_facet"/>
>
> When I tried to index,thf following error ocuured.
>
> 2016-12-22 03:47:38.139 WARN (coreLoadExecutor-6-thread-3) [ ]
> o.a.s.s.IndexSchema Field suggest_facet is not multivalued and destination
> for multiple copyFields (6)
>
> How do I Solve this in order to copy all fields to one specific single
> value field?
>

Reply via email to