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

Reply via email to