How do I find the items with non-null values using KQL (Keyword Query Language)?

I am working on Content Search web part which uses query to search for the items.

According to the article (Link: https://msdn.microsoft.com/en-us/library/ee558911(v=office.15).aspx), I cannot find any example for non-null values.

How do I find the items with non-null values using KQL (Keyword Query Language)?

For example:

path:"http://www.example.com" (FieldName IsNotNull)


  • Edited by Jerioon Tuesday, May 19, 2015 9:16 AM
May 19th, 2015 9:16am

Hi Jerioon

for finding not null values using KQL you can use not equal(<>) operator. see the example below

ContentType:Employee Name<>""

Regards.

Avinash.

Free Windows Admin Tool Kit Click here and download it now
May 19th, 2015 11:01am

This might work with empty string values, but it does NOT work with null values.
August 21st, 2015 4:21pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics