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.

Solr Composite Unique key from existing fields in schema

2014-12-09 Thread Rajesh Panneerselvam
Hi, I'm using DIH to index my entities. I'm facing an issue while delta-import. I've declared multiple entities in one data-config.xml. The entities will have different primary key. Now if I want to delta-import how should I mention the UniqueKey in schema.xml. My data-config structure is like t

Re: Solr Composite Unique key from existing fields in schema

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
lucene.472066.n3.nabble.com/Solr-Composite-Unique-key-from-existing-fields-in-schema-tp4116036p4116198.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr Composite Unique key from existing fields in schema

2014-02-08 Thread tamanjit.bin...@yahoo.co.in
context: http://lucene.472066.n3.nabble.com/Solr-Composite-Unique-key-from-existing-fields-in-schema-tp4116036p4116195.html Sent from the Solr - User mailing list archive at Nabble.com.

Solr Composite Unique key from existing fields in schema

2014-02-07 Thread Anurag Verma
Hi, I am developing a search application using SOLR. I don't have primary key in any table. Composite key is being used in my application. How do i implement composite key as unique key in this case. please help. i am struggling. -- Thanks & Regards Anurag Verma Arise! Awake! And stop not ti

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
e update processor, and pick your composite key field name as well. And set the delimiter string as well in the concat update processor. I managed to reverse the field order from what you requested (userid, docid). I used the standard Solr example schema, so I used dynamic fields for the two id

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
k your composite key field name as well. And set the delimiter string as well in the concat update processor. I managed to reverse the field order from what you requested (userid, docid). I used the standard Solr example schema, so I used dynamic fields for the two ids, but use your own field names.

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

Solr Composite Unique key from existing fields in schema

2013-05-28 Thread Rishi Easwaran
Hi All, Historically we have used a single field in our schema as a uniqueKey. docid Wanted to change this to a composite key something like userid-docid. I know I can auto generate compositekey at document insert time, using custom code to generate a new field, but wanted to know if th