Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7439073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:39:09+00:00 2026-05-29T10:39:09+00:00

For example I have Documents A, B, C. User 1 must only be able

  • 0

For example I have Documents A, B, C. User 1 must only be able to see Documents A, B. User 2 must only be able to see Document C. Is it possible to do it in SOLR without filtering by metadata? If I use metadata filter, everytime there are access right changes, I have to reindex.

[update 2/14/2012] Unfortunately, in the client’s case, change is frequent. Data is confidential and usually only managed by the owners which are internal users. Then the specific case is they need to be able to share those documents to certain external users and specify access levels for those users. And most of the time this is an adhoc task, and not identified ahead of time

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:39:09+00:00Added an answer on May 29, 2026 at 10:39 am

    I would suggest storing the access roles (yes, its plural) as document metadata. Here the required field access_roles is a facet-able multi-valued string field.

    Doc1: access_roles:[user_jane, manager_vienna] // Jane and the Vienna branch manager may see it
    Doc2: access_roles:[user_john, manager_vienna, special_team] // Jane, the Vienna branch manager and a member of special team may see it
    

    The user owning the document is a default access role for that document.

    To change the access roles of a document, you edit access_roles.


    When Jane searches, the access roles she belongs to will be part of the query. Solr will retrieve only the documents that match the user’s access role.

    When Jane (user_jane), manager at vienna office (manager_vienna) searches, her searches go like:

    q=mainquery
    &fq=access_roles:user_jane
    &fq=access_roles:manager_vienna
    &facet=on
    &facet.field=access_roles
    

    which fetches all documents which contains user_jane OR manager_vienna in access_roles; Doc1 and Doc2.

    When Bob, (user_bob), member of a special team (specia_team) searches,

    q=mainquery
    &fq=access_roles:user_bob
    &fq=access_roles:special_team
    &facet=on
    &facet.field=access_roles
    

    which fetches Doc2 for him.

    Queries adapted from http://wiki.apache.org/solr/SimpleFacetParameters#Multi-Select_Faceting_and_LocalParams

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have problem use link_to_remote link_to_remote document example say link_to_remote Delete this post, :update
Good day, If I have for example the documents which have the following fields
HI I have an example document that looks like <ItemEntry> <PurchaseDate>2010-03-18T20:36:32.81108+13:00</PurchaseDate> <StoreGUID>0a0324ad-5f99-486a-a2d0-870bc6991e9f</StoreGUID> <ExpiryDate />
For example, I have a document library that hold contracts for multiple projects. So:
Example I have Person , SpecialPerson , and User . Person and SpecialPerson are
I have a list of documents, where a Document has an owner which is
I'm creating a website that will have the admin upload documents available only to
Does anybody know or have any documents which I can use to build a
How do I search through mongodb documents where documents have nested documents. For example
I'm working on a project, this project must have many users, each user can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.