Re: dynamically create unique key

2012-04-30 Thread solr_noob
solution? thanks for your input/help -- View this message in context: http://lucene.472066.n3.nabble.com/dynamically-create-unique-key-tp1869924p3951857.html Sent from the Solr - User mailing list archive at Nabble.com.

dynamically create unique key

2010-11-09 Thread Christopher Gross
I'm trying to use Solr to store information from a few different sources in one large index. I need to create a unique key for the Solr index that will be unique per document. If I have 3 systems, and they all have a document with id=1, then I need to create a uniqueId field in my schema that

Re: dynamically create unique key

2010-11-09 Thread Ken Stanley
On Tue, Nov 9, 2010 at 10:39 AM, Christopher Gross cogr...@gmail.com wrote: I'm trying to use Solr to store information from a few different sources in one large index.  I need to create a unique key for the Solr index that will be unique per document.  If I have 3 systems, and they all have a

Re: dynamically create unique key

2010-11-09 Thread Christopher Gross
Thanks Ken. I'm using a script with Java/SolrJ to copy documents from their original locations into the Solr Index. I wasn't sure if the copyField would help me, but from your answers it seems that I'll have to handle it on my own. That's fine -- it is definitely not hard to pass a new field

Re: dynamically create unique key

2010-11-09 Thread Ken Stanley
On Tue, Nov 9, 2010 at 10:53 AM, Christopher Gross cogr...@gmail.com wrote: Thanks Ken. I'm using a script with Java/SolrJ to copy documents from their original locations into the Solr Index. I wasn't sure if the copyField would help me, but from your answers it seems that I'll have to

Re: dynamically create unique key

2010-11-09 Thread Chris Hostetter
: one large index. I need to create a unique key for the Solr index that will : be unique per document. If I have 3 systems, and they all have a document : with id=1, then I need to create a uniqueId field in my schema that : contains both the system name and that id, along the lines of: sysa1,

Re: dynamically create unique key

2010-11-09 Thread Christopher Gross
Thanks Hoss, I'll look into that! -- Chris On Tue, Nov 9, 2010 at 1:43 PM, Chris Hostetter hossman_luc...@fucit.orgwrote: : one large index. I need to create a unique key for the Solr index that will : be unique per document. If I have 3 systems, and they all have a document : with

Re: dynamically create unique key

2010-11-09 Thread Dennis Gearon
create unique key Thanks Hoss, I'll look into that! -- Chris On Tue, Nov 9, 2010 at 1:43 PM, Chris Hostetter hossman_luc...@fucit.orgwrote: : one large index. I need to create a unique key for the Solr index that will : be unique per document. If I have 3 systems, and they all have

Re: dynamically create unique key

2010-11-09 Thread Lance Norskog
or reinstalls would reuse the same installation/instance ID. From: Christopher Gross cogr...@gmail.com To: solr-user@lucene.apache.org Sent: Tue, November 9, 2010 11:37:03 AM Subject: Re: dynamically create unique key Thanks Hoss, I'll look into that! -- Chris On Tue, Nov 9, 2010 at 1:43 PM