1

I have a content search web part that is getting the 5 most recently modified items, ordered by LastModifiedTime, from a list. I am also displaying the LastModifiedTime on a custom item display template.

When I attach a document to the list item, the LastModifiedTime uses the documents data instead of the list item itself. I have tested this with excel and word files, but .txt did not cause this issue. Has anyone else experienced this? Is there a workaround?

2 Answers 2

2

Yes this is a feature of SharePoint 2013 search it pulls the last modified date property from office documents.

How about mapping the ows_modified crawled property to one of the predefined RefinableDateXX managed properties and sorting by that instead.

1
  • I have tried that and ows_q_DATE_Modified and it did not return correct results. It didn't have an affect on the order at all.
    – MickB
    Mar 12, 2015 at 20:34
0

You can create a new managed property or modify the existing RefinabkeDateXX managed property by mapping the crawler property ows_Modified.

Note: After creating the creating new managed property or modifying the existing RefinabledateXX, you will must have to run the Full Crawl. Once the Full Crawl will be done, you will able to see your desire output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.