Don't send back recon candidate types for rendering cells.
git-svn-id: http://google-refine.googlecode.com/svn/trunk@340 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
c07ba83a36
commit
f8d30e9e8e
@ -48,11 +48,14 @@ public class ReconCandidate implements HasFields, Jsonizable {
|
||||
writer.key("guid"); writer.value(topicGUID);
|
||||
writer.key("name"); writer.value(topicName);
|
||||
writer.key("score"); writer.value(score);
|
||||
writer.key("types"); writer.array();
|
||||
for (String typeID : typeIDs) {
|
||||
writer.value(typeID);
|
||||
|
||||
if (!options.containsKey("reconCandidateOmitTypes")) {
|
||||
writer.key("types"); writer.array();
|
||||
for (String typeID : typeIDs) {
|
||||
writer.value(typeID);
|
||||
}
|
||||
writer.endArray();
|
||||
}
|
||||
writer.endArray();
|
||||
|
||||
writer.endObject();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user