We are using the FS-SEARCH module with the spider engine, to index all documents on the webpage.
At the moment, our start url for the spider engine contains an ip address.
This leads to the problem, that the links in the search results page will also contain the ip-address instead of producing links without any hostname.
Even if we would change our configuration xml file, so that the spider engine directly accesses the page via hostname instead of ip address,
we have the problem, that our web portal is accessible via different hostnames. So the search results would always point to pages of one and the
Are there any possibilites, that the spider engine is able to forget about the hostname, to create hostname-independent result links?
Since the search output is done by a jsp page - why do you not just rename the url withon the output.
<a href="<%= url.replaceAll("http://22.214.171.124/rootfolder/","http://my.domain.name/rootfolder/")%>"><% String shortUrl; if (url.length() > 100) shortUrl = url.substring(0, 66) + "..."; else shortUrl = url; %><%= shortUrl.replaceAll("http://126.96.36.199/rootfolder/","http://my.domain.name/rootfolder/") %></a><br />
Since we use a clear state-of-the-art architecture, with a well defined MVC encapsulation,
we avoid using scriptlets within a .jsp page.
Logic should be done in the controller layer. So one possible solution would be deriving the search engine servlet and doing the logic there.
It would be nice, if there is a much more convenient approach.