[ 
https://issues.apache.org/jira/browse/SOLR-5003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13700923#comment-13700923
 ] 

Yonik Seeley commented on SOLR-5003:
------------------------------------

{code}
+    //validate our row id
+    if (rowId != null && rowId.equals("") == false){
+      SchemaField sf = schema.getFieldOrNull(rowId);
+      if(sf == null)
+        throw new SolrException( SolrException.ErrorCode.BAD_REQUEST,"Invalid 
field name for rowId:'"+ rowId +"'");
+    }
{code}

In general, we should let downstream handle this type of stuff so things like 
schemaless will work.
                
> Add option to add rowid/line number to CSV Update Handler
> ---------------------------------------------------------
>
>                 Key: SOLR-5003
>                 URL: https://issues.apache.org/jira/browse/SOLR-5003
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Grant Ingersoll
>            Assignee: Grant Ingersoll
>            Priority: Minor
>             Fix For: 5.0, 4.4
>
>         Attachments: SOLR-5003.patch
>
>
> In some cases of exporting from a DB to CSV, the only "unique id" you have is 
> the rowid.  This issue is to add an optional (off by default) rowid field to 
> the document which simply contains the line number of the row.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to