简体   繁体   中英

SolrJ client - Preview request before sending

Is there a way to view the request the client is about to send to the server? For instance:

SolrQuery solrQuery = new SolrQuery(query);
solrQuery.setRows(rows);
solrQuery.setIncludeScore(true);

solrQuery.setParam("defType","edismax");
solrQuery.setParam("debugQuery", "true");

// would like to preview the current built up request here
QueryResponse resp = _server.query(solrQuery);

SolrQuery.toString方法提供了您可以记录的所有参数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM