For a bit of background to know what i am doing:
http://stackoverflow.com/questions/2409870/using-hit-highlighter-in-lucene
Now to solve this problem i am setting maxclause count to 50000.
it works.
can there be any problems by increasing the number of clauses