Re: custom unique numeric id

2018-02-23 Thread Clay McDonald
Thank you, Clay

> On Feb 23, 2018, at 6:29 PM, Shawn Heisey  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

2018-02-23 Thread Shawn Heisey
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



custom unique numeric id

2018-02-23 Thread Clay McDonald
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