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

learn more… | top users | synonyms

4
votes
1answer
160 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 ...
1
vote
1answer
1k 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
574 views

Possible to combine KeywordQuery and FullTextSqlQuery?

Basically I would like to get all results that would returned for a normal keyword query, but I want to filter those results with a WHERE clause. I tried using KeywordQuery or FullTextSqlQuery but ...
0
votes
1answer
61 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
1answer
101 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 ...
0
votes
1answer
421 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 = ...
0
votes
1answer
46 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
763 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 ...
0
votes
1answer
389 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 ...
0
votes
1answer
174 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 ...
0
votes
1answer
146 views

Search only approved items using KeywordQuery

We have approval workflow for document library & content approval column was set to yes for it.We have used KeywordQuery on the library by creating separate scope.We want to display only approved ...
1
vote
0answers
175 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
0answers
108 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
457 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 ...
1
vote
0answers
426 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
0answers
553 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 ...
0
votes
0answers
392 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 ...
0
votes
0answers
182 views

Search using KeywordQuery not working in WCF Webservice

The sample code I'm using to test Sharepoint Server Search works fine from a Console Application: using System.Data; using System.Linq; using Microsoft.SharePoint; using ...
0
votes
0answers
58 views

date in utc not in current for keywordquery

I use Keywordquery for making a custom search result. I've some managed property and one is date format. The issue is if i look the value for date in powershell I get 2013-04-03 23:05 but when I ...
0
votes
0answers
311 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
0answers
198 views

Error when result set to more than 2000 while querying Fast Search Server for Sharepoint

I developed a tool which allows user to select some Managed Properties (e.g. FileName, Author, FileType, Publisher etc) and a textbox to enter a search term. The result what we get is a tabular data ...