change min length of query for external system