Questions tagged [kql-query]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
51 views

KQL Query for SharePoint Online List (Column) Search

I am trying to search for two title fields in a SharePoint list using KQL and can't seem to get this to work. I can get it to work for a single Column, but I can't get it to search for a second ...
0
votes
1answer
29 views

SharePoint Search - Result Source to retrieve only 5 People along with rest of the results

Can you please help me in formulating a KQL or FQL query? Is it possible to retrieve only 5 people results from the below query. Rest 15 can be anything from the index of the SharePoint Search Service....
0
votes
1answer
31 views

How to write ANDNOT in KQL query?

I need to achieve a query where RefinableDate00 must be earlier than today RefinableDate00:1900-01-01..{Today} but also should not be null since if it is null, the result I want does not appear in the ...
1
vote
1answer
57 views

SharePoint Search - KQL query (results limitation)

I have a issue with limiting search results using PnP Modern Search. In addition to pulling all *.docx documents from the document library, I would like to skip those that have the name "...
0
votes
0answers
96 views

Is there a way to do an if statement in a KQL query?

I'm using the PnP Modern Search SPFX web parts to build a staff directory. The web part configuration accepts a KQL query and allows you to specify the query template. I have specified a query ...
0
votes
1answer
412 views

How to write a query in KQL for Internal and External ip addresses [closed]

How do you write a query in KQL looking for external ip addresses and internal ip addresses
0
votes
0answers
43 views

KQL query to skip non-existing fields

In modern SharePoint, we have translated a SharePoint home.aspx page into many languages and want only news articles in a specific language to show on the respective translation of that page. ...
1
vote
2answers
2k views

How to search only some specific sites using result source - SharePoint Online

I have couple of sites and subsites and would like to create a result source just for these sites. Then my intention is to add a new search webpart or use the existing one but change it to use my new ...
1
vote
0answers
90 views

Search result source exclude read only sites

I am looking for a way to set up two search result sources, one that should exclude all content from any site collection that have been set as Read only and another that should only show content from ...
1
vote
2answers
562 views

How to set search scope to specific site or subsite using KQL powershell csom

I want to search for content in a specific subsite in sharepoint online. How can I set scope of search to subsite in KQL using powershell csom? I tried the following query: $queryText="createdby:$...