Well i guess its still not working.. 
I'm not getting an error but im not getting an update either... 

<field name="metatag.date.single" type="date" stored="true" indexed="true" /> 
<field name="date" type="tdate" stored="true" indexed="true" /> 

My BASH script: 
$UUID contains a valid, existing UUID in SOLR. 
$CURL_RESULT is a valid UTC timestamp 



curl -X POST -H 'Content-Type: application/json' 
'https://snip/solr/TEST_CORE/update/json/docs' --data-binary 
'{"uuid":"'$UUID'","metatag.date.single":{ "set":"'$CURL_RESULT'"}}' 

the previous curl is immediatley followed by... 

curl -s 'https://snip/solr/TEST_CORE/update?commit=true' 




Thank you all for your incredible patience. 

K 

----- Original Message -----

From: "KRIS MUSSHORN" <mussho...@comcast.net> 
To: solr-user@lucene.apache.org 
Sent: Friday, December 23, 2016 10:14:59 AM 
Subject: Re: copying all fields to one specific single value field 

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