[TYPO3-Solr] URL of a result-item doesn't get updated
Jigal van Hemert
jigal.van.hemert at typo3.org
Thu Jul 11 22:49:45 CEST 2013
Hi,
On 11-7-2013 13:59, Andy Pattynama wrote:
> When we edit the title of a news and index&commit the changes to the
> Solr index, the title gets updated correctly on the result page but not
> the URL.
> e.g.
> News-ID: 234
> Title: This is the changed title
> www.domain.com/news/this-is-the-title-234/ --> the URL stays the same on
> the result page.
>
> This link will work as long as the tx_realurl_uniqalias doesn't get
> truncated. So my question is: Is it possible to update the URL for an
> item in the Solr index?
What you've seen is the behaviour of RealURL. Once a URL is created it
will be cached and kept like this (until you of course empty RealURL
caches because at that point RealURL has to re-build the cached URLs
from the available page and record titles).
This is done to keep URLs constant as soon as they are created.
Otherwise links from other sites to your pages would stop working
because you changed the title a bit.
The unique alias cache in RealURL is important to prevent identical URLs
for different record which happen to have the same title.
If you remove the item from the unique alias cache before Solr
re-indexes the record then Solr will get the changed URL from RealURL
and store it in the index.
--
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