You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Peter Wolanin <pe...@acquia.com> on 2010/10/07 15:59:35 UTC

access control for spellcheck suggestions?

We have a content access control system that works well for the actual
search results, but we see that the spellcheck suggestions include
words that are not within the set of documents the current user is
allowed to access.  Does anyone have an approach to this problem for
Solr 1.4.x?  Anything new in Solr trunk to address this?  Maybe
spellcheck.<DICT_NAME>.key?

Is there something in the Solr API that lets us control which
spellcheck index a certain document goes into at index time, since one
approach might be to at least obey some gross access control rules per
user role by having multiple spellcheck indexes.

-Peter

-- 
Peter M. Wolanin, Ph.D.      : Momentum Specialist,  Acquia. Inc.
peter.wolanin@acquia.com : 978-296-5247

"Get a free, hosted Drupal 7 site: http://www.drupalgardens.com"

Re: access control for spellcheck suggestions?

Posted by Lance Norskog <go...@gmail.com>.
Thanks, I've been hunting for a solution to this problem.

On Thu, Oct 7, 2010 at 7:43 AM, Dyer, James <Ja...@ingrambook.com> wrote:
> Look at SOLR-2010 which has patches for 1.4.1 and trunk.  It works with the spellcheck "collate" functionality and ensures that collations are returned only if they can result in hits if requeried (it tests each collation with any "fq" you put on the original query).  This would effectively prevent users from seeing sensitive data in their spell suggestions.
>
> James Dyer
> E-Commerce Systems
> Ingram Content Group
> (615) 213-4311
>
>
> -----Original Message-----
> From: Peter Wolanin [mailto:peter.wolanin@acquia.com]
> Sent: Thursday, October 07, 2010 9:00 AM
> To: solr-user@lucene.apache.org
> Subject: access control for spellcheck suggestions?
>
> We have a content access control system that works well for the actual
> search results, but we see that the spellcheck suggestions include
> words that are not within the set of documents the current user is
> allowed to access.  Does anyone have an approach to this problem for
> Solr 1.4.x?  Anything new in Solr trunk to address this?  Maybe
> spellcheck.<DICT_NAME>.key?
>
> Is there something in the Solr API that lets us control which
> spellcheck index a certain document goes into at index time, since one
> approach might be to at least obey some gross access control rules per
> user role by having multiple spellcheck indexes.
>
> -Peter
>
> --
> Peter M. Wolanin, Ph.D.      : Momentum Specialist,  Acquia. Inc.
> peter.wolanin@acquia.com : 978-296-5247
>
> "Get a free, hosted Drupal 7 site: http://www.drupalgardens.com"
>



-- 
Lance Norskog
goksron@gmail.com

Re: access control for spellcheck suggestions?

Posted by Peter Wolanin <pe...@acquia.com>.
Thanks for the info - I'll try out this patch.

-Peter

On Thu, Oct 7, 2010 at 10:43 AM, Dyer, James <Ja...@ingrambook.com> wrote:
> Look at SOLR-2010 which has patches for 1.4.1 and trunk.  It works with the spellcheck "collate" functionality and ensures that collations are returned only if they can result in hits if requeried (it tests each collation with any "fq" you put on the original query).  This would effectively prevent users from seeing sensitive data in their spell suggestions.
>
> James Dyer
> E-Commerce Systems
> Ingram Content Group
> (615) 213-4311
>
>
> -----Original Message-----
> From: Peter Wolanin [mailto:peter.wolanin@acquia.com]
> Sent: Thursday, October 07, 2010 9:00 AM
> To: solr-user@lucene.apache.org
> Subject: access control for spellcheck suggestions?
>
> We have a content access control system that works well for the actual
> search results, but we see that the spellcheck suggestions include
> words that are not within the set of documents the current user is
> allowed to access.  Does anyone have an approach to this problem for
> Solr 1.4.x?  Anything new in Solr trunk to address this?  Maybe
> spellcheck.<DICT_NAME>.key?
>
> Is there something in the Solr API that lets us control which
> spellcheck index a certain document goes into at index time, since one
> approach might be to at least obey some gross access control rules per
> user role by having multiple spellcheck indexes.
>
> -Peter
>
> --
> Peter M. Wolanin, Ph.D.      : Momentum Specialist,  Acquia. Inc.
> peter.wolanin@acquia.com : 978-296-5247
>
> "Get a free, hosted Drupal 7 site: http://www.drupalgardens.com"
>



-- 
Peter M. Wolanin, Ph.D.      : Momentum Specialist,  Acquia. Inc.
peter.wolanin@acquia.com : 978-296-5247

"Get a free, hosted Drupal 7 site: http://www.drupalgardens.com"

RE: access control for spellcheck suggestions?

Posted by "Dyer, James" <Ja...@ingrambook.com>.
Look at SOLR-2010 which has patches for 1.4.1 and trunk.  It works with the spellcheck "collate" functionality and ensures that collations are returned only if they can result in hits if requeried (it tests each collation with any "fq" you put on the original query).  This would effectively prevent users from seeing sensitive data in their spell suggestions.

James Dyer
E-Commerce Systems
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Peter Wolanin [mailto:peter.wolanin@acquia.com] 
Sent: Thursday, October 07, 2010 9:00 AM
To: solr-user@lucene.apache.org
Subject: access control for spellcheck suggestions?

We have a content access control system that works well for the actual
search results, but we see that the spellcheck suggestions include
words that are not within the set of documents the current user is
allowed to access.  Does anyone have an approach to this problem for
Solr 1.4.x?  Anything new in Solr trunk to address this?  Maybe
spellcheck.<DICT_NAME>.key?

Is there something in the Solr API that lets us control which
spellcheck index a certain document goes into at index time, since one
approach might be to at least obey some gross access control rules per
user role by having multiple spellcheck indexes.

-Peter

-- 
Peter M. Wolanin, Ph.D.      : Momentum Specialist,  Acquia. Inc.
peter.wolanin@acquia.com : 978-296-5247

"Get a free, hosted Drupal 7 site: http://www.drupalgardens.com"