[ 
https://issues.apache.org/jira/browse/CONNECTORS-840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13867888#comment-13867888
 ] 

Alessandro Benedetti commented on CONNECTORS-840:
-------------------------------------------------

I have the classpath for the maven build, by the way checking the libraries 
related to the mock system they seem to be all present :
Someone is not present in the ant class path ( for example [DEBUG]   
/Users/abenedetti/.m2/repository/org/javassist/javassist/3.18.0-GA/javassist-3.18.0-GA.jar)
 , but there are too much to make an effective analysis and understand which 
one is affecting the tests 
:/

Test Classpath :
[DEBUG]   
/Users/abenedetti/Documents/Zaizi/IdeaProjects/CONNECTORS-840/connectors/solr/target/test-classes
[DEBUG]   
/Users/abenedetti/Documents/Zaizi/IdeaProjects/CONNECTORS-840/connectors/solr/target/classes
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/manifoldcf/mcf-core/1.5-SNAPSHOT/mcf-core-1.5-SNAPSHOT.jar
[DEBUG]   /Users/abenedetti/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/json/json/20090211/json-20090211.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/manifoldcf/mcf-agents/1.5-SNAPSHOT/mcf-agents-1.5-SNAPSHOT.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/manifoldcf/mcf-pull-agent/1.5-SNAPSHOT/mcf-pull-agent-1.5-SNAPSHOT.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-server/7.5.4.v20111024/jetty-server-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-util/7.5.4.v20111024/jetty-util-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-webapp/7.5.4.v20111024/jetty-webapp-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-servlet/7.5.4.v20111024/jetty-servlet-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-http/7.5.4.v20111024/jetty-http-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-io/7.5.4.v20111024/jetty-io-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-security/7.5.4.v20111024/jetty-security-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-continuation/7.5.4.v20111024/jetty-continuation-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jetty/jetty-xml/7.5.4.v20111024/jetty-xml-7.5.4.v20111024.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/mortbay/jetty/jsp-api-2.1-glassfish/2.1.v20091210/jsp-api-2.1-glassfish-2.1.v20091210.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/mortbay/jetty/jsp-2.1-glassfish/2.1.v20091210/jsp-2.1-glassfish-2.1.v20091210.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/eclipse/jdt/core/compiler/ecj/3.5.1/ecj-3.5.1.jar
[DEBUG]   /Users/abenedetti/.m2/repository/ant/ant/1.6.5/ant-1.6.5.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/manifoldcf/mcf-ui-core/1.5-SNAPSHOT/mcf-ui-core-1.5-SNAPSHOT.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/commons-fileupload/commons-fileupload/1.2.2/commons-fileupload-1.2.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/commons-io/commons-io/2.1/commons-io-2.1.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/solr/solr-solrj/4.6.0/solr-solrj-4.6.0.jar
[DEBUG]   /Users/abenedetti/.m2/repository/org/noggit/noggit/0.5/noggit-0.5.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/httpcomponents/httpmime/4.2.6/httpmime-4.2.6.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/codehaus/woodstox/wstx-asl/3.2.7/wstx-asl-3.2.7.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/zookeeper/zookeeper/3.4.5/zookeeper-3.4.5.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/slf4j/slf4j-api/1.6.1/slf4j-api-1.6.1.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar
[DEBUG]   /Users/abenedetti/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/jboss/netty/netty/3.2.2.Final/netty-3.2.2.Final.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/httpcomponents/httpclient/4.2.6/httpclient-4.2.6.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar
[DEBUG]   /Users/abenedetti/.m2/repository/junit/junit/4.8.2/junit-4.8.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/powermock/powermock-module-junit4/1.5.2/powermock-module-junit4-1.5.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/powermock/powermock-module-junit4-common/1.5.2/powermock-module-junit4-common-1.5.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/powermock/powermock-core/1.5.2/powermock-core-1.5.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/javassist/javassist/3.18.0-GA/javassist-3.18.0-GA.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/powermock/powermock-reflect/1.5.2/powermock-reflect-1.5.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/objenesis/objenesis/1.2/objenesis-1.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/powermock/powermock-api-mockito/1.5.2/powermock-api-mockito-1.5.2.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/mockito/mockito-all/1.9.5/mockito-all-1.9.5.jar
[DEBUG]   
/Users/abenedetti/.m2/repository/org/powermock/powermock-api-support/1.5.2/powermock-api-support-1.5.2.jar


> Job - Solr Mapping Improvement
> ------------------------------
>
>                 Key: CONNECTORS-840
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-840
>             Project: ManifoldCF
>          Issue Type: Improvement
>          Components: Lucene/SOLR connector
>    Affects Versions: ManifoldCF 1.4.1
>            Reporter: Alessandro Benedetti
>            Assignee: Karl Wright
>            Priority: Minor
>              Labels: field, mapping, request, solr, update
>             Fix For: ManifoldCF 1.5
>
>         Attachments: CONNECTORS-840.patch
>
>
> "When you configure a job to use a Solr-type output connection, the Solr 
> connection type provides a tab called "Field Mapping". The purpose of this 
> tab is to allow you to map metadata fields as fetched by the job's connection 
> type to fields that Solr is set up to receive. This is necessary because the 
> names of the metadata items are often determined by the repository, with no 
> alignment to fields defined in the Solr schema. You may also suppress 
> specific metadata items from being sent to the index using this tab. 
> Add a new mapping by filling in the "source" with the name of the metadata 
> item from the repository, and "target" as the name of the output field in 
> Solr, and click the "Add" button. Leaving the "target" field blank will 
> result in all metadata items of that name not being sent to Solr."
> In my opinion we should change the way a metadata field is suppressed.
> The most natural way is that we express only the mappings of the metadata 
> fields we want to keep.
> All the missing params will not be sent to Solr.
> The improvement will be :
> - same interface with a boolean flag in addition, this flag will specify if 
> the missing metadata fields not expressed should be sent to Solr with the 
> original names or not sent at all.
> In this way if we want to keep 3/100 metadata fields, we don't have to write 
> 100 mapping entries , 97 empty but simply 3 entries and activate the flag.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to