Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-04 Thread Shalin Shekhar Mangar
a field/column id. The fact that you omitted >> it, was an oversight, or not necessary, I suppose. >> 3) Your statement about uniqueKey needs some clarification: >> - I do have the following in my schema.xml: id, I >> also added comboId. Are both necessary? >> &

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-04 Thread Shalin Shekhar Mangar
t; also added comboId. Are both necessary? > > Thanks > > ** julio > > -----Original Message----- > From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 04, 2008 11:01 AM > To: solr-user@lucene.apache.org > Subject: Re: How to describe 2 entiti

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-04 Thread Julio Castillo
"SELECT id,name,birth_date,type_id FROM pets > WHERE owner_id='${owners.id}'" >parentDeltaQuery="SELECT id FROM owners WHERE > id=${pets.owner_id}"> > > > > > > > > > The debug output for one

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-04 Thread Shalin Shekhar Mangar
27;" >parentDeltaQuery="SELECT id FROM owners WHERE > id=${pets.owner_id}"> > > > > > > > > > The debug output for one row from the dataImporter while iterating over > pets > where the first row owne

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-04 Thread Julio Castillo
_id in the pets table is >> currently a number and thus will not match the modified combo id >> generated for the owners' id column. >> >> So, somehow, I need to be able to either remove the 'owners-' suffix >> before comparing, or append the same suff

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
to either remove the 'owners-' suffix before >> comparing, or append the same suffix to the pets.owner_id value prior to >> comparing. >> >> Thanks >> >> ** julio >> >> -Original Message- >> From: Noble Paul ??? ?? [mail

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-03 Thread Noble Paul നോബിള്‍ नोब्ळ्
>>> >>> >>> >>> >>> >>> >>> >>> The debug output of the data import looks as follows: >>> >>> >>> - >>> - >>>

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-03 Thread Julio Castillo
OTECTED] Sent: Monday, June 02, 2008 9:20 PM To: solr-user@lucene.apache.org Subject: Re: How to describe 2 entities in dataConfig for the DataImporter? hi Julio, delete my previous response. In your schema , 'id' is the uniqueKey. make 'comboid' the unique key. Becau

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-02 Thread Noble Paul നോബിള്‍ नोब्ळ्
- >> select id,first_name,last_name FROM owners >> 0:0:0.15 >> --- row #1- >> 1 >> George >> Franklin >> - >> - >> ----------------- >>

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-02 Thread Noble Paul നോബിള്‍ नोब्ळ्
narrow down the scope of the problem). >>> >>> >>>>>query="select id as idAlias,first_name,last_name FROM vets" >>> deltaQuery="SELECT id as idAlias FROM vets WHERE >>> last_modified > '${dataimport

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-06-02 Thread Julio Castillo
gt; >>> template="vets-${vets.idAlias}"/> >> >> >> >> >> >> >> Thanks again. >> >> ** julio >> >> -Original Message- >> From: Shalin Shekhar Mangar [mailto:[EMAIL PROTEC

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-31 Thread Julio Castillo
> template="vets-${vets.idAlias}"/> >> >> >> >> >> >> >> Thanks again. >> >> ** julio >> >> -Original Message- >> From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] >> Sent:

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-31 Thread Shalin Shekhar Mangar
/> >> >> >> >> >> >> >> Thanks again. >> >> ** julio >> >> -Original Message- >> From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] >> Sent: Friday, May 30, 2008 11:38 AM >> To: s

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-31 Thread Noble Paul നോബിള്‍ नोब्ळ्
- > From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] > Sent: Friday, May 30, 2008 11:38 AM > To: solr-user@lucene.apache.org > Subject: Re: How to describe 2 entities in dataConfig for the DataImporter? > > The surname is used just as an example of a field. > > The

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-30 Thread Julio Castillo
ekhar Mangar [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2008 11:38 AM To: solr-user@lucene.apache.org Subject: Re: How to describe 2 entities in dataConfig for the DataImporter? The surname is used just as an example of a field. The NullPointerException is because the same field "id" tr

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-30 Thread Shalin Shekhar Mangar
> > ... > > Am I missing a surname? Whatever that may be? > > Thanks > > ** julio > > -Original Message- > From: Noble Paul ??????? ?????? [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2008 11:10 PM > To: solr-user@lucene.apac

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-30 Thread Lance Norskog
, 2008 6:04 PM To: solr-user@lucene.apache.org Subject: RE: How to describe 2 entities in dataConfig for the DataImporter? Thanks Shalin, I tried putting everything under the same document (two different unrelated entities), and got a bit further. My problem now appears to be both of them stepping on

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-30 Thread Julio Castillo
al Message- From: Noble Paul ??? ?? [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 11:10 PM To: solr-user@lucene.apache.org Subject: Re: How to describe 2 entities in dataConfig for the DataImporter? Sorry I forgot to mention that. http://wiki.apache.org/solr/DataImportHa

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Noble Paul നോബിള്‍ नोब्ळ्
tting in the schema.xml >> remains the same? >> >> Thanks again >> >> ** julio >> >> -Original Message- >> From: Noble Paul ??? ?? [mailto:[EMAIL PROTECTED] >> Sent: Thursday, May 29, 2008 9:46 PM >> To: solr-user@luce

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Shalin Shekhar Mangar
e that the id setting in the schema.xml > remains the same? > > Thanks again > > ** julio > > -Original Message- > From: Noble Paul ??? ?? [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2008 9:46 PM > To: solr-user@lucene.apache.org > Subject: R

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Julio Castillo
008 9:46 PM To: solr-user@lucene.apache.org Subject: Re: How to describe 2 entities in dataConfig for the DataImporter? Consider constructing the id concatenating an extra string for each document . You can construct that field using the TeplateTransformer. in the entity owners keep the id as and i

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Noble Paul നോബിള്‍ नोब्ळ्
r due to "id" >> conflicts. Currently my id is defined in my schema as >> >> >> Do I have to create a new "id" field? >> >> Thanks >> >> ** julio >> >> -Original Message- >> From: Shalin Shekhar Mangar [

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Shalin Shekhar Mangar
t; > > Do I have to create a new "id" field? > > Thanks > > ** julio > > -Original Message- > From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 29, 2008 11:40 AM > To: solr-user@lucene.apache.org > Subject: Re: How to

RE: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Julio Castillo
"id" field? Thanks ** julio -Original Message- From: Shalin Shekhar Mangar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2008 11:40 AM To: solr-user@lucene.apache.org Subject: Re: How to describe 2 entities in dataConfig for the DataImporter? Hi Julio, The first data-config

Re: How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Shalin Shekhar Mangar
Hi Julio, The first data-config is correct. You're running DataImportHandler in debug mode which creates only the first 10 documents by default. You can also add count=N to index only the first N documents. But this is intended only for debugging purposes. If you want to do a full-import just use

How to describe 2 entities in dataConfig for the DataImporter?

2008-05-29 Thread Julio Castillo
I have 2 dB tables unrelated to each other that I want to index. I have tried 2 approaches for specifying them in my data-config.xml file. None of them seem to work (it seems I can only get data for the first one listed). CASE 1) CASE 2)