Return-Path: X-Original-To: apmail-manifoldcf-user-archive@www.apache.org Delivered-To: apmail-manifoldcf-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 17F7417D59 for ; Mon, 9 Mar 2015 16:07:26 +0000 (UTC) Received: (qmail 77892 invoked by uid 500); 9 Mar 2015 16:07:19 -0000 Delivered-To: apmail-manifoldcf-user-archive@manifoldcf.apache.org Received: (qmail 77847 invoked by uid 500); 9 Mar 2015 16:07:19 -0000 Mailing-List: contact user-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@manifoldcf.apache.org Delivered-To: mailing list user@manifoldcf.apache.org Received: (qmail 77837 invoked by uid 99); 9 Mar 2015 16:07:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 16:07:19 +0000 X-ASF-Spam-Status: No, hits=1.0 required=5.0 tests=FORGED_YAHOO_RCVD,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of iorixxx@yahoo.com designates 98.136.218.248 as permitted sender) Received: from [98.136.218.248] (HELO nm9-vm9.bullet.mail.gq1.yahoo.com) (98.136.218.248) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 16:07:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1425917023; bh=neGC+zD6kvy/KxWDuW/2Fmk1iaozVhygd/Hej6mfngo=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=g/Tj6TERKTUG0GuOpknikibVDRLOU00m9LVnYXNjpJjhUrSWDXJP1IyO6maALWCm92Xe24CMEzKODMfY2aJCNV7OPxnd+0FV4h9O1G2uxKZZn0k7YYlglgxgbMME342fTBKfsPlsFXTbk6qksJ5SpBuuwGERXmM5R6fegx3r6tmbbaVzEsEmHAaIR7/txGseryMsAP0QDjV8tcc1jwJ9DoKXP57lmaAEVxyFlFZQO+0fhh2dMoqpCpOsJrd/NmgYZzXbZgcPp3x77ekdmQoB88M03ArxNoPMge0sy++OfcD5AF17hZ6c0PJE0/7M7+Ih3YcDMoPdYz7wDM0mTVg2eg== Received: from [216.39.60.184] by nm9.bullet.mail.gq1.yahoo.com with NNFMP; 09 Mar 2015 16:03:43 -0000 Received: from [98.137.12.210] by tm20.bullet.mail.gq1.yahoo.com with NNFMP; 09 Mar 2015 16:03:43 -0000 Received: from [127.0.0.1] by omp1018.mail.gq1.yahoo.com with NNFMP; 09 Mar 2015 16:03:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 485653.69484.bm@omp1018.mail.gq1.yahoo.com X-YMail-OSG: cETK8aMVM1kgm55NypmyOlN6veXNTfV0KvJg4nBb6RsQqZlApQ_uL.zMdyH5qsD fePvghw8j3tx0bSuO5rbItDtzeSzHu6IEo5.bZzSAo1dIY_5zfnl7JFyNuDZC0vzXS6mPBiYA0fT vKc39GDIq9T7mXuLo6vssUFfIrJ1WU1gYbkyDEO3EIiPZ_4WPat_Vf3ecDC9elkPYMbAW4A05jly t9ZKq0JBSPexltE_qZEs1Soz2_5DE0Qbad_r9HTIt6bfyho2xTi57RD3TnVoFYBcrIuEAX5.bh18 8Un3Ehmp26g.4ZwoeFD3VWx9nWk2QvIaHqzes5dhlw3irO..KqxHyUE_1RF0nogPycfznSClgxb0 yRZknSsZzLr0q2m2tum9xtfWXFeT5LfwT8k_ccyez0V2iqLieJP5JeMxZ3bzQUk0vPMAZtnM1NCL xI3z.Hkvfr_9Rgh_6n1CeFp39bKAwYYadN9M5oFs3A1GzJa3FV_eWVwbw2LtwskSyk1Y8oKK8jG6 nNCyek2pSOQ-- Received: by 98.138.105.248; Mon, 09 Mar 2015 16:03:42 +0000 Date: Mon, 9 Mar 2015 16:03:41 +0000 (UTC) From: Ahmet Arslan Reply-To: Ahmet Arslan To: "user@manifoldcf.apache.org" , "frank.brendel@eurolog.com" Message-ID: <1677527673.1099340.1425917021086.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: No results from solr with mcf plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Frank, Here is the current version of README.txt http://svn.apache.org/repos/asf/manifoldcf/integration/solr-5.x/trunk/README.txt If you can improve it to include information about Schemaless Mode, that would be great. If you don't have a jira account, anyone can crate it. Please see : https://issues.apache.org/jira/browse/CONNECTORS Thanks, Ahmet On Monday, March 9, 2015 4:59 PM, Karl Wright wrote: I'd be happy to commit a documentation change, if you'd be willing to create a ticket and attach a patch. We're actually getting ready to release the solr 5.x plugin so this is an excellent time. Karl On Mon, Mar 9, 2015 at 10:05 AM, Frank Brendel wrote: Aha, and this is the Schemaless Mode and a schema.xml will be ignored. > >Anyway I can change the schema via the Schema API. > ># curl -X POST -H 'Content-type:application/json' --data-binary '{ "add-field" : [ > { "name":"allow_token_document", "type":"string", "indexed":"true", "stored":"true", "multiValued":"true", "required":"true", "default":"__nosecurity__"}, > { "name":"deny_token_document", "type":"string", "indexed":"true", "stored":"true", "multiValued":"true", "required":"true", "default":"__nosecurity__"}, > { "name":"allow_token_parent", "type":"string", "indexed":"true", "stored":"true", "multiValued":"true", "required":"true", "default":"__nosecurity__"}, > { "name":"deny_token_parent", "type":"string", "indexed":"true", "stored":"true", "multiValued":"true", "required":"true", "default":"__nosecurity__"}, > { "name":"allow_token_share", "type":"string", "indexed":"true", "stored":"true", "multiValued":"true", "required":"true", "default":"__nosecurity__"}, > { "name":"deny_token_share", "type":"string", "indexed":"true", "stored":"true", "multiValued":"true", "required":"true", "default":"__nosecurity__"} >]}' http://localhost:8983/solr/elcore/schema > >Could someone be so kind and add this to the Solr plugin README? > > >Kind regards >Frank > > >Am 06.03.2015 um 13:55 schrieb Frank Brendel: > >My fault. >> >>'solr create' without the configuration directory uses the data_driven_schema_configs which 'can mutate as data indexed'. >> >>Ok, I am still learning ;-) >> >> >>Thanks >>Frank >> >>Am 06.03.2015 um 13:25 schrieb Frank Brendel: >> >>Hi Karl, >>> >>>it seems that reading the README is not enough. >>> >>>What I've done is: >>> >>># tar xf solr-5.0.0.tgz >>># cd solr-5.0.0 >>># bin/solr start >>># bin/solr create -c elcore >>># mkdir server/solr/elcore/lib >>># cp solr-mcf-4.6-SNAPSHOT.jar server/solr/elcore/lib >>># cp server/solr/configsets/basic_configs/conf/schema.xml server/solr/elcore/conf >>>Edit server/solr/elcore/conf/solrconfig.xml and server/solr/elcore/conf/schema.xml according to the plugins README. >>># bin/solr restart >>>Start the ManifoldCF job. >>> >>>Did I understood something wrong? >>> >>> >>>Kind regards >>>Frank >>> >>> >>> >>>Am 06.03.2015 um 12:40 schrieb Karl Wright: >>> >>>The README in the solr plugin is a pretty good resource for how to configure Solr, BTW. >>>> >>>>Karl >>>> >>>> >>>>On Fri, Mar 6, 2015 at 6:39 AM, Karl Wright > wrote: >>>> >>>> Hi Frank, >>>> >>>> Yes, you need all SIX attributes, with the proper default >>>> values. In fact, you will need to force a reindex if you didn't >>>> have working definitions, since otherwise the default values in >>>> solr don't take effect. >>>> >>>> Karl >>>> >>>> >>>> On Fri, Mar 6, 2015 at 6:28 AM, Frank Brendel >>>> > >>>> >>>> wrote: >>>> >>>> Hi Paul, >>>> >>>> this could actually be the problem. >>>> >>>> Because when I debug the query I get in >>>> "parsed_filter_queries" something like >>>> "ConstantScore(+allow_token_share:__nosecurity__ ..." >>>> But the schema and the object browser show only >>>> "allow_token_document" and "deny_token_document" and that's >>>> why I get no result. Right? >>>> >>>> But I've added the definitions in the schema.xml. >>>> >>>> I guess the two attributes were added automatically and I >>>> have to investigate why Solr ignores my schema.xml. >>>> >>>> >>>> Thank you for the tip >>>> Frank >>>> >>>> >>>> >>>> Am 06.03.2015 um 11:58 schrieb Paul Bieles: >>>> >>>> Hi Frank, >>>> >>>> Not sure its the same problem, but we had something >>>> similar and it drove us mad!. >>>> >>>> We hadn't included all of the access tokens when >>>> indexing data. Ensure you have the following in your schema: >>>> >>>> allow_token_parent >>>> allow_token_document >>>> allow_token_share >>>> deny_token_parent >>>> deny_token_document >>>> deny_token_share >>>> >>>> Paul >>>> >>>> > Date: Fri, 6 Mar 2015 11:32:24 +0100 >>>> > From: frank.brendel@eurolog.com >>>> >>>> > To: user@manifoldcf.apache.org >>>> >>>> >>>> > Subject: No results from solr with mcf plugin >>>> > >>>> > Hi, >>>> > >>>> > I've successfully installed ManifoldCF 2.0.2 and Solr >>>> 5.0.0. >>>> > >>>> > Everything works fine but when I activate the >>>> manifoldCFSecurity plugin >>>> > I get no results from Solr. >>>> > >>>> > >>>> > Without ManifoldCFSecurity plugin the Solr log shows >>>> me two hits when I >>>> > query 'Handbuch'. >>>> > >>>> > 2015-03-06 09:33:19.248; >>>> org.apache.solr.core.SolrCore; [elcore] >>>> > webapp=/solr path=/select >>>> > >>>> params={q=Handbuch&indent=true&wt=json&debugQuery=true&_=1425634399268} >>>> > hits=2 status=0 QTime=5 >>>> > >>>> > >>>> > But with activated manifoldCFSecurity plugin I get no >>>> hits. >>>> > >>>> > INFO - 2015-03-06 09:51:08.012; >>>> org.apache.solr.core.SolrCore; [elcore] >>>> > webapp=/solr path=/select >>>> > >>>> params={q=Handbuch&AuthenticatedUserName=user@domain&indent=true&wt=json&debugQuery=true&_=1425635468033} >>>> >>>> > hits=0 status=0 QTime=7 >>>> > INFO - 2015-03-06 09:51:15.277; >>>> > org.apache.solr.mcf.ManifoldCFSearchComponent; Trying >>>> to match docs for >>>> > user '[:user@domain]' >>>> > INFO - 2015-03-06 09:51:15.281; >>>> > org.apache.solr.mcf.ManifoldCFSearchComponent; Saw >>>> authority response >>>> > AUTHORIZED:ELAuthSPConn >>>> > >>>> > >>>> > The response from the authorization service is >>>> > >>>> > # curl >>>> > >>>> 'http://localhost:8345/mcf-authority-service/UserACLs?username=user@domain' >>>> > AUTHORIZED:ELAuthSPConn >>>> > TOKEN:ELAuthGroup:Ui%3A0%23.w%7Cdomain%5Cuser >>>> > TOKEN:ELAuthGroup:GBesitzer+von+Abteilungen >>>> > TOKEN:ELAuthGroup:GBesitzer+von+Kunden >>>> > TOKEN:ELAuthGroup:GBesitzer+von+Produkte >>>> > TOKEN:ELAuthGroup:GMitglieder+von+Abteilungen >>>> > >>>> > >>>> > I also tried to query the allow_token_document >>>> directly (without >>>> > ManifoldCF plugin) and got exactly the single entry >>>> that user@domain is >>>> > allowed to see: >>>> > >>>> > INFO - 2015-03-06 09:56:39.909; >>>> org.apache.solr.core.SolrCore; [elcore] >>>> > webapp=/solr path=/select >>>> > >>>> params={q=allow_token_document:"ELAuthGroup:Ui%253A0%2523.w%257Cdomain%255Cuser"&indent=true&wt=json&_=1425635799838} >>>> >>>> > hits=1 status=0 QTime=45 >>>> > >>>> > >>>> > I've tried it with the Query Parser and the Search >>>> Component plugin with >>>> > no success. >>>> > >>>> > >>>> > >>>> > Kind regards >>>> > Frank >>>> > >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >> >> > >