How to extract the generated URL from a SolrNet query

1,304 views
Skip to first unread message

Benny Halperin

unread,
Apr 7, 2010, 7:11:28 AM4/7/10
to SolrNet
If I send a query like this:

// searchExpression is a string, options is QueryOptions object
solr.Query(searchExpression, options)

How can I extract the URL generated under the hood? I want to log all
my queries as URLs

Thanks, Benny

Mauricio Scheffer

unread,
Apr 7, 2010, 8:05:15 AM4/7/10
to SolrNet

Howard van Rooijen

unread,
Apr 7, 2010, 6:43:34 PM4/7/10
to sol...@googlegroups.com
On a slight tangent - you can get access to all the query urls from the Tomcat logs - which should be somewhere like:

C:\Program Files\Apache Software Foundation\Tomcat 6.0\logs

and you should be interested in the ones called catalina.SOME-DATE.log

/Howard


--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To post to this group, send email to sol...@googlegroups.com.
To unsubscribe from this group, send email to solrnet+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/solrnet?hl=en.


Markus Engelhardt

unread,
Mar 6, 2014, 3:46:06 AM3/6/14
to sol...@googlegroups.com
Hi.

I work with multiple cores and use SolrServerElement and SolrServers and have no direct usage of ISolrConnection.
How can I get the generated request URL to Solr anyway?

Thank you,

Markus

Mauricio Scheffer

unread,
Mar 10, 2014, 1:31:50 AM3/10/14
to sol...@googlegroups.com

Markus Engelhardt

unread,
Mar 11, 2014, 7:48:21 AM3/11/14
to sol...@googlegroups.com
Thanks again for the advice, I'll look into that.


--
You received this message because you are subscribed to a topic in the Google Groups "SolrNet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/solrnet/jrzyxWHnIkE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to solrnet+u...@googlegroups.com.

To post to this group, send email to sol...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages