|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
[gatewiki-commits] SF.net SVN: gatewiki:[1756] trunk/cow/grails-appRevision: 1756
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1756&view=rev Author: markagreenwood Date: 2009-10-27 11:59:43 +0000 (Tue, 27 Oct 2009) Log Message: ----------- supply solr base url in config to work with proxy support needed for sventon etc Modified Paths: -------------- trunk/cow/grails-app/conf/Config.groovy trunk/cow/grails-app/controllers/SearchController.groovy Modified: trunk/cow/grails-app/conf/Config.groovy =================================================================== --- trunk/cow/grails-app/conf/Config.groovy 2009-10-27 11:41:22 UTC (rev 1755) +++ trunk/cow/grails-app/conf/Config.groovy 2009-10-27 11:59:43 UTC (rev 1756) @@ -113,6 +113,7 @@ nutchSolrHome = "${sysUserDir}/../nutch-solr" logFile = "${sysUserDir}/../nutch-solr/solr-app/multicore/conf/logging.properties" + baseUrl = "http://localhost:" + System.getProperty("server.port") } guest { layout.dir = "layouts/" //directory with layouts gsp in it Modified: trunk/cow/grails-app/controllers/SearchController.groovy =================================================================== --- trunk/cow/grails-app/controllers/SearchController.groovy 2009-10-27 11:41:22 UTC (rev 1755) +++ trunk/cow/grails-app/controllers/SearchController.groovy 2009-10-27 11:59:43 UTC (rev 1756) @@ -182,7 +182,7 @@ queryString << "q=" + URLEncoder.encode("url:file*") // address for the solr search - def address = "http://localhost:" + request.getServerPort() + + def address = conf.gate.cow.solr.baseUrl + conf.gate.cow.solr.context + "/core" + params.id + "/select" // final url @@ -217,7 +217,7 @@ queryString << "q=" + URLEncoder.encode(params.searchBox) // address for the solr search - def address = "http://localhost:" + request.getServerPort() + + def address = conf.gate.cow.solr.baseUrl + conf.gate.cow.solr.context + "/core" + params.id + "/select" // final url This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ gatewiki-commits mailing list gatewiki-commits@... https://lists.sourceforge.net/lists/listinfo/gatewiki-commits |
| Free embeddable forum powered by Nabble | Forum Help |