One way I had thought of doing this kind of thing:  include in the index an 
"ACL" of some sort.  The problem I see in your case is that the list if 
"friends" can presumably change over time.

So, given that, one way would be to have a little application in between.  The 
request goes to the application, which does the query, and then filters out the 
results based upon friendship.  

I suppose it might be possible to write a specialized class which acts as a 
filter (and is so identified in the Solr schema) which queries the database.

In any event, I doubt you can get Solr to do this by itself without some code 
because of the likely dynamic nature of the "friendship" 

JRJ

-----Original Message-----
From: directorscott [mailto:dgul...@gmail.com] 
Sent: Wednesday, August 24, 2011 4:47 AM
To: solr-user@lucene.apache.org
Subject: query

Hello,

In my application, users prepare documents and they can share them with
friends. Friendships between users are persisted in database. When a user
issues a search, system should bring only those documents which are prepared
by friends of the user who makes the search. Can anyone please show me the
path to achieve such use case? I am considering about concatenating friend
id's and index them as 1 column but i am new to SOLR and i would love to
find out the other options.

Thanks

--
View this message in context: 
http://lucene.472066.n3.nabble.com/query-tp3280527p3280527.html
Sent from the Solr - User mailing list archive at Nabble.com.
  • query directorscott
    • RE: query Jaeger, Jay - DOT

Reply via email to