This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<settings> | |
<!-- EXCLUDE CONNECTION STRINGS FROM HEART BEAT CHECK | |
Excludes specific connection strings from the heart beat check. | |
Values are Pipe (|) delimited and not case sensitive | |
Example: activedirectory|otherNonSQLconnectionString | |
Default value: not defined | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11020 12:21:21 INFO Query - (_name:(*A*) AND _val_:("recip\(ms\(NOW, publicationdate_tdt\), 3.16e\-11, 1, 1\)")) | |
11020 12:21:21 INFO Serialized Query - ?q=(_name:(*A*) AND _val_:("recip\(ms\(NOW, publicationdate_tdt\), 3.16e\-11, 1, 1\)"))&rows=500&fl=*,score&fq=_indexname:(sitecore_web_index) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var indexName = string.Format("sitecore_{0}_index", Sitecore.Context.Database.Name); | |
var searchIndex = ContentSearchManager.GetIndex(indexName); | |
using (var context = searchIndex.CreateSearchContext()) | |
{ | |
var dateBoostPredicate = PredicateBuilder.True<SearchResultItemModel>(); | |
dateBoostPredicate = dateBoostPredicate.And(x => x._val_ == "recip(ms(NOW, publicationdate_tdt), 3.16e-11, 1, 1)"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SearchResultItemModel : Sitecore.ContentSearch.SearchTypes.SearchResultItem | |
{ | |
[IndexField("_val_")] | |
public string _val_ { get; set; } | |
//custom publication date field defined in the Sitecore data template | |
[IndexField("PublicationDate")] | |
public DateTime PublicationDate { get; set; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IoC container | |
public IWindsorContainer container; | |
public class Test :SearchResultItem | |
{ | |
public ItemUri Uri {get;set;} | |
public string Testing {get;set;} | |
} |