Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi
i am trying to order examine results based on date time property like bellow
if (ExamineManager.Instance.TryGetIndex("ExternalIndex", out var index)) { var searcher = index.GetSearcher(); ISearchResults results = null; results = searcher.CreateQuery() .Field("path", newsSource.Path.ToString().MultipleCharacterWildcard()).And() .Field("__IndexType", "content") .And().Field("__NodeTypeAlias", "newsItem").And().Field("disabled","0") .OrderByDescending(new SortableField[] { new SortableField("publish_time") }).Execute();
but i think that didn't work a already changed the index type of property from text string to date time but i still get the results without ordering.
any idea ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
How to order examine results by date time property ?
Hi
i am trying to order examine results based on date time property like bellow
but i think that didn't work a already changed the index type of property from text string to date time but i still get the results without ordering.
any idea ?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.