Fix hard limit for all TermIndex searches

Having a hard limit is really important. In all cases. Maximum
should always be the hard limit. If it makes sense (in case weight
is not used) use the lowest possible limit.

Change-Id: I56fda129fcb30768f3e51b52046953b4b7e29bb4
Merge "Fix hard limit for all TermIndex searches"