Re: Unique ID with shared content field

2010-11-17 Thread Thyago
Hi, Yes, maybe i can use a field multivalued , with all my contents with a unique id. My field "code" maybe can be a field multivalued , where each code is a diferente reference for the same content. Can i directly update or remove one code inside a multi-valued field ? Like this query: - Need a

Re: Unique ID with shared content field

2010-11-16 Thread Erick Erickson
Can you explain a bit more? Because on the face of it, "unique IDs but shared content" doesn't make sense. The point of unique IDs is that they identify documents uniquely. A more usual setup is to have the content correspond to the unique id. Is what you want really making your "code" field multi

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
the tasks in one SolrQuery. I am creating queries in Solrj. -Original Message- From: Raghunandan Rao [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 3:45 PM To: solr-user@lucene.apache.org Subject: RE: Unique id Ok. I got your point. So I need not require ID field in the second view. I w

RE: Unique id

2008-11-21 Thread Raghunandan Rao
PROTECTED] Sent: Friday, November 21, 2008 3:45 PM To: solr-user@lucene.apache.org Subject: RE: Unique id Ok. I got your point. So I need not require ID field in the second view. I will hence remove required="true" in schema.xml. What I thought was unique ID makes indexing easier or used t

RE: Unique id

2008-11-21 Thread Raghunandan Rao
PROTECTED] Sent: Friday, November 21, 2008 3:36 PM To: solr-user@lucene.apache.org Subject: Re: Unique id Well, In that case, what do you want to search for? If I were you, I would make my index consist of tasks (and I assume that is what you are trying to do). So why don't you just use

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
Sorry for missing that column earlier. I think it should make sense now. -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 3:18 PM To: solr-user@lucene.apache.org Subject: Re: Unique id And in case that wasn't clear, the reason for i

RE: Unique id

2008-11-21 Thread Raghunandan Rao
. Stensby [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 3:18 PM To: solr-user@lucene.apache.org Subject: Re: Unique id And in case that wasn't clear, the reason for it failing then would obviously be because you define the id field with required="true", and you

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
name (string), start (timestamp), end (timestamp)) 2. Team(person_id (int), deptId (int), isManager (int)) * is primary key In schema.xml I have id -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 2:56 PM To: solr-user@luc

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
(timestamp), end (timestamp)) 2. Team(person_id (int), deptId (int), isManager (int)) * is primary key In schema.xml I have id -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Friday, November 21, 2008 2:56 PM To: solr-user@lucene.apache.org Subject: Re:

RE: Unique id

2008-11-21 Thread Raghunandan Rao
, November 21, 2008 2:56 PM To: solr-user@lucene.apache.org Subject: Re: Unique id Hello again. I'm getting a bit confused by your questions, and I believe it would be easier for us to help you if you could post the field definitions from your schema.xml and the structure of your two database

Re: Unique id

2008-11-21 Thread Aleksander M. Stensby
ECTED] Sent: Thursday, November 20, 2008 6:40 PM To: solr-user@lucene.apache.org Subject: Re: Unique id I'd suggest aggregating those three columns into a string that can serve as the Solr uniqueKey field value. Erik On Nov 20, 2008, at 1:10 AM, Raghunandan Rao wrote: Basically, I am work

RE: Unique id

2008-11-20 Thread Raghunandan Rao
definitions in same schema. How does this work? Pls explain. -Original Message- From: Erik Hatcher [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2008 6:40 PM To: solr-user@lucene.apache.org Subject: Re: Unique id I'd suggest aggregating those three columns into a string that can

Re: Unique id

2008-11-20 Thread Erik Hatcher
t: Re: Unique id Technically, no, a uniqueKey field is NOT required. I've yet to run into a situation where it made sense not to use one though. As for indexing database tables - if one of your tables doesn't have a primary key, does it have an aggregate unique "key" of some sort?

RE: Unique id

2008-11-19 Thread Raghunandan Rao
[mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 5:24 PM To: solr-user@lucene.apache.org Subject: Re: Unique id Technically, no, a uniqueKey field is NOT required. I've yet to run into a situation where it made sense not to use one though. As for indexing database tables - if o

Re: Unique id

2008-11-19 Thread Erik Hatcher
Technically, no, a uniqueKey field is NOT required. I've yet to run into a situation where it made sense not to use one though. As for indexing database tables - if one of your tables doesn't have a primary key, does it have an aggregate unique "key" of some sort? Do you plan on updating

RE: Unique id

2008-11-19 Thread Raghunandan Rao
uot;some query2"); -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 4:22 PM To: solr-user@lucene.apache.org Subject: Re: Unique id Ok, but how do you map your table structure to the index? As far as I can understand, the two t

Re: Unique id

2008-11-19 Thread Aleksander M. Stensby
doing update. How does this work? Please explain. Thanks. -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:49 PM To: solr-user@lucene.apache.org Subject: Re: Unique id Yes it is. You need a unique id because the add method works

RE: Unique id

2008-11-19 Thread Raghunandan Rao
update. How does this work? Please explain. Thanks. -Original Message- From: Aleksander M. Stensby [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 3:49 PM To: solr-user@lucene.apache.org Subject: Re: Unique id Yes it is. You need a unique id because the add method works as

Re: Unique id

2008-11-19 Thread Aleksander M. Stensby
Yes it is. You need a unique id because the add method works as and "add or update" method. When adding a document whose ID is already found in the index, the old document will be deleted and the new will be added. Are you indexing two tables into the same index? Or does one entry in the inde

Re: unique ID question

2008-01-14 Thread Ryan McKinley
Evgeniy Strokin wrote: If I make one of my field as a unique ID, id doesn't increase/decrease performance of searching by this field. Right? For example if I have two fields, I know for sure both of them are unique, both the same type, and make one of them as a Solr Unique ID. The general perf

Re: Unique id field support in Solr

2006-04-10 Thread Yonik Seeley
On 4/10/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: > > : Is there any way to explicitly add a record using Solr, such that the > : add will fail if a record already exists with the same value in the > : unique ID field (as specified by the schema's uniqueKey field)? > > I was going to say over

Re: Unique id field support in Solr

2006-04-09 Thread Chris Hostetter
: Is there any way to explicitly add a record using Solr, such that the : add will fail if a record already exists with the same value in the : unique ID field (as specified by the schema's uniqueKey field)? I was going to say should do what you want, http://wiki.apache.org/solr/UpdateXmlMessa