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

learn more… | top users | synonyms

1
vote
1answer
670 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 ...
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(...
1
vote
1answer
27 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
1answer
27 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(...
0
votes
2answers
28 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
1answer
2k views

SharePoint 2013 - Sorting Search Results not working (KeywordQuery-SortList)

am using KeywordQuery to search and.. the SortList does not affect result, it is always return first 5 results. Any suggestion? The code is bellow... using (KeywordQuery query = new KeywordQuery(...
1
vote
0answers
34 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
39 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
26 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
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
2answers
71 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
49 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"
2
votes
2answers
107 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 ...
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
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
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 ...
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 ...
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 ...
2
votes
1answer
709 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) { ...
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
289 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 ...
0
votes
0answers
118 views

How to target all scopes in Sharepoint KQL 2010?

In SharePoint KQL 2010, I want to target all scopes (basically look in everything). I tried scope="*" and scope:"*" but neither of these work. Does anyone know if it is possible? Thanks
10
votes
2answers
376 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. ...
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 ...
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
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 ...
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-...
1
vote
0answers
670 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' ...
0
votes
1answer
110 views

SharePoint 2010 ISAPI WCF Service for Search using KeywordQuery not working

Below is my Applied code for Search in ISAPI WCF service, here when I debug DataTable count gives me zero. It works fine in SharePoint 2010 OOTB Search and have also configured Crawl settings. Can you ...
0
votes
1answer
432 views

How to programatically determine where a keyword search hit in the search index?

I have built a custom search experience that leverages the SharePoint 2013 Search Service App. The search app is written in ASP.NET using the server-side object model. I am using the KeywordQuery ...
0
votes
0answers
888 views

Search Keyword Query Language (KQL) has syntax error for date range

I have changed our search query using JavaScript and due to other requirements we now use the 'a' parameter which works fine for just about everything except for a certain date range value. The ...
4
votes
1answer
570 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 ...
0
votes
1answer
309 views

Keyword Search Query: Document Name versus Title

We have an SP2010 system running ordinary enterprise search. I have an issue with contains queries using the Title managed property and another managed property called Filename. What happens is ...
1
vote
0answers
362 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
392 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 ...
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 ...
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 "...
0
votes
1answer
128 views

In SharePoint 2007 document is crawled but not coming in the search result

What to do when documents are getting crawled but not coming in the serch result. I have checked the crawl log and I can see those documents are successfully crawled but in the search result those ...
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 ...
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: ...
1
vote
0answers
888 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
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?
0
votes
0answers
490 views

KeywordQuery returning wrong dates (date - 1 day)

I'm using a KeywordQuery in my SharePoint to get the list of tasks for a particular user, it works very well, only one thing that is going wrong is the date. Basically above of that webapart with ...
0
votes
1answer
386 views

keyword query with nullable

trying to query on multiple contenttype where one content type contains field XYClosed(Yes/No) and the other one does not contain it. So I created a scope and start writing fixed query. Returned ...
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 ...
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 ...
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 "...