On Fri, 26 Sep 2008 00:46:07 -0700 (PDT) con <[EMAIL PROTECTED]> wrote:
> To be more specific: > I have the data-config.xml just like: > <dataConfig> > <dataSource **********/> > <document> > <entity name="user" query="select * from USER"> > </entity> > > <entity name="manager" query="select * from MANAGERS"> > </entity> > > <entity name="both" query="select * from > MANAGERS,USER where MANAGERS.userID= USER .userID"> > </entity> > </document> > </dataConfig> Con, I may be confused here...are you asking how to load only data from your USERS SQL table into SOLR, or how to search in your SOLR index for data about 'USERS'. data-config.xml is only relevant for the Data Import Handler...but your following question: > > I have 3 search conditions. when the client wants to search all the users, > only the entity, 'user' must be executed. And if he wants to search all > managers, the entity, 'manager' must be executed. > > How can i accomplish this through url? *seems* to indicate you want to search on this . If you want to search on a particular field from your SOLR schema, DIH is not involved. If you use the standard QH, you say ?q=user:Bob If I misunderstood your question, please explain... cheers, b _________________________ {Beto|Norberto|Numard} Meijome "Everything is interesting if you go into it deeply enough" Richard Feynman I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.