Re: Solr Composite Unique key from existing fields in schema

2014-12-09 Thread Ahmet Arslan
Hi, Once I used template transformer to generate unique id across entities. http://wiki.apache.org/solr/DataImportHandler#TemplateTransformer On Wednesday, December 10, 2014 8:51 AM, Rajesh Panneerselvam wrote: Hi, I'm using DIH to index my entities. I'm facing an issue while delta-import.

Re: Solr Composite Unique key from existing fields in schema

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
Also take a look at http://wiki.apache.org/solr/UniqueKey#Use_cases_which_require_a_unique_key_generated_from_data_in_the_document -- View this message in context: http://lucene.

Re: Solr Composite Unique key from existing fields in schema

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
You could use a combination of all your composite key columns and put them in a field in solr which can then be used as the unique key. As in if you have two columns c1 and c2, you could have a field in solr which have the value as c1_c2 or something on those lines. -- View this message in cont

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Jack Krupansky
-Original Message- From: Jack Krupansky To: solr-user Sent: Tue, May 28, 2013 4:33 pm Subject: Re: Solr Composite Unique key from existing fields in schema The TL;DR response: Try this: userid_s id docid_s id id -- That will assure that the userid g

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Rishi Easwaran
like to avoid the overhead of storing this field in my index. Thanks, Rishi. -Original Message- From: Jack Krupansky To: solr-user Sent: Tue, May 28, 2013 4:33 pm Subject: Re: Solr Composite Unique key from existing fields in schema The TL;DR response: Try this

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Jack Krupansky
e multiple input fields - whether this is a bug or a feature or simply undefined. -- Jack Krupansky -Original Message- From: Rishi Easwaran Sent: Tuesday, May 28, 2013 3:54 PM To: solr-user@lucene.apache.org Subject: Re: Solr Composite Unique key from existing fields in schema I though

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Rishi Easwaran
I thought the same, but that doesn't seem to be the case. -Original Message- From: Jack Krupansky To: solr-user Sent: Tue, May 28, 2013 3:32 pm Subject: Re: Solr Composite Unique key from existing fields in schema The order in the ID should be purely dependent on the

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Jack Krupansky
Composite Unique key from existing fields in schema You can do this by combining the builtin update processors. Add this to your solrconfig: docid_s userid_s id id -- Add documents such as: curl "http://localhost:8983/solr/update?commit=true&update.chain=com

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Rishi Easwaran
12345 1 I get the following compositeId 12345-1 . In this case the compositeId is not unique and I am getting duplicates. Thanks, Rishi. -Original Message- From: Jack Krupansky To: solr-user Sent: Tue, May 28, 2013 12:07 pm Subject: Re: Solr Composite Unique key from existing

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Rishi Easwaran
Thanks Jack, looks like that will do the trick from me. I will try it out. -Original Message- From: Jack Krupansky To: solr-user Sent: Tue, May 28, 2013 12:07 pm Subject: Re: Solr Composite Unique key from existing fields in schema You can do this by combining the builtin

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Jack Krupansky
You can do this by combining the builtin update processors. Add this to your solrconfig: docid_s userid_s id id -- Add documents such as: curl "http://localhost:8983/solr/update?commit=true&update.chain=composite-id"; \ -H 'Content-type:application/json' -d ' [{"

Re: Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Jan Høydahl
The cleanest is to do this from the outside. Alternatively, it will perhaps work to populate your uniqueKey in a custom UpdateProcessor. You can try. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com 28. mai 2013 kl. 17:12 skrev Rishi Easwaran : > Hi All, > > Historic