lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Herndon <>
Subject Re: [Lucene.Net] P4 Branch Searching using Lucene.Net
Date Tue, 31 May 2011 18:37:15 GMT
You might want to try indexing that identifies the permissions that is
related to a particular branch.   Then when a user searches, append what
they are allowed to see to part of the query.

branch 1
   permission field: all,admin,user
branch 2
  permission field: user, admin
branch 3
  permission field: admin

append the current user's permission/role to the query on the server side
before sending it to search.

permission: user

then it should** only bring up results that have the role / permission user
in the results.
 ** depending on the type of search your using.

You also might want to see if others respond with a better approach or
reproach on this before trying to implement.

On Sat, May 21, 2011 at 1:51 AM, Vijendra Patil <>wrote:

> Hi,
> I want to use Lucene.Net for querying P4 (perforce source version control
> system) . I have seen OpenGrok project, which allows searching hystery,
> files content etc. over the P4. But I am concerned about the security.
> Since
> not all employees of our organization have access to the entire P4.
> specific
> groups have access to specific branches of P4 server.
> If I built an ASP.Net web application for performing search over P4 tree,
> how shall I restrict user searches to specific P4 branches? Please help me
> to find any solution for this issue. If you have any ASP.Net with
> Lucene.Net
> sample project which perform search on P4 then please do share it to me.
> Thanks,
> Vijendra

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message