Re: Indexing multiple entities

2009-11-03 Thread Christian López Espínola
On Mon, Nov 2, 2009 at 11:07 AM, Chantal Ackermann wrote: >> I'm using a code generator for my entities, and I cannot modify the >> generation. >> I need to work out another option :( > > shouldn't code generators help development and not make it more complex and > difficult? oO Yeah, they do. Bu

Re: Indexing multiple entities

2009-11-03 Thread Christian López Espínola
On Sun, Nov 1, 2009 at 10:34 AM, Christian López Espínola wrote: > On Sun, Nov 1, 2009 at 5:30 AM, Avlesh Singh wrote: >>> >>> The use case on DocumentObjectBinder is that I could override >>> toSolrInputDocument, and if field = ID, I could do: setField("id", >>> obj.getClass().getName() + obj.ge

Re: Indexing multiple entities

2009-11-02 Thread Chantal Ackermann
I'm using a code generator for my entities, and I cannot modify the generation. I need to work out another option :( shouldn't code generators help development and not make it more complex and difficult? oO (sry off topic) chantal

Re: Indexing multiple entities

2009-11-01 Thread Christian López Espínola
On Sun, Nov 1, 2009 at 5:30 AM, Avlesh Singh wrote: >> >> The use case on DocumentObjectBinder is that I could override >> toSolrInputDocument, and if field = ID, I could do: setField("id", >> obj.getClass().getName() + obj.getId()) or something like that. >> > > Unless I am missing something here

Re: Indexing multiple entities

2009-10-31 Thread Avlesh Singh
> > The use case on DocumentObjectBinder is that I could override > toSolrInputDocument, and if field = ID, I could do: setField("id", > obj.getClass().getName() + obj.getId()) or something like that. > Unless I am missing something here, can't you write the getter of id field in your solr bean as

Re: Indexing multiple entities

2009-10-30 Thread Christian López Espínola
On Fri, Oct 30, 2009 at 2:04 AM, Avlesh Singh wrote: >> >> One thing I thought about is if I can define my own >> DocumentObjectBinder, so I can concatenate my entity names with the >> IDs in the XML creation. >> >> Anyone knows if something like this can be done without modifying >> Solrj sources

Re: Indexing multiple entities

2009-10-29 Thread Avlesh Singh
> > One thing I thought about is if I can define my own > DocumentObjectBinder, so I can concatenate my entity names with the > IDs in the XML creation. > > Anyone knows if something like this can be done without modifying > Solrj sources? Is there any injection or plugin mecanism for this? > More

Re: Indexing multiple entities

2009-10-29 Thread Christian López Espínola
Hi Israel, Thanks for your suggestion, On Thu, Oct 29, 2009 at 9:37 PM, Israel Ekpo wrote: > On Thu, Oct 29, 2009 at 3:31 PM, Christian López Espínola < > penyask...@gmail.com> wrote: > >> Hi, my name is Christian and I'm a newbie introducing to solr (and solrj). >> >> I'm working on a website w

Re: Indexing multiple entities

2009-10-29 Thread Israel Ekpo
On Thu, Oct 29, 2009 at 3:31 PM, Christian López Espínola < penyask...@gmail.com> wrote: > Hi, my name is Christian and I'm a newbie introducing to solr (and solrj). > > I'm working on a website where I want to index multiple entities, like > Book or Magazine. > The issue I'm facing is both of the

Indexing multiple entities

2009-10-29 Thread Christian López Espínola
Hi, my name is Christian and I'm a newbie introducing to solr (and solrj). I'm working on a website where I want to index multiple entities, like Book or Magazine. The issue I'm facing is both of them have an attribute ID, which I want to use as the uniqueKey on my schema, so I cannot identify uni