[TYPO3-Solr] Difference in link creation between pages and other records
Jigal van Hemert
jigal.van.hemert at typo3.org
Fri Apr 18 10:31:28 CEST 2014
Hi,
Situation:
- in a single installation: website + intranet
- single core
- RealURL installed
- tested with EXT:solr 2.7.2 and latest git 3.0.0-dev
Because the documents from the website have to be shown in the search
results in the intranet the URLs have to be absolute.
pages:
absURL_stringS = TEXT
absURL_stringS {
typolink.parameter.field = uid
typolink.forceAbsoluteUrl = 1
typolink.useCacheHash = 1
typolink.returnLast = url
}
tt_news (similarfor other record types):
url = TEXT
url {
typolink {
parameter = 181
additionalParams = &tx_ttnews[tt_news]={field:uid}
additionalParams.insertData = 1
forceAbsoluteUrl = 1
returnLast = url
useCacheHash = 1
}
}
Result for pages:
<str
name="absURL_stringS">http://domain.nl/cultuur-sport-vrije-tijd/vrije-tijd/vrijwilligerswerk/vrijwilligersverzekering/</str>
Result for tt_news:
<str
name="url">http://domain.nl/var/www/html/domain.nl/start/nieuws/afdelingen-teams/nieuws-bericht/de-knipselkrant-is-vernieuwd/</str>
with RealURL disabled:
<str
name="url">http://domain.nl/var/www/html/domain.nl/index.php?id=181&tx_ttnews[tt_news]=1987&cHash=b01d7e2452cac18c25c492f60492a6f1</str>
This only happens when running the Index Queue Worker with the scheduler.
Are there differences in the frontend environment which is set up by
solr when indexing pages and when indexing other records? I can't think
of anything to explain the file system path in the links, only for
documents other than pages...
--
Jigal van Hemert
TYPO3 CMS Active Contributor
TYPO3 .... inspiring people to share!
Get involved: typo3.org
More information about the TYPO3-project-solr
mailing list