[GeoNetwork-devel] CSW BooleanQuery$TooManyClauses

Hi all, if any of you are facing TooManyClauses exception in CSW search,
"org.apache.lucene.search.BooleanQuery$TooManyClauses: maxClauseCount is
set to 1024", a quick fix could be to apply to CatalogSearcher the same
hack as in LuceneSearcher to fix that :
BooleanQuery.setMaxClauseCount(16384);
I will search for a better option but at least we need to have CSW and
GeoNetwork search behave the same way.

This error message is linked to Lucene and wildcard query and only
happen under certain conditions. If you search for a*, then this will be
mapped to all terms starting with "a" in the index, and became a AFRICA
or AUSTRALIA or ANYOTHERCOUNTRIESSTARTINGWITHAA or ... which cause the
exception.

Ciao

Francois