C# | Visual Basic |
[PersistenceModeAttribute(PersistenceMode.Attribute)] public virtual string FromURIPattern { get; set; }
<PersistenceModeAttribute(PersistenceMode.Attribute)> Public Overridable Property FromURIPattern As String Get Set
Eg 1. A developer builds a web-site on http://localhost/internalApp/ and builds the search index - the search works fine on localhost, however when moving the app. to the live server the search results are linked to localhost. To correct this the developer maps the localhost URLs to the real server's, by setting:
Copy | |
---|---|
FromURIPattern = "localhost/internalApp" ToURIPattern = "ourcompanysinternalserver" |
Eg 2. A developer builds a web-site on http://staging.ourdomain.com/ and builds the search index - the search works fine on the staging server, however when moving the app. to the live server the search results are linked to staging.ourdomain.com. To correct this the developer maps the staging.ourdomain.com URLs to the real server's, by setting:
Copy | |
---|---|
FromURIPattern = "staging.ourdomain.com" ToURIPattern = "www.ourdomain.com" |
Assembly: Keyoti4.SearchEngine.Web (Module: Keyoti4.SearchEngine.Web.dll) Version: 2022.8.22.610