lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From con <convo...@gmail.com>
Subject Re: How to select one entity at a time?
Date Fri, 26 Sep 2008 07:46:07 GMT

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>

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?

Thanks
con 




Shalin Shekhar Mangar wrote:
> 
> On Thu, Sep 25, 2008 at 6:13 PM, con <convoyer@gmail.com> wrote:
> 
>>
>> Hi
>> I have got two entities in my data-config.xml file, entity1 and entity2.
>> For condition-A I need to execute only entity1 and for condition-B only
>> the
>> entity2 needs to get executed.
>> How can I mention it while accessing the search index in the REST way.
>> Is there any option that i can give along with this query:
>>
>> http://localhost:8983/solr/select/?q=physics&version=2.2&start=0&rows=10&indent=on&wt=json
>>
> 
> I suppose that you are using multiple root entities and the solr document
> contains some field which tells us the entity it came from.
> 
> If yes, you can use filter queries (fq parameter) to filter on those
> fields.
> 
> -- 
> Regards,
> Shalin Shekhar Mangar.
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-select-one-entity-at-a-time--tp19668759p19683927.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message