I'm trying to do a search with the REST API sorting by ViewsLifeTime but the result search contains documents with ViewsLifeTime value is null, how can I avoid that?

  • what is the SharePoint version you are referring
    – kesava
    Jul 30, 2015 at 3:11
  • Sharepoint online
    – yngrdyn
    Jul 30, 2015 at 13:34

1 Answer 1


First enable Search and Query property for "ViewsLifeTime" managed property in search service and perform full crawl.

Use Search Query API for not returning the items for which "ViewsLifeTime" count is null


Reference Links :- [Filter for Empty Values in Search][1]

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.