[TYPO3-Solr] URL of a result-item doesn't get updated
Andreas Pattynama
andreas.pattynama at innocube.ch
Mon Jul 15 08:15:17 CEST 2013
2013/7/11 Jigal van Hemert <jigal.van.hemert at typo3.org>
> 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/<http://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.
I made some tests and it looks like the new URL only gets indexed, once it
has been generated in the FE but I would need to verify that. But that's
ok, since we now re-index the articles more often and the URLs get
recreated. Since we have the article id in the URL, we always know where to
redirect not found articles.
Thanks for the explanation.
Best regards,
Andy
>
>
> --
> Jigal van Hemert
> TYPO3 CMS Active Contributor
>
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org
>
> ______________________________**_________________
> TYPO3-project-solr mailing list
> TYPO3-project-solr at lists.**typo3.org <TYPO3-project-solr at lists.typo3.org>
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**project-solr<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-solr>
>
--
innocube GmbH
Schlettstadterstrasse 31
CH-4055 Basel
Tel: +41 44 500 48 65
Mail: andreas.pattynama at innocube.ch
Web: http://www.innocube.ch/
More information about the TYPO3-project-solr
mailing list