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
2answers
103 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 ...
3
votes
1answer
53 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
833 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
489 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
28 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
65 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
37 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
496 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
297 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
143 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
127 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
88 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
400 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
304 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
453 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
11 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
14 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
67 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 ...
0
votes
0answers
75 views

tag box sharepoint 2010 like wordpress

we have several document library that describe it before in this link. we implement it like that: We have several department and some of these departments work closely together. Currently we ...
0
votes
0answers
222 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
130 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 ...