If there are just codeshares, LH revenue management will return 0 availability, because they just don't want to sell a ticket that is just for other airlines. If you have at least one longhaul operated by LH, then probability of seeing non-zero availability goes up a lot.