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.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

get the value of custom property bag using search query

how can i get the value of the property bag using search restAPI query . I tried to index the property bag and run the crawl: $web.IndexedPropertyKeys.Add("sitetitlelabelkey") $web.Update() and when ...
0
votes
1answer
36 views

_api/search/query title field changed

We are using the below URL to search the data. /_api/search/query?querytext='test''&selectproperties='UniqueId, Title, OriginalPath, ServerRedirectedEmbedURL, ServerRedirectedPreviewURL'&...
0
votes
1answer
22 views

Why does the query to the Sharepoint API search on the internet explorer not work?

I am using the api search to make a query and get the value of a refinablestring. A basic example of the query I am doing is the following. https://mysite.sharepoint.com/_api/search/query?querytext='...
0
votes
1answer
18 views

Search api when executed from communication site are not returning team sites results

Let's say we have /sites/hub-1 which is a hub site and template is team site. Then we have 2 sites associated to sites/hub-1 /sites/team-1 which is a team site /sites/comm-1 which is a communication ...
0
votes
2answers
63 views

Sharepoint API authentication without OAuth

I'm trying to make an integration work between JIRA and Sharepoint to populate values in a custom field in JIRA from querying the Sharepoint API, but the JIRA Addon I'm using to does not support ...
0
votes
1answer
20 views

How to store user search queries in SharePoint Online in a list

I want to store the user search queries which are entered in the search box in a list and display them in a page without duplicates. I know I can get the excel report from popularity and search ...
0
votes
0answers
16 views

FQL query to match exactly several phrases with “or” mode

Could someone help me construct the query part of refinementfilters or say if it's possible to achieve? The property is of the type multiline text (OWSMTXT) and I need to match several phrases ...
0
votes
0answers
57 views

Refinablestring Date Column Range Results using Search Rest API

We have a Document Library in SharePoint Online with Date Column and it was mapped to RefinableString00 Managed property. currently we are getting the search result using the below api url "/_api/...
0
votes
1answer
30 views

SharePoint Online Search

How could I filter by range in a managed property of type number in a sharepoint search? I'm using pnp-js-core Thanks so much.
1
vote
1answer
188 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
130 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
71 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
324 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
49 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
36 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
1k 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/...
1
vote
1answer
153 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
186 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
68 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
132 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
249 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
1answer
326 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
172 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
36 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
27 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
716 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
1answer
83 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
114 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
238 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
548 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
130 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
276 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
317 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
697 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 ...
2
votes
1answer
153 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
273 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
1k 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
42 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
17k 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); ...
2
votes
0answers
46 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
3answers
659 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
34 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
883 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
581 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
300 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
778 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
456 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
68 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'