manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1838005 - /manifoldcf/integration/elasticsearch-5.5/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/MCFAuthorizerRestSearchAction.java
Date Tue, 14 Aug 2018 10:16:36 GMT
Author: kwright
Date: Tue Aug 14 10:16:35 2018
New Revision: 1838005

URL: http://svn.apache.org/viewvc?rev=1838005&view=rev
Log:
Get past syntax error

Modified:
    manifoldcf/integration/elasticsearch-5.5/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/MCFAuthorizerRestSearchAction.java

Modified: manifoldcf/integration/elasticsearch-5.5/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/MCFAuthorizerRestSearchAction.java
URL: http://svn.apache.org/viewvc/manifoldcf/integration/elasticsearch-5.5/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/MCFAuthorizerRestSearchAction.java?rev=1838005&r1=1838004&r2=1838005&view=diff
==============================================================================
--- manifoldcf/integration/elasticsearch-5.5/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/MCFAuthorizerRestSearchAction.java
(original)
+++ manifoldcf/integration/elasticsearch-5.5/trunk/src/main/java/org/apache/manifoldcf/elasticsearch/MCFAuthorizerRestSearchAction.java
Tue Aug 14 10:16:35 2018
@@ -95,7 +95,8 @@ public class MCFAuthorizerRestSearchActi
             		
             modifiedJSON.replace("template",innerJSON.set("query", objectMapper.readTree(filteredQueryBuilder.toString())));
             searchRequest.templateSource(modifiedJSON.toString());
-            searchRequest.set
+            searchRequest.set("query", objectMapper.readTree(filteredQueryBuilder.toString()));
+            searchRequest.source(modifiedJSON.toString());
           } else {
             filteredQueryBuilder = QueryBuilders.boolQuery()
             		.must(QueryBuilders.wrapperQuery(requestJSON.findValue("query").toString()))



Mime
View raw message