'What is Liferay SearchRequestBuilder's emptySearchEnabled(boolean emptySearchEnabled) method used for?

I'm doing Elasticsearch Queries in my Liferay 7.2 project. I followed a tutorial because I'm new to this. It worked well! (Sadly I don't know which tutorial it was exactly...)

In my code there is one line which I don't understand:

searchRequestBuilder.emptySearchEnabled(true);

The documentation does not give any detail about this method. Can anyone explain this method? What is the default value?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source