[TYPO3-Solr] Limit tt_news
Hans-Peter M.
istbanane at googlemail.com
Thu Apr 11 11:39:05 CEST 2013
Am 11.04.2013 10:51, schrieb Dmitry Dulepov:
> Hi!
>
> Hans-Peter M. wrote:
>> is it possible to restrict the age of indexing for tt_news?
>> eg i want only the news from the last 6 month.
>
> additionalWhereClause is your friend :) Use something like:
>
> tstamp>UNIX_TIMESTAMP()-6*30*24*60*60
>
> Note: this will not remove old news from the index automatically.
>
>> I have old news. But i don't want to offer them in the search results.
>
> This is a different thing. You may remove the old items by sending a
> delete XML query to Solr. You need to make a condition using the value
> of "changed" field.
>
Thanks dmitry.
regards
HP
More information about the TYPO3-project-solr
mailing list