Gravatar for puneetpande@gmail.com

Question by ppande, Mar 20, 2015 2:25 PM

How to get the ServerUrl configuration element value in code

How can i access the value for in code. I'm writing some logic to change clickableuri. I need to access the value set for . How do i get that?

Thanks!

1 Reply
Gravatar for vseguin@coveo.com

Answer by Vincent Séguin, Mar 20, 2015 2:28 PM

Hi,

Retrieve the index's configuration by using Sitecore's ContentSearchManager, then cast into a CoveoIndexConfiguration (that is in the Coveo.Framework dll), and you will have access to the ServerUrl there.

Ask a question