Questions tagged [keywordquery]
A class of the Microsoft.SharePoint.Search.Query namespace, KeywordQuery represents a search query that uses the Keyword syntax.
75 questions
0 votes
0 answers
185 views
CSOM - Field or property "QueryText" does not exist
I am attempting to search files and folders held in SharePoint for a user entered phrase but consistently get the following exception: Microsoft.SharePoint.Client.ServerException HResult=0x80131500 ...
0 votes
1 answer
336 views
Querying large number of search results fails occasionally with Search encountered a problem or timeout
We have some old timer jobs that have been developed some years ago, but we recently rewritten in an attempt to enhance the performance and prevent some issues like SharePoint Search encountered a ...
0 votes
2 answers
46 views
Suddenly my C# code stopped bringing SPO user profiles
My code was working properly in development and production environments. All of a sudden stopped working after Mon 2022-06-27 12:00 AM. It works properly in Production environment but in Development ...
0 votes
0 answers
153 views
Not getting correct results from KeywordQuery search by UniqueID
This happens in code and also using the latest SharePoint Search Query Tool (v2.8.8, https://github.com/pnp/PnP-Tools/releases/tag/v2.8.8-Search-QueryTool) I do a query (Example "UniqueId:"{...
0 votes
0 answers
149 views
Strange search behaviour when searching on items containing point/dot/period in field value
I have a pages library containing 5 items. Each item has a field named ProjectId. The values for the ProjectId field for the 5 items are F.000108.01 F.000109.01 F.000110.01 F.000111.01 F.000112.01 ...
0 votes
1 answer
620 views
Report of all lists/libraries and documents where a particular keyword in available
One of our monitoring tool is getting replaced by another tool. So I need to generate a report all lists items/libraries and documents where the old tool name is referred and take action. I have to ...
0 votes
3 answers
98 views
Search Result by filter does not find an existing and crawled document
This is related to SP 2013 On-Premises. We have a custom Search Page and we use Keyword-Query to filter the Result. The related document which cannot be found by that page has at least two meta data ...
1 vote
2 answers
847 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:$...
0 votes
1 answer
86 views
KeyWordQuery and Two or More Arguments
How do you correctly structure a Keyword query with two or more variables? <Query> <Context> <QueryText type="STRING">Path:/sitename/libraryname AND CONTAINS(taco)</...
1 vote
1 answer
2k views
Search Document Library in a site
I would like to search only document libraries in a site(not the document). I tried below search but its returning documents within the document library. path:"http://localhost/managedpath/sitename" ...
0 votes
0 answers
96 views
Keyword Query Language to get all the Items holding particular SharePoint Security group from Site Collection
I have requirement to get all the items from Lists & Document Libraries of entire site collections holding SharePoint Security group name "Inspection" using Keyword Query Language. Can any one ...
1 vote
1 answer
2k views
How do I add a refinementFilter to remove results with null in certain fields?
I am trying to filter results from a JSOM KeywordQuery people search to only include people who have a "Department" listed, but it's still returning everyone, with and without departments. I think I ...
0 votes
2 answers
527 views
SharePoint Search results using KQL is not security trimmed
I am using export to excel functionality in my SharePoint web application where, when the user click the export to excel button,the code returns the search results using Keyword query language and ...
6 votes
2 answers
15k views
Search Keyword Query - Site URL with space in Path not working
I have tried to search for specific site using following simple Keyword Query: Path:https://contoso.sharepoint.com/Test site 1/ FileType:doc* Above query is not working due to space contains in the ...
1 vote
1 answer
228 views
Difference between Creating a new Result Source and configuring Search Result webpart Query
I have a subsite where I would need to return results. The results will be similar to the out of the box Local SharePoint Sites except that results will be coming from a specific subsite. I know that ...