Re: Use a constant entity in all imported documents of DIH

2014-12-13 Thread Per Newgro
Thanks Alexandre, it seems to be the way to go. I do now I use the CachedSqlEntityProcessor to avoid repeated load of my constant entity. I hope that is a valid way. I will come back if i'm facing problems with this approach. Thanks for yo

Re: Use a constant entity in all imported documents of DIH

2014-12-12 Thread Alexandre Rafalovitch
Have a look at the documentation for the rootEntity attribute. https://wiki.apache.org/solr/DataImportHandler If you set it on the outer entity, I think it should give you what you want with the nested entity structure. Then the outside entity will load from the constant table and the inside from

Re: Use a constant entity in all imported documents of DIH

2014-12-12 Thread Per Newgro
Do you mean with inner entity something like Yes that i could use. But i would use always the same entity in the where clause of the sub-entity. I would like to do something like

Re: Use a constant entity in all imported documents of DIH

2014-12-12 Thread Alexandre Rafalovitch
Sounds like a case for nested entity definitions with the inner entity being the one that's actually indexed? Just need to remember that all the parent mapping is also applicable to all children. Have you tried that? Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr r

Use a constant entity in all imported documents of DIH

2014-12-12 Thread Per Newgro
Hello, i would like to load an entity before document import in DIH starts. I want to use the entity id for a sub-select in the document entity. Can i achieve something like that? Thanks for helping me Per