get eager loading working correctly for category search