Question on behalf of Andreas Haug:
How can we debug (or find out) why dataservice ListDocumentsOperation is not returning any results where we expect ones?
Is there a way to find out what lucene query is generated by
QueryResult queryResult = documentQueryService.query(documentModelName, filterSpec, sortSpec, pageSpec);
?
Hi Andreas,
Please use the following configuration keys to enable mode logging for the search
mgmtp.a12.dataservices.logging.anonymization.enabled=true
logging.level.com.mgmtp.a12.dataservices.search=DEBUG
logging.level.org.apache.lucene.search=INFO
logging.level.org.apache.solr=INFO
It is also possible to use debugger for the Lucene search implementation, because the search is done in process.
For Solr, however, it will not be possible as the search is happening on the remote server. Enabling more logging will allow you to construct a final Solr query that you can execute in the admin console of the Solr instance.
The answer is valid for the data services version 33.0.0+
Is mgmtp.a12.dataservices.logging.anonymization.enabled=true a typo?
I would expect that for useful debug logging, anonymization should be disabled?
@thomas-soft-grove you are right
by default it is enabled, what I meant is that the anonymization should be disabled for debugging