Hello,

How would I go about creating an aggregate entry? Does it go in the
data-config.xml file?

Also, out of curiosity, how can I access the UUIDField variable? It mat be
required for something else.

Cheers


Erik Hatcher wrote:
> 
> 
> On Apr 28, 2009, at 9:49 AM, ahammad wrote:
>> Is it possible for Solr to assign a unique number to every document?
> 
> Solr has a UUIDField that can be used for this.  But...
> 
>> For example, let's say that I am indexing from several databases with
>> different data structures. The first one has a unique field called  
>> artID,
>> and the second database has a unique field called SRNum. If I want  
>> to have
>> an interface that allows me to search both of those data sources, it  
>> makes
>> it easier to have a single field per document that is common to both
>> datasources...maybe something like uniqueDocID or something like that.
>>
>> That field does not exist in the DB. Is it possible for Solr to  
>> create that
>> field and assign a number while it's indexing?
> 
> I recommend an aggregate unique key field, using maybe this scheme:
> 
>     <table-name>-<primary key value>'
> 
>       Erik
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Unique-Identifiers-tp23277538p23318361.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to