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.
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
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.
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.
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
-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
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
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
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
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
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
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
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.
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
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
15 matches
Mail list logo