Why not just add an extra field to the document in the Index for the user, so you can easily filter out the results on the user field and show only the documents submitted by the User.
Regards, Jayendra On Wed, Mar 23, 2011 at 9:20 AM, satya swaroop <satya.yada...@gmail.com> wrote: > Hi All, > As for my project Requirement i need to keep privacy for search of > files so that i need to modify the code of solr, > > for example if there are 5 users and each user indexes some files as > user1 -> java1, c1,sap1 > user2 -> java2, c2,sap2 > user3 -> java3, c3,sap3 > user4 -> java4, c4,sap4 > user5 -> java5, c5,sap5 > > and if a user2 searches for the keyword "java" then it should be display > only the file java2 and not other files.... > > so inorder to keep this filtering inside solr itself may i know where to > modify the code... i will access a database to check the user indexed files > and then filter the result... i didnt have any cores.. i indexed all files > in a single index... > > Regards, > satya >