what is your specific SolrQuery?
calling:
query.setQuery( " stuff with spaces " );
does not call trim(), but some other calls do.
My query looks e.g.
(myField:"_T8sY05EAEdyU7fJs63mvdA" OR myField:"_T8sY0ZEAEdyU7fJs63mvdA"
OR myField:"_T8sY0pEAEdyU7fJs63mvdA") AND NOT
myField:"_T8sY1JEAEdyU7fJs63mvdA"
So I want to find all documents where field "myField" contains any of
some UUIDs and must not contain another set of other UUIDs.
The only other thing I do is set the result limit:
solrQuery.setRows(resultLimit);
The actual strings which are truncated are in other fields of returned
documents.
Any idea?