On 8/18/2016 5:10 PM, Peri Subrahmanya wrote:
> Hi,
>
> I have a simple one-to-many relationship setup in the data-import.xml and 
> when I try to index it using the dataImportHandler, Solr complains of “no 
> unique id found”. 
>
> managed-schema.xml
> <uniqueKey>id</uniqueKey>
> solrconfig,xml:
> <updateRequestProcessorChain>
>   <processor class="solr.UUIDUpdateProcessorFactory">
>     <str name="fieldName">id</str>
>   </processor>
<snip>
>             <entity child='true' name=“product"
>                     query=“select blah blah from course where 
> catalog_id=‘${catalog.catalog_id}'">
>             </entity>

Can you get the full error message(s) from the solr.log file, including
the full java stacktrace(s)?  Many error messages are dozens of lines
long, because they include Java stacktraces.  For correct
interpretation, we also need the exact version of Solr that you're
running.  Your subject indicates Solr6, but there are three releases so
far in the 6.x series.

If you want your update processor chain to be used by DIH, I think you
need to make it the default chain with 'default="true"' in the opening
tag.  There might be a way to apply a specific update chain in DIH, but
if there is, you need to give it a name, which yours doesn't have.

I am using a custom update chain with both DIH and explicit update
requests, which I do like this:

<updateRequestProcessorChain name="my_custom" default="true">

Thanks,
Shawn

Reply via email to