working on parsing constraints for advancedsearch