0

I have a strange issue: if I search for documents that have not been modified for 2 years, I will still find documents that have been modified in 2014. Obviously, this is unexpected and unwanted.

I've used advanced search for this, resulting in the following query: Write<=1-1-2012

Any ideas what may cause this behavior? Thank you for your help!

Edit: I'm using sharepoint 2010 by the way...

7
  • I think you need to add the date in this format: yyyy-MM-ddTHH:mm:ssZ Commented Oct 1, 2014 at 9:15
  • Thank you for your quick reply! I just tried that, and unfortunately ended up with the same (wrong) search results...
    – Rostam
    Commented Oct 1, 2014 at 9:17
  • I do not recognize the Managed Property Write, shoud you not use Modified? Commented Oct 1, 2014 at 9:19
  • You mean Modified<=2012-1-1? The first hit is a document created in 2013, so this isn't working as expected either :-/
    – Rostam
    Commented Oct 1, 2014 at 9:26
  • You should still use correct query format Commented Oct 1, 2014 at 9:54

2 Answers 2

0

You need to write the query as

Write<="1/1/2012"

Here is a good reference for search keywords for SharePoint 2010.

5
  • Thank you for the suggestion and the reference! Unfortunately, it still shows the wrong search results... :-/
    – Rostam
    Commented Oct 1, 2014 at 13:49
  • did you try to directly type this into the default search box instead of doing it into the advanced search ? Commented Oct 1, 2014 at 14:11
  • Yes I did, any other ideas?
    – Rostam
    Commented Oct 1, 2014 at 14:17
  • I just tested this in my environment and it works for me. Make sure you do not have any spaces in the query and put the date in quotes. Also, might sound naive, but are you sure there are documents available for the criteria you are searching on ? Commented Oct 1, 2014 at 14:29
  • Thank you for your help. Most results in the search result match what I'm looking for, but quite a few do not. I guess the search query is correct, so that would suggest something underwater is broke..?
    – Rostam
    Commented Oct 2, 2014 at 7:16
0

I guess date/time should be UTC in ISO formatted.

Date YYYY-MM-DD:

2017-06-15

Date with time YYYY-MM-DDThh:mm:ssZ:

2017-06-15T18:30:00Z

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.