Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [search-api]

API, an abbreviation of application program interface, is a set of routines, protocols, and tools for building software applications.When using the search API, we typically used the KeywordQuery or FullTextSqlQuery classes.

1
vote
1answer
37 views

Search API not returning lookup column values

I want to retrieve all the library items of a content type "Prod Request". I am using REST API for this. I am not able to get lookup column values.In below query my lookup column name is LookUp1. I ...
0
votes
1answer
22 views

Search/REST API only showing all results to Farm admin

I want to retrieve all the library items of a content type "Prod Request". I am using REST API. Here is my query: $.ajax({ url: https://mysite.domain.com/_api/search/query?...
1
vote
0answers
10 views

Refinement filter to look at the Title and Path properties with REST Search API

I have a POST search using the following select properties: Path,Title,Size,Author,Description,FileExtension,Rank,DocId,WorkId,ParentLink,FileType,ServerRedirectedEmbedURL,ServerRedirectedPreviewURL,...
2
votes
1answer
35 views

Search API get team and communication sites

How do I search for Team Sites and Communication Sites using SharePoint Search REST API?
2
votes
1answer
29 views

Need help with Search API

I have below search query: http://siteURL/_api/search/query?querytext='ContentType:"CTName" AND AirDateOWSDATE<2018-12-07T05:00:00.000Z'&trimduplicates=false&rowlimit='500'&...
1
vote
0answers
28 views

How to process sharepoint page (site pages) data returned from rest api, i.e fetch title comments likes etc ,

How to process the html(ish) content returned by rest API while fetching site pages from Sharepoint , and is there any better approach to fetch page data. Trying the same with search api fetches ...
0
votes
1answer
151 views

Sharepoint REST api search for a querytext in a list

I am having issue while searching using query text in a specific list for cross-domain. Also I am not able to search in a specific site, when I use the following get query, url: appweburl + "/_api/...
0
votes
0answers
45 views

How to return the last item modified from each queried list using Search query api?

I would like to query all lists across different site collections based on a specific content type, but getting only the last modified item. Using Rest api and caml query, can be achieved, but that ...
1
vote
1answer
52 views

SharePoint 2013 Search API not returning png result

I am attempting to search a SharePoint instance using the search api. I have two files in a document library called AddDoc.docx and AddPic.png. However, when I search using Add* only AddDoc.docx is ...
0
votes
1answer
93 views

Exclude Forms/DispForm.aspx? from search results Search api Sharepoint online

How can i exclude "Forms/DispForm.aspx?" from search results using the search api for SharePoint Online? I tried the following querytext: $querytext= path: *: // * /DispForm.aspx* But it is not ...
0
votes
1answer
33 views

How to add multiple filters to a property in Search api Sharepoint

Below is my querytext to get items from pages library and document library. $quertText="createdby:XXX AND contentclass:STS_ListItem_850 AND STS_ListItem_DocumentLibrary" But it is returning 0 ...
0
votes
1answer
56 views

Filter site pages , AllItems.aspx from Search results using search API powershell

I have to get data from sharepoint tenant based on createdby using Search api powershell .In search results there are allitems.aspx and sitepages,Pages,Forms/Allitems.aspx,calendar.aspx also .How can ...
0
votes
1answer
134 views

Get Site URL using Keyword query Search api

I want to get Site URL using Keyword Query power shell.. Below are properties(b and lastmodifiedtime) im retrieving using keyword query ..likewise i want to get Site URL using below approach,how can ...
1
vote
0answers
120 views

Get page views of a page in SharePoint using Javascript

Is there a way to get the total number of page views of a page in SharePoint using Rest API or JSOM? I tried using Search API http://SiteUrl/sites/_api/search/query?querytext='home' But in all the ...
0
votes
1answer
81 views

Getting the data from a search result using the web/lists/getbyTitle/items REST API end point

I can't believe this is so difficult. Here is what I need and I just seem to be chasing my tail and not getting anywhere. In my local database I have stored the path and the file id of files that ...
1
vote
2answers
34 views

Is it possible to get a list of all content types in a site collection using search api?

I have a few site collections and I would like to retrieve the content types of each site collection and display them as a list and I was wondering if it can be achieved using search api?
2
votes
1answer
22 views

How to allow all users to execute search API call for group members info

I'm having an issue with SharePoint 2013, In js file deployed on search page I need to check the users group by this API /_api/web/sitegroups/getbyname('X')/Users The problem is that the users don'...
1
vote
1answer
375 views

500 Internal Server Error Search REST API

I am trying to call search REST apis from an spfx webpart, but I am getting this: GET http://servername/_api/search/query?querytext=%27*%27 My code looks like this: let query = `${this.context....
0
votes
0answers
55 views

API TotalRows with trimduplicates inconsistent

I'm trying to solve a issue related with pagination in my app. The TotalRows and TotalRowsIncludingDuplicates are both inconsistent, I can't rely on this info. I found this info about it, so it's a ...
0
votes
1answer
50 views

Can i get all items of all content types within a site collection using search API?

I want to show all Created BY and Modified BY users of all items of all content types within a site collection. Currently I'm using the _api/search/query?querytext=''&refiners='...
1
vote
1answer
85 views

I really need to query SharePoint Online search API from an on-premise site

Is this possible? We have an intranet hosted in Office 365 using SharePoint Online, however the performance is not that great. I wanted to migrate it to on-prem however for some of the functionality ...
0
votes
1answer
166 views

How to get all list items from all list (list having same name) in various sub sites using rest search api sharepoint 365

I am trying to get all list items in same name lists across the all sub sites having same names list. example list name: 'Action' Now I want to get all 'Action' lists items across the all sub sites. ...
0
votes
1answer
184 views

Add a negation refinement filter

Using Search Query tool, I need to generate a query to retrieve items from a SharePoint list by filtering item properties based on a dropdown values(-,A,B,C,D). My results should not include items ...
0
votes
1answer
104 views

Custom Content Type Missing from Search API results

I am trying to return all items with my custom content type applied but all the ContentType property is set to Item. Not sure what I am missing here. I have added my content type to my list and ...
1
vote
1answer
103 views

Suggest endpoint in the Search REST service in SharePoint 2013

I was trying to build a search box with suggestions as user typing using this endpoint "/_api/search/suggest" documentation in SharePoint Search REST API overview. However it doesn't seems work for ...
0
votes
1answer
145 views

fetching fields using Sharepoint search Api

I have a content type called News Item Below is my Search Api query http://spsite/sites/Intranet/_api/search/query?querytext='ContentType:News*'&selectproperties='Title,IsPromoted' I am trying ...
0
votes
2answers
456 views

How search inside all folders in Document Library

How can I search thought REST API all files in Document Library(DocLib), inside sub-folders included. Let's say I have: Folder 1A Folder 1.1 File A; Folder 2 File AA; File AAA; And I search a ...
1
vote
0answers
107 views

SharePoint Online API for trending documents in mysite

Is there any API to fetch all the trending documents in My Site.
1
vote
0answers
197 views

How to retrieve all list items from all site collections under a SharePoint tenant using Search Api

I need to fetch all list items with the conditions as The item could be of any content type (OOB content types or custom content types). The item could be in any site collection under my SharePoint ...
1
vote
1answer
744 views

Filtering a Search Query REST

I am trying to use REST to return items from a list, the search query needs to be filtered by Managed Properties, by Path and by type to ensure only List Items are returned. The Managed Property ...
1
vote
1answer
37 views

SPO - Simulate search being down

I'm creating an notification message to let users know if SharePoint Online search is down. What's the best way to simulate this? Right now, I'm thinking to call an AJAX request to https://mySPOsite/...
1
vote
3answers
11k views

how to filter fields using contains in sharepoint search api

I was using Sharepoint Rest api and the query looked like the one below http://sitename/HR/_api/web/lists/GetByTitle('Employee')/Items?$top=4000&$filter=( substringof('100',Title) and substringof(...
3
votes
2answers
1k views

Get managed metadata column value in sharepoint search result using search js with keyword query

I have retrieve SharePoint search results using javascript on SharePoint Online with following code: var keywordQuery = new Microsoft.SharePoint.Client.Search.Query.KeywordQuery(context); ...
1
vote
0answers
34 views

Find page url for image

Creating an image gallery. If a user clicks on a thumbnail the bigger image is loaded into a modal and they can pinch/zoom to see detail. If the title of the image is clicked it'll take them to the ...
2
votes
2answers
503 views

Is JSON Light supported for the SharePoint Search REST API?

I read about JSON Light support for SharePoint REST APIs and tried to use it to save some bytes when calling the SharePoint Search REST API (/_api/search). I get unexpected behavior with nearly all ...
1
vote
0answers
29 views

SharePoint Search: How to tell SharePoint to NOT send me its managed properties in the result set?

I'm calling the SharePoint Search REST API like this, saying I want only the value of managed property SomeProperty: https://sharepoint/_api/search/query?querytext='trololo'&trimduplicates=false&...
0
votes
1answer
625 views

Error on SP.RequestExecutor in sharepoint online: Object doesn't support this action

I am trying to do a simple search using javascript in SharePoint online but I am getting the following error:Object doesn't support this action. The error is thrown right here: var executor = new SP....
1
vote
2answers
471 views

How do you get the ContentType name for the items returned using SEARCH API

I use SP SEARCH api and below is my enpdoint: /_api/search/query?querytext=%27matrix%27&&$expand=ContentType&rowlimit=5 It doesn't seem to show anywhere that "$expand" is supported. I ...
0
votes
1answer
251 views

Why isn't a managed property associated with a column returning when I query through the Search API?

I'm using SharePoint 2013 Enterprise on-premises. So I've scoured the Search Schema up and down. I've perused & searched everyone of the Managed Properties and Crawled Properties. I simply cannot ...
3
votes
0answers
679 views

Search query for keyword search in a particular list Sharepoint Hosted app/add in Online

I am trying to add keyword search functionality using REST api on a particular list. I have got the result using the query as : var queryUrl = appWeb + "/_api/search/query?querytext='" + keyWord + "+...
0
votes
1answer
397 views

Why won't a Search REST API request not work on all Site Collections?

My organization has a SharePoint Online tenancy. I created a Test Site collection as a Subsite of the main Site Collection. I'm able to submit the following REST call through a chrome browser, and I ...
1
vote
0answers
62 views

ngResource Url parameter issue

I'm creating a type-ahead People search using HTML, JS, AngularJS against the REST endpoint for SharePoint Server 2013 Search API. My specific issue is in my resource definition. The pattern the ...
2
votes
0answers
196 views

How to get lookup field in Search REST API? [duplicate]

How to retrieve the lookupId or lookupvalue in Search REST API results with other fields. http://server/_api/search/query?querytext='sharepoint'&selectproperties='Title,Age'
1
vote
1answer
170 views

Need help using SEARCH REST API

Im currently trying to build a SharePoint Add-in that tells you who's birthday it is on the current date. I would like to use the SharePoint search api for this but im struggling with an issue. ...
4
votes
2answers
940 views

Difference between Search REST API and Lists REST API

I'm having difficulty explaining my question, mainly based on the reason for the question itself. So the whole issue is a circular mess in my head. I really have a slew of questions. Please confirm ...
0
votes
0answers
134 views

RefinableInt not working in search API

/sites/my/_api/search/query?querytext=%27(ContentTypeId:0x01489534544341EDD* AND ListId:C694N7-C900-48BE-V1E3-5094087615F2) %27&rowlimit=30&TrimDuplicates=true&selectproperties=%...
0
votes
1answer
857 views

How to give greater than or equal to in Search API

/sites/my/_api/search/query?querytext=%27(ContentTypeId:0x01489534544341EDD* AND ListId:C694N7-C900-48BE-V1E3-5094087615F2 AND FYOWSNMBR>=2000) %27&rowlimit=30&TrimDuplicates=true&...
1
vote
1answer
5k views

Retrieve list items using Search API

My requirement is to retrieve list items using search API instead of rest API. I have used a content type for the list but I am unable to retrieve the items in the List.This is due to the incorrect I ...
2
votes
0answers
532 views

Sharepoint 2013 Search anonymous REST API query always returns zero results

TLDR version: Is there some trick to using refinementFilters or a result set in an anonymous query to the Sharepoint Search REST API? Whenever I try, I get zero results, even though it returns all ...
2
votes
0answers
154 views

sharepoint search api timezone issue

Sharepoint search api seems to use a different timezone I created 5 new articles with today's date, but they are not appearing in the api search query. I have a search query rule which picks up ...