manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Connectors Framework > FAQ
Date Wed, 31 Oct 2012 15:46:00 GMT
Space: Apache Connectors Framework (https://cwiki.apache.org/confluence/display/CONNECTORS)
Page: FAQ (https://cwiki.apache.org/confluence/display/CONNECTORS/FAQ)
Comment: https://cwiki.apache.org/confluence/display/CONNECTORS/FAQ?focusedCommentId=30740879#comment-30740879

Comment added by Karl Wright:
---------------------------------------------------------------------

First of all, this is not the appropriate place to engage ManifoldCF committers and other
users for help in diagnosing problems.  I'd sign up for the user@manifoldcf.apache.org list
if I were you, and post this question there.

But here's a hint:  The query that the manifoldcf solr plugin creates uses the attribute names
you configure for it.  If those aren't right, the query won't be right either.  See if you
can dump the full query; not sure exactly how you tell Solr you want to do that, but I am
sure there's a way.


In reply to a comment by $action.getUserFullName($parentComment.creatorName):
Hello,
I have been trying to connect ManifoldCF to Solr. I have a file system in a remote server,
protected by active directory.
I have configured a manifold job to import only a part of the documents under the file system.
In fact, I do the importing process from a file which only contains 2 documents, in order
to make it easier to see what is happening and get conclusions. Afterwards the documents are
output to the solr server.
I have created a request handler called "selectManifold" to "connect" manifold and solr. Then
I call it via {color:#0000ff}http://\[host\]:8080/solr/selectManifold?indent=on&version=2.2&q=*%3A*&fq=&start=0&rows=10&fl=*%2Cscore&wt=&explainOther=&hl.fl=&{color}{color:#0000ff}{*}AuthenticatedUserName=prueba1@lcg.test.tm{*}{color}
. When doing this, tomcat's log (catalina.out) writes this:

 {color:#339966}oct 31, 2012 2:40:33 PM org.apache.solr.mcf.ManifoldCFSearchComponent prepare{color}
{color:#339966}Información: Trying to match docs for user 'prueba1@lcg.test.tm'{color}
{color:#339966}oct 31, 2012 2:40:33 PM org.apache.solr.mcf.ManifoldCFSearchComponent getAccessTokens{color}
{color:#339966}Información{color}{color:#339966}*: For user 'prueba1@lcg.test.tm', saw authority
response AUTHORIZED:*{color}{color:#339966}Auth+active+directory+para+el+file+system{color}
{color:#ff0000}(this one is the active directory I'm currently using for the job){color}
{color:#339966}oct 31, 2012 2:40:33 PM org.apache.solr.mcf.ManifoldCFSearchComponent getAccessTokens{color}
{color:#339966}Información: For user 'prueba1@lcg.test.tm', saw authority response AUTHORIZED:ad
(this one isn't){color}
{color:#339966}oct 31, 2012 2:40:33 PM org.apache.solr.core.SolrCore execute{color}
{color:#339966}Información: \[\] webapp=/solr path=/selectManifold params={explainOther=&fl=*,score&indent=on&start=0&q=*:*&hl.fl=&wt=&fq=&version=2.2&rows=10&AuthenticatedUserName=prueba1@lcg.test.tm}
hits=0 status=0 QTime=183{color}

{color:#000000}So, it effectively connects and gets my user's tokens. In fact, if I go to{color}
{color:#333399}http://{color}{color:#0000ff}\[host\]{color}{color:#333399}/mcf/UserACLs?username=prueba1@lcg.test.tm{color},
this is the result{color:#339966}:{color}AUTHORIZED:Auth+active+directory+para+el+file+system
TOKEN:active_dir:S-1-5-32-545
TOKEN:active_dir:S-1-5-21-2039231098-2614715072-2050932820-1111
TOKEN:active_dir:S-1-5-21-2039231098-2614715072-2050932820-513
TOKEN:active_dir:S-1-5-21-2039231098-2614715072-2050932820-1113
TOKEN:active_dir:S-1-5-21-2039231098-2614715072-2050932820-1110
TOKEN:active_dir:S-1-5-21-2039231098-2614715072-2050932820-1107
TOKEN:active_dir:S-1-1-0
AUTHORIZED:ad
TOKEN:ad:S-1-5-32-545
TOKEN:ad:S-1-5-21-2039231098-2614715072-2050932820-1111
TOKEN:ad:S-1-5-21-2039231098-2614715072-2050932820-513
TOKEN:ad:S-1-5-21-2039231098-2614715072-2050932820-1113
TOKEN:ad:S-1-5-21-2039231098-2614715072-2050932820-1110
TOKEN:ad:S-1-5-21-2039231098-2614715072-2050932820-1107
TOKEN:ad:S-1-1-0

Moreover, if I go to http://[host]:8080/solr/admin/schema.jsp and search for the allow_token_document
field, it says that active_dir:S-1-5-21-2039231098-2614715072-2050932820-1110
(which appeared in the list of UserACLs) has frequency 2 (remember I only have 2 documents
indexed)

And still, when I call  http://[host]:8080/solr/selectManifold?indent=on&version=2.2&q=*%3A*&fq=&start=0&rows=10&fl=*%2Cscore&wt=&explainOther=&hl.fl=&AuthenticatedUserName=prueba1@lcg.test.tm,
 it says no result has been found. Do you know why could it be?

One final thing: when I call http://130.177.44.21:8080/solr/select?indent=on&version=2.2&q=*%3A*&fq=&start=0&rows=10&fl=*%2Cscore&wt=&explainOther=&hl.fl=,
with the default handler (that is, without manifold)
, it gives me a result with the 2 documents I indexed

Sorry for the long post but I wanted you to have all the data.

Pablo

Change your notification preferences: https://cwiki.apache.org/confluence/users/viewnotifications.action

Mime
View raw message