lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: restricting search result
Date Sat, 04 Dec 2004 00:31:18 GMT
This is entirely application-specific.  As the simplest approach, you
can index each user's documents in a separate index and use
(Parallel)MultiSearcher to search appropriate indices (which ones are
appropriate to search has to be a part of your app's access control
logic).

Otis


--- Paul <paul.fuehring@gmail.com> wrote:

> Hi,
> how yould you restrict the search results for a certain user? I'm
> indexing all the existing data in my application but there are
> certain
> access levels so some users should see more results then an other.
> Each lucene document has a field with an internal id and I want to
> restrict on that basis. I tried it with adding a long concatenation
> of
> my ids ("+locationId:1 +locationId:3 + ...") but this throws a "More
> than 32 required/prohibited clauses in query." exception.
> Any suggestions?
> thx!
> Paul
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 


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


Mime
View raw message