Skip to main content
added 119 characters in body
Source Link

I have a requirement to create a saved search item under our bucket item, that will display all items created in the last X days, where X is 7 by default but client would like to change that.

We use Solr 6.6.2 and Sitecore 8.2 update-6.

I can't use a Date Range facet on the right, because it is not flexible enough and the filter has to be applied automatically when user opens saved search item.

In this link I found that there is a NOW parameter that I can use with Solr, but it does not work.

I tried something like this.

enter image description here

UPDATE:

The NOW parameter has to be provided to Solr as a query string parameter, but Sitecore doesn't do that.

I have a requirement to create a saved search item under our bucket item, that will display all items created in the last X days, where X is 7 by default but client would like to change that.

We use Solr 6.6.2 and Sitecore 8.2 update-6.

I can't use a Date Range facet on the right, because it is not flexible enough and the filter has to be applied automatically when user opens saved search item.

In this link I found that there is a NOW parameter that I can use with Solr, but it does not work.

I tried something like this.

enter image description here

I have a requirement to create a saved search item under our bucket item, that will display all items created in the last X days, where X is 7 by default but client would like to change that.

We use Solr 6.6.2 and Sitecore 8.2 update-6.

I can't use a Date Range facet on the right, because it is not flexible enough and the filter has to be applied automatically when user opens saved search item.

In this link I found that there is a NOW parameter that I can use with Solr, but it does not work.

I tried something like this.

enter image description here

UPDATE:

The NOW parameter has to be provided to Solr as a query string parameter, but Sitecore doesn't do that.

Source Link

How to search for items created in the last X days in Content Search tab?

I have a requirement to create a saved search item under our bucket item, that will display all items created in the last X days, where X is 7 by default but client would like to change that.

We use Solr 6.6.2 and Sitecore 8.2 update-6.

I can't use a Date Range facet on the right, because it is not flexible enough and the filter has to be applied automatically when user opens saved search item.

In this link I found that there is a NOW parameter that I can use with Solr, but it does not work.

I tried something like this.

enter image description here