incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [6/6] git commit: Fixing issue with highlighter not turning off.
Date Tue, 17 Dec 2013 13:57:13 GMT
Fixing issue with highlighter not turning off.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/70597f44
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/70597f44
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/70597f44

Branch: refs/heads/master
Commit: 70597f44be3f690c36ebdc0689e115df545eedf4
Parents: af9637b
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Tue Dec 17 08:50:27 2013 -0500
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Tue Dec 17 08:56:55 2013 -0500

----------------------------------------------------------------------
 .../src/main/java/org/apache/blur/shell/QueryCommand.java      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/70597f44/blur-shell/src/main/java/org/apache/blur/shell/QueryCommand.java
----------------------------------------------------------------------
diff --git a/blur-shell/src/main/java/org/apache/blur/shell/QueryCommand.java b/blur-shell/src/main/java/org/apache/blur/shell/QueryCommand.java
index 60e89ae..a8e0f38 100644
--- a/blur-shell/src/main/java/org/apache/blur/shell/QueryCommand.java
+++ b/blur-shell/src/main/java/org/apache/blur/shell/QueryCommand.java
@@ -35,6 +35,7 @@ import org.apache.blur.thrift.generated.FetchRowResult;
 import org.apache.blur.thrift.generated.HighlightOptions;
 import org.apache.blur.thrift.generated.Row;
 import org.apache.blur.thrift.generated.Query;
+import org.apache.blur.thrift.generated.Selector;
 
 public class QueryCommand extends Command implements TableFirstArgCommand {
   @Override
@@ -66,7 +67,7 @@ public class QueryCommand extends Command implements TableFirstArgCommand
{
     Query query = new Query();
     query.setQuery(queryStr);
     blurQuery.setQuery(query);
-    blurQuery.setSelector(Main.selector);
+    blurQuery.setSelector(new Selector(Main.selector));
     blurQuery.setCacheResult(false);
     blurQuery.setUseCacheIfPresent(false);
 
@@ -128,7 +129,8 @@ public class QueryCommand extends Command implements TableFirstArgCommand
{
     out.println();
   }
 
-  private void printSummary(PagingPrintWriter out, BlurResults blurResults, int maxWidth,
long timeInNanos) throws FinishedException {
+  private void printSummary(PagingPrintWriter out, BlurResults blurResults, int maxWidth,
long timeInNanos)
+      throws FinishedException {
     long totalResults = blurResults.getTotalResults();
     out.println(" - Results Summary -");
     out.println("    total : " + totalResults);


Mime
View raw message