Tagged Questions

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

learn more… | top users | synonyms

0
votes
1answer
85 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
477 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
220 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 ...
4
votes
1answer
205 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
106 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
0answers
68 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 ...
1
vote
0answers
187 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
1answer
474 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 = ...
1
vote
1answer
89 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
1answer
253 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 ...
0
votes
1answer
50 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 ...
1
vote
2answers
396 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
1k 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 ...
2
votes
1answer
1k 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, ...
0
votes
1answer
803 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
4k 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
1answer
2k 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
1answer
677 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
320 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
414 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 ...
3
votes
1answer
1k 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 ...
0
votes
1answer
184 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
239 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
0answers
111 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 ...
2
votes
2answers
930 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 ...
0
votes
1answer
152 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
470 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 ...
0
votes
0answers
216 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 ...
1
vote
0answers
436 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
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 ...
2
votes
1answer
237 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 ...
1
vote
0answers
571 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 ...
2
votes
1answer
623 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 ...
1
vote
1answer
588 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
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
470 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?
1
vote
1answer
990 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. ...
1
vote
2answers
4k 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
396 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
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 ...
3
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 ...