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 Clay McDonald <st...@bateswhite.com> on 2018/02/23 21:57:37 UTC

custom unique numeric id

Hello,

I'm new to Solr/Lucene and I'd like to know if there is a way to auto-create a unique numeric id in a custom field that we can them reference when making calls to the index from Python. It seems to use that using a numeric id would speed up our calls to and fro Solr from our PySpark ML application.

Thoughts?

Thanks,

Clay


Re: custom unique numeric id

Posted by Clay McDonald <st...@bateswhite.com>.
Thank you, Clay

> On Feb 23, 2018, at 6:29 PM, Shawn Heisey <ap...@elyograg.org> wrote:
> 
>> On 2/23/2018 2:57 PM, Clay McDonald wrote:
>> I'm new to Solr/Lucene and I'd like to know if there is a way to auto-create a unique numeric id in a custom field that we can them reference when making calls to the index from Python. It seems to use that using a numeric id would speed up our calls to and fro Solr from our PySpark ML application.
> 
> This should do it:
> 
> https://wiki.apache.org/solr/UniqueKey#UUID_techniques
> 
> Thanks,
> Shawn
> 

Re: custom unique numeric id

Posted by Shawn Heisey <ap...@elyograg.org>.
On 2/23/2018 2:57 PM, Clay McDonald wrote:
> I'm new to Solr/Lucene and I'd like to know if there is a way to auto-create a unique numeric id in a custom field that we can them reference when making calls to the index from Python. It seems to use that using a numeric id would speed up our calls to and fro Solr from our PySpark ML application.

This should do it:

https://wiki.apache.org/solr/UniqueKey#UUID_techniques

Thanks,
Shawn