A class of the Microsoft.SharePoint.Search.Query namespace, KeywordQuery represents a search query that uses the Keyword syntax.

learn more… | top users | synonyms

10
votes
2answers
374 views

Performing a search that is not security trimmed

I'm trying to documents of a certain content type that has a certain tagging (the documents are spread over several site collection). To get some performance I'm trying to do it with a KeywordQuery. ...
5
votes
3answers
2k views

How to enable phonetic results when using KeywordQuery?

I cannot seem to get a custom keyword query to return phonetic results when searching for people. I have FAST search installed, and if I do a people search (in the FAST search center) for "Jon", I ...
4
votes
1answer
760 views

Possible to combine KeywordQuery and FullTextSqlQuery?

Basically I would like to get all results that would be returned for a normal keyword query, but I want to filter those results with a WHERE clause. I tried using KeywordQuery or FullTextSqlQuery but ...
4
votes
1answer
569 views

Search API not returning hit

I have a problem where one of my documents does not show up in search. I have investigated with the REST API and found no evident wrongs. Example: Doing a search for MyCustomProperty="Something is ...
3
votes
1answer
6k views

RowLimit - The allowed range of values is 0 to 500

I have a KQL query used with KeywordQuery that used to work in SP 2010 but no longer works in 2013: scope="All Sites" AND path:"/sites/" AND path:"/Pages/ThisPage.aspx" The error that’s given is: ...
3
votes
2answers
2k views

CSWP “Value of a field on the Page” Questions/Issues

We're trying to create a seach query that grabs a content type based on a taxonomy field added to our custom Publishing Page content type. We seem to be having one of two issues: We don't know how ...
3
votes
1answer
41 views

spSiteDataQuery vs KeywordQuery

What is the difference between spSiteDataQuery and KeywordQuery? My goal is to search only a number of specific lists by their list GUID. The specific lists I need are both Generic List and ...
3
votes
2answers
3k views

SP2013 - KeywordQuery search profile by Birthday field

I need search people profile by Birthday field using KeywordQuery. The field is indexed correctly, when I search for REST, /_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-...
2
votes
2answers
2k views

How to search/query by Enterprise Keywords?

I'm doing a recommendation engine and I need to access the Enterprise Keywords of a document and search for other documents having at least 1 matching keyword. So for example I have Document A which ...
2
votes
1answer
269 views

Restrict Search not to show deleted managed property value

The default SharePoint behavior is to also search documents which have been deleted unless the content has been re-crawled or index is reset. I am using a KeywordQuery to search items with a ...
2
votes
2answers
106 views

KeywordQuery Not returning Documents

My query is set to return both List Items and Documents. contentclass:STS_ListItem OR contentclass:STS_ListItem_DocumentLibrary When testing my query inside SharePoint the return results are ...
2
votes
1answer
1k views

How to use LastModifiedTime in KeywordQuery?

I've been using FullTextSQLQuery or Search Web Service in my custom search solution till today. Wanted to explore KeywordQuery but usage of 'LastModifiedTime' in query doesn't return search results. ...
2
votes
1answer
707 views

KeywordQuery problem

Can anyone help me with SharePoint 2010 KeywordQuery problem? I have the following code to search user profile and sort results by managed property. var keywordQuery = new KeywordQuery(site) { ...
2
votes
1answer
891 views

KeywordQuery and Refiners: How to specify a RangeMapping Refiner?

I need to use the KeywordQuery class to connect to a FAST Search Server. I still want to be able to display refiners (much like the default Refiner Web Part). The default refiner web part supports a ...
2
votes
1answer
1k views

use of searchExecutor

I'm trying to use the search for sharepoint 2013 so I use searchExecutor. My issue is when I execute this line, I get an exception ResultTableCollection searchResults = searchExecutor.ExecuteQuery(...
2
votes
1answer
1k views

Sharepoint Keywordquery search returns less results than default sharepoint search

I have a requirement in which I want to get the search results programmatically. For this I am using KeyWordQuery to search programmatically. But here I am getting less results that default SharePoint ...
2
votes
1answer
536 views

Search only document libraries using KeywordQuery

Is it possible using KeywordQuery to pull back all (only) records that are documents in document libraries? Wondering if there is a KeywordQuery.QueryText property I can use for this type of thing.
1
vote
2answers
68 views

Managed Property not recognizing in QueryText

I have a KeywordQuery that is sorting using the StartDate (managed propery: StartDateOWSDATE). However it does not recognize StartDate in the QueryText. Error: We didn't understand your search terms. ...
1
vote
1answer
7k views

How to use SharePoint 2013 search keyword query refiners and refinementfilters?

I m working on requirement where I need to write a client side managed code in C# to pull search results based on the free text query and then should be able to refine the result based on the Keyword ...
1
vote
2answers
53 views

Multiple List Search with KeywordQuery

Trying to search specific lists by passing in the list paths. path={0}+path={1}+path={2} Is this possible? Dose the above code look correct? No results are currently returning.
1
vote
1answer
558 views

Phonetic Search in normal search

Is it possible to have phonetic search in the normal search and not only in the peoplesearch? I read that in SP2010 the KQL does not support phonetic search in Non-People-Searches. What about SP2013 ...
1
vote
1answer
37 views

KeywordQuery: Seach Multiple Content Types

Is it possible to search multiple content types with KeywordQuery? ContentTypeName: Content Type A AND ContentTypeName: Content Type B
1
vote
1answer
2k views

SP 2010: How to search for a Content Type in a KeywordQuery?

I want to search all of my Sites for a special Content Type with a Keyword Query. Any suggestions?
1
vote
1answer
26 views

Sort by Date Descending in JS Search

I have a KeywordQuery in JavaScript. The items returned are by date ascending. How can I change this to date descending? var keywordQuery = new SharePoint.Client.Search.Query.KeywordQuery(...
1
vote
1answer
24 views

Search Most Popular Pages with KeywordQuery

In my Visual Web Part I need a KeywordQuery to search Most Popular Pages. Also, filter the results for Pages only.
1
vote
1answer
47 views

KeywordQuery filter by Start and End dates using Today

I have a KeywordQuery that I need to filter so the current date is between the Start Date and End Date. Today >= "Start Date" && Today < "End Date"
1
vote
1answer
391 views

How to get the trigger keywords of a query rule through PowerShell

I'm attempting to export all query rules for a provided URL to a csv file via PowerShell. I have this working about 80%, the last piece I need is to find the keywords or terms that actually trigger ...
1
vote
2answers
972 views

KQL Query Structure doing searches in code

I want to build a KQL query for some server side code to search both custom properties and document content. So if for example there was a property called reference and we are looking for content say "...
1
vote
2answers
5k views

Keyword query string in SharePoint Search

I need to create custom search web part with 3 filters. First filter will have all list names in a dropdown box. Second filter will have particular list column values(only 2 values like active and ...
1
vote
1answer
25 views

JavaScript KeywordQuery Search {Today-30} not working

I have a kerywordquery in JS that is working but when i add {today-30} it does not. This is working: (RefinableStartDate<=Today AND RefinableEndDate>Today) It does not when I add -30 days: (...
1
vote
0answers
31 views

SharePoint 2013 CSOM C# - How to limit results of KeywordQuery to specific folder?

I am currently using SharePoint 2013. I want to limit my results of the query to specific folder within my list. For example entering the oath for the QueryText field: keywordQuery.QueryText = "path:...
1
vote
1answer
38 views

KeywordQuery Syntax: column contains “abc” OR column contains “xyz”?

What is the syntax for column contains "abc" OR column contains "xyz"? Here is my query: * Category:Castle Black OR Category:Kings Landing Separately "Castle Black" returns 4 results, and ...
1
vote
1answer
74 views

How to get created date column of sharepoint list in the keywordquery result

I have created custom search page in SharePoint 2010 in which KeywordQuery class is used. I want to get created date column of list in the result. What I have done is created managed property and ...
1
vote
0answers
661 views

Search query to find all tasks assigned to current user

I have a custom web part which runs a KeywordQuery to find all tasks across all site collections assigned to the current user. The query itself looks like this: "ContentClass:'STS_ListItem_Tasks' ...
1
vote
0answers
360 views

UnauthorizedAccessException from KeywordQuery on specific result source (Local People Results)

I have had a good look around online and haven't been able to find anyone with this specific issue so I'm resorting to posting my own question. I'm running a KeywordQuery in a web service which I ...
1
vote
1answer
669 views

Custom KeywordQuery ignores scope until I visit viewscopes.aspx

I have a setup with two farms. Farm A is the front-end farm where web applications are hosted and farm B is the service farm where the search service + others are hosted. I have set up a custom ...
1
vote
0answers
131 views

suffix and infix searches in SharePoint 2010 using keywordquery search

Is there a way to perform suffix or infix search in SharePoint 2010 using KeywordQuery search? I want to search my site using scopes. I am using Property Restrictions and wildcards but i cannot ...
1
vote
0answers
684 views

KQL how to search for announcements that are not expired

I'm trying to search in an announcement list. I want the search to return only items, that aren't expired (ows_Expires >= [today]). I found, that ows_Expires is mapped to a managed property called "...
1
vote
1answer
2k views

KeywordQuery and Taxonomy fields

I'm programatically trying to use the Search Apis to find some documents. In order to customize the process, I'm selecting some basic properties : var query = new KeywordQuery(site) { QueryText =...
1
vote
0answers
887 views

Increase KeywordQuery QueryText max length in SP 2010

I am using SharePoint Server 2010. I faced some difficulties with the Core Search Results Web Part. The issue was that my query length was to be about 2500 characters. This long query served to filter ...
1
vote
2answers
1k views

Get all items from custom content type in Fast Search

I want to get all items of a custom content type while using fast search. I want to use keyword search but i also could use fql. Can somebody show me how to do this in code? I'm getting restults for ...
0
votes
1answer
84 views

KeywordQuery QueryText proper syntax formatting

How would I format my QueryText. I have multiple List paths. I want all items returned in the lists that i provide. example: * AND path={0}+path={1}+path={2} Also, How do I include the columns ...
0
votes
2answers
1k views

Use Created datetime in keywordquery

I want to use the Created column in my keywoard query, like this: KeywordQuery query = new KeywordQuery(site); query.QueryText = "ContentType=\"Vraag\""; // AND TaskStatus<>Voltooid"; ...
0
votes
1answer
604 views

How to define scope for specific content-type in KeywordQuery class

I can get results with simple text queries but i need to limit the results for a specific content-type. What should i do?
0
votes
1answer
4k views

Limit search result to documents only but also exclude folders

I'm using a KeywordQuery within a custom Webpart on a SP2010 farm to aggregate the latest "documents" from the site collection the webpart is running at ("document" = every item stored in a document ...
0
votes
2answers
25 views

How to refine the KQL search results filter by document content type?

I need to refine the KQL search results that should return only Documents. Any Pointers ? KeywordQuery query = new KeywordQuery(web); query.QueryText = queryText; query.Refiners = "IsDocument"; // No ...
0
votes
0answers
52 views

Search Keyword Query Language returns less data

I have created Managed property called AssignedTo for list field "Person or Group" which is having "Allow multiple selections" option set to true. I have performed full crawl. Now when I execute KQL ...
0
votes
0answers
53 views

Custom Refinement Intervals SharePoint 2010 (FAST)

I am using the KeywordQuery class to create a custom search application that leverages our FAST Environment. Thus far, everything works well except the date refiners. I am attempting to organize the ...
0
votes
0answers
113 views

SharePoint 2013 Keyword query returning duplicate entries

I have a KQL query for searching documents with a set of document metadata. In development environment the query is returning actual result, in testing environment the query returns duplicate entries....
0
votes
0answers
286 views

SharePoint search Client Object Model and Server Side Object Model

So I have two Console Search which I am testing out the usage of SharePoint Search Models via visual studio 2013. I encountered an issue where EnablePhonetic and EnableNicknames does not really work ...