comparison OrthancServer/ServerContext.cpp @ 3204:8792867b739a

fix incorrect "too many results"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 06 Feb 2019 16:46:08 +0100
parents 574890d14c92
children f509d3c6d570
comparison
equal deleted inserted replaced
3203:810772486249 3204:8792867b739a
832 } 832 }
833 } 833 }
834 834
835 std::vector<std::string> resources, instances; 835 std::vector<std::string> resources, instances;
836 836
837 const size_t lookupLimit = (databaseLimit == 0 ? 0 : databaseLimit + 1); 837 {
838 GetIndex().ApplyLookupResources(resources, &instances, lookup, queryLevel, lookupLimit); 838 const size_t lookupLimit = (databaseLimit == 0 ? 0 : databaseLimit + 1);
839 GetIndex().ApplyLookupResources(resources, &instances, lookup, queryLevel, lookupLimit);
840 }
839 841
840 bool complete = (databaseLimit == 0 || 842 bool complete = (databaseLimit == 0 ||
841 resources.size() > databaseLimit); 843 resources.size() <= databaseLimit);
842 844
843 LOG(INFO) << "Number of candidate resources after fast DB filtering on main DICOM tags: " << resources.size(); 845 LOG(INFO) << "Number of candidate resources after fast DB filtering on main DICOM tags: " << resources.size();
844 846
845 assert(resources.size() == instances.size()); 847 assert(resources.size() == instances.size());
846 848