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
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
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
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
>
> 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
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
>
> 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
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
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