Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Search on Date with Smartsearch View modes: 
User avatar
Member
Member
sjors.vanrijwijck-itelligence - 9/20/2010 4:29:50 AM
   
Search on Date with Smartsearch
We have a problem with the Smartsearch module.

We would like to search for a date of an event, for example 31-10-2010.
Do we have to post the date in the querystring as follow?

Search-Results.aspx?searchtext=eventDate:201010310101

We tried this, and didn't get a result...
any ideas? Does anyone have a short tutorial for this?

Thanks in advance


User avatar
Member
Member
kentico_michal - 9/24/2010 8:52:28 AM
   
RE:Search on Date with Smartsearch
Hi,

You need to ensure following format of search query e.g.:
EventDate:[200902020101 TO 200906020101]
It means you need to define interval with (hours and minutes) as well as the name of the field, that contains date value.

Please find more information about this approach at following link:

http://devnet.kentico.com/docs/devguide/index.html?smart_search_search_syntax.htm

Smart search is based on lucene.net so additionally, please take a look at lucene.net query syntax

http://lucene.apache.org/java/2_4_0/queryparsersyntax.html


Best regards,
Michal Legen