You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ganesh <em...@yahoo.co.in> on 2009/08/06 11:02:22 UTC

Same field could be part of Query and filter

Hello all,

I am having a field UserID, for every record. The results will be filtered for every User based on this field. We have a feature of group admin where a admin could view all records of a set of Users. I could manage to do by filtering on the set of IDs. 

I have doubt in the below scenerio:
When a admin of 3 Users want to view only one particular User records. In this case he may give full UserID or some prefix. I need to use this field as part of Query and also Filter will have 3 Users. 
Filter: User1@domain.com, User2@domain.com User3@domain.com
Query: User1 

Whether this approach will work fine? Is there any other better approach to handle this group admin? Please note group members may change often and i cannot index group name or ID along with the record. 

Regards
Ganesh 
Send instant messages to your online friends http://in.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Same field could be part of Query and filter

Posted by Ganesh <em...@yahoo.co.in>.
Any idea on this.Basically i require Filter of Filters. 

I want a single field to be part of Filter and Query
Filter: User1@domain.com, User2@domain.com User3@domain.com
Query: User1@domain.com OR User1

My requirement a group admin of 3 Users could view only 3 members data and he should also perform some search to retrieve data corresponds to any single User. 

Any suggestions are highly appreciated. 

Regards
Ganesh

----- Original Message ----- 
From: "Ganesh" <em...@yahoo.co.in>
To: <ja...@lucene.apache.org>
Sent: Thursday, August 06, 2009 2:32 PM
Subject: Same field could be part of Query and filter


Hello all,

I am having a field UserID, for every record. The results will be filtered for every User based on this field. We have a feature of group admin where a admin could view all records of a set of Users. I could manage to do by filtering on the set of IDs. 

I have doubt in the below scenerio:
When a admin of 3 Users want to view only one particular User records. In this case he may give full UserID or some prefix. I need to use this field as part of Query and also Filter will have 3 Users. 
Filter: User1@domain.com, User2@domain.com User3@domain.com
Query: User1 

Whether this approach will work fine? Is there any other better approach to handle this group admin? Please note group members may change often and i cannot index group name or ID along with the record. 

Regards
Ganesh 
Send instant messages to your online friends http://in.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

Send instant messages to your online friends http://in.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org