What you meant is correct only. Please excuse for that I am new to solr. :-( I want to index all the query results. (I think this will be done by the data-config.xml) Now while accessing this indexed data, i need this filtering. ie. Either user or manager. I tried your suggestion: http://localhost:8983/solr/select/?q=user:bob&version=2.2&start=0&rows=10&indent=on&wt=json But it didn't worked. Is the above URL correct or is there some other option.
Thanks for your reply.. con Norberto Meijome-6 wrote: > > 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. > > -- View this message in context: http://www.nabble.com/How-to-select-one-entity-at-a-time--tp19668759p19685292.html Sent from the Solr - User mailing list archive at Nabble.com.