Page 1 of 1

How can I get Search to find content in News module

Posted: Sun Jan 20, 2008 5:29 pm
by bluemonkey
I'm a newbie, have already looked through the boards and cannot find a solution for this problem.

When using the search function, it will find active news articles, but once the article expires, it is no longer appears when searching.

I've already got a page with the archived articles... how can I get the search feature to index these??

Re: How can I get Search to find content in News module

Posted: Mon Jan 21, 2008 1:50 pm
by nivekiam
By default it should work.  Mine does.  Have you changed anything in your template?  Here is the default snippet from a template for putting the search box on a page:

  {* Start Search *}
 
          {search}
 
  {* End Search *}

That searches and finds content in my test news article.

Re: How can I get Search to find content in News module

Posted: Mon Jan 21, 2008 10:26 pm
by bluemonkey
Yes, I have the exact same code. 

In my testing, if the article is active, search will find it.  If the article is expired, it is no longer found.

Here is the process I tested with:
  • created a news article, checking to use the expiration date, and setting an end date of 1 minute in the future.
  • Immediately search the article while still active - Search finds the article
  • After the designated time (1 min) has passed, I search again - Article is no longer found
Thank you in advance for your assistance.

Re: How can I get Search to find content in News module

Posted: Tue Jan 22, 2008 5:14 am
by nivekiam
Ah, looks like that is what the intended behavior is.  I'd file a feature request here http://dev.cmsmadesimple.org/projects/newsmodule/ to add an option to allow searching an article after expiration.