Permalink
Browse files

Fixed embedded api to match the type of search_time (String) in the s…

…earch response.
  • Loading branch information...
1 parent b8a3cb9 commit 119a5a42b0c4f60a271b263c4421534ca2d212ed Ignacio Perez committed Dec 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 embedded-api/com/flaptor/indextank/api/resources/Search.java
@@ -86,7 +86,7 @@ public void run() {
if(didYouMean != null) {
jo.put("didyoumean", didYouMean);
}
- jo.put("search_time", searchTime);
+ jo.put("search_time", String.format("%.3f", searchTime));
print(jo.toJSONString());
return;

0 comments on commit 119a5a4

Please sign in to comment.