manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1649201 - /manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
Date Sat, 03 Jan 2015 13:20:19 GMT
Author: kwright
Date: Sat Jan  3 13:20:19 2015
New Revision: 1649201

URL: http://svn.apache.org/r1649201
Log:
More fixes for CONNECTORS-1130.

Modified:
    manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java

Modified: manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java?rev=1649201&r1=1649200&r2=1649201&view=diff
==============================================================================
--- manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
(original)
+++ manifoldcf/trunk/connectors/documentum/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/DCTM/DCTM.java
Sat Jan  3 13:20:19 2015
@@ -1195,14 +1195,13 @@ public class DCTM extends org.apache.man
         // For each attribute, go through the operations and emit an AND clause
         for (String attributeName : filters.keySet())
         {
-          filterPart.append(" AND ");
           Map<String,Set<String>> operations = filters.get(attributeName);
           for (String operation : operations.keySet())
           {
             Set<String> values = operations.get(operation);
             if (operation.equals("="))
             {
-              filterPart.append("\"").append(attributeName).append("\"").append(" IN (");
+              filterPart.append(" AND \"").append(attributeName).append("\"").append(" IN
(");
               boolean commaNeeded = false;
               for (String value : values)
               {
@@ -1216,7 +1215,7 @@ public class DCTM extends org.apache.man
             }
             else if (operation.equals("<>"))
             {
-              filterPart.append("(");
+              filterPart.append(" AND (");
               boolean andNeeded = false;
               for (String value : values)
               {



Mime
View raw message