LuceneIndexProvider booleanClauseLimit value
I have a collection which has more than 1024 assets, this collections is read using the query.
If the collection contains more the 1024 assets in it, the query is returned as blank. if it contains 1024 or less assets, the collection would work fine.
When I try to change the booleanClauseLimit value to 2048, all the collections are working fine.
Attaching the config for reference,

How to change this value via code? Is it recommended.