.filter("concept.retired", false) needs to be added only if (!includeRetired). See above. You should not add filter("concept.retired", true) otherwise as it is supposed to return only retired concepts.