Well, set the user ID for each document and use a filter query to filter only on field:<current_user_id>.

On Mon, 11 Oct 2010 23:25:29 +0530, Tharindu Mathew <mcclou...@gmail.com> wrote:
On Mon, Oct 11, 2010 at 10:48 PM, Markus Jelsma  wrote:
 Then you probably read on how to create [1] the new core. Keep in
mind, you might need to do some additional local scripting to create a
new instance dir.

 Do the user share the same schema? If so, you'd be better of keeping
a single index and preventing the users from querying others.

Yes, they will be sharing the same schema. If I understand correctly.
going with a single core is recommended in that case? But how do I
prevent users from querying other users data?

  [1]: http://wiki.apache.org/solr/CoreAdmin#CREATE [2]

 On Mon, 11 Oct 2010 22:40:03 +0530, Tharindu Mathew  wrote:
  Thanks Li. I checked out multi cores documentation.

 How do I dynamically create new cores as new users are added. Is
that
 possible?

 On Mon, Oct 11, 2010 at 2:31 PM, Li Li  wrote:

  will one user search other user's index?
 if not, you can use multi cores.

 2010/10/11 Tharindu Mathew :
 > Hi everyone,
 >
 > I'm using solr to integrate search into my web app.
 >
 > I have a bunch of users who would have to be given their own
individual
 > indexes.
 >
 > I'm wondering whether I'd have to append their user ID as I index
a file.
 > I'm not sure which approach to follow. Is there a sample or a doc
I can
 read
 > to understand how to approach this problem?
 >
 > Thanks in advance.
 >
 > --
 > Regards,
 >
 > Tharindu
 >

 --
 Markus Jelsma - CTO - Openindex
 http://www.linkedin.com/in/markus17 [6]
 050-8536600 / 06-50258350

--
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536600 / 06-50258350

Reply via email to