Date Search capabilities

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
9/3/2010 6:28:17 AM
Gravatar
Total Posts 108
Community Expert

Date Search capabilities

Hi Joe, I'm reading some old post, about the inclucion of Date filters for the search engine in the portal.

I want to ask if this is possible.


I read the code for the IndexItemCollection Search and found this two parameters PublishBeginDate and PublishEndDate. I wan to know if it's possible to modify this class and get the date filter capabilities that I'm looking for. 

9/3/2010 7:09:19 AM
Gravatar
Total Posts 18439

Re: Date Search capabilities

Hi,

I have a wish list item in my project tracker to make an advanced search that would allow searching on date.

I don't know when I will get to that, but I recommend you don't modify any mojoPortal code at all. If you do that you won't be able to upgrade without losing your changes.

It is more complicated than  publish date, content may be updated without changing the publish date. To do this right will require a good deal of work because we will need to store item level lastModDate in the search index to have a useful date to search on. Publish date is really meant to filter out search results for items where the publish date is in the future and we don't want to show it in search results until after it is published.

Best,

Joe

9/3/2010 7:32:26 AM
Gravatar
Total Posts 108
Community Expert

Re: Date Search capabilities

Hi Joe thanks for the quick answer.

I intend to implement this feature for my news module only (Blog module modified).

I already make, the search results filter by my news module automatically, and for the date search, I only need to now the publish date for filter becouse the publish date of the news don't change.

I making some tests changing the code, and seems to work find to me.

I was looking into your roadmap and I see that the news module is a feature that is coming, so maybe you can implement the date search only for this module, if you want I can send you the changes that I made. 

You must sign in to post in the forums. This thread is closed to new posts.