Mercurial > hg > orthanc
diff OrthancServer/OrthancFindRequestHandler.cpp @ 3025:039a9d262d64 db-changes
preparing to speed up find in databases
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 17 Dec 2018 17:05:28 +0100 |
parents | 2cbafb5d5a62 |
children | 5da6d1063d8f |
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp Mon Dec 17 10:26:01 2018 +0100 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Mon Dec 17 17:05:28 2018 +0100 @@ -615,6 +615,7 @@ **/ LookupResource lookup(level); + DatabaseLookup lookup2; bool caseSensitivePN; @@ -655,6 +656,7 @@ } lookup.AddDicomConstraint(tag, value, sensitive); + lookup2.AddDicomConstraint(tag, value, sensitive, true /* mandatory */); } else { @@ -672,7 +674,7 @@ LookupVisitor visitor(answers, context_, level, *filteredInput, sequencesToReturn); - context_.Apply(visitor, lookup, 0 /* "since" is not relevant to C-FIND */, limit); + context_.Apply(visitor, lookup, lookup2, 0 /* "since" is not relevant to C-FIND */, limit); }