Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [search-query]

A search query is a query that a user enters into a search engine to satisfy his or her information needs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
86 views

Search a folder in a document library with PnP

how can I search on a document library for the folders containg a specific name? where is the doc for that? I want to seach my document library "MyDocs" for folders containing, in the title, ...
serge's user avatar
  • 133
0 votes
0 answers
71 views

How to stop Rest APi call /search/query to not include contents of the folders in the result

I was jsut wondering if its possible to refine searchquery to not to include contents of the folders. I have a query like this POST request https://graph.microsoft.com/v1.0/search/query "...
Andrea's user avatar
  • 1
0 votes
1 answer
21 views

SharePoint Online Web Part Query

I'm trying to add [AccountName] "does not contain TEST". Below is the existing code. Can some one show me how to add AccountName does not contain the word 'Test'? {searchboxquery} ...
Travis Horne's user avatar
0 votes
1 answer
88 views

Unable to get preview of a msg file from SharePoint REST API

How can I get preview URL of a msg file? I’m developing a custom search web part in SPFx framework. My code: Const sp = spfi(“https://home.sharepoint.com/sites/site/").using(SPFx(this.props....
Kristinn Lindal's user avatar
0 votes
1 answer
533 views

Search on document libraries using query webpart

I have SharePoint 2013 team site with 25 lists and libraries, what I need to do is to create a search webpart just to search four document libraries? is this achievable with search query webpart? Kind ...
Harris's user avatar
  • 595
0 votes
1 answer
272 views

Search Query to Exclude Group

I have a search query that I found off the internet that I want to modify. This code snippet below returns me all the SharePoint lists I currently have access to. (contentclass:STS_Site OR ...
Mark Cuban's user avatar
0 votes
1 answer
51 views

SharePoint 2016 Search API Query

Just wondering if someone can help me with SharePoint 2016 Search query, basically I am trying to query special field values in SharePoint List. Search Query: http://XXXXXX/_api/search/query?...
Yermek Zhandauov's user avatar
0 votes
1 answer
36 views

Content Search Query Webpart

I have created a Content Search Query Web part which go through a document library and shows the result based on the column (metadata). The old metadata was LGBTI and it was working fine, however ...
Harris's user avatar
  • 595
0 votes
1 answer
56 views

Showing refined list of subsites via search results web part based on most clicked subsites

I am working with SharePoint online classic site collection. Using a search results web part on a search page, I am displaying a list of subsites using following query: (path:https://****....
mdevm's user avatar
  • 1,255
3 votes
1 answer
119 views

Display Frequently visited documents for the logged in User using Search Results webpart

I want to display frequently visited items (only Documents) by the logged-in user through search results webpart by handling with search query. I have tried using sortby "ViewsRecent" by "Descending" ...
praveen's user avatar
  • 143
1 vote
1 answer
1k views

Combine multiple URL parameters for search query

I'have this query string ContentTypeId:0x01010062A988F9081BD142926BC79A5AA59288* {?{QueryString.Document}} and i would like to add another QueryString to it but im not sure how to add it correctly. I'...
Carsten Løvbo Andersen's user avatar
1 vote
0 answers
592 views

SharePoint Online - Content Search based on page 'Wiki Category' field

I have added a Content Search web part to a Wiki Page Layout and I want to display all Wiki Pages that have the same category as the page the user is on. My plan is to use the page field "Wiki ...
Chris Taverner's user avatar
0 votes
1 answer
244 views

sharepoint search OR query with filter

I had the following query: https://[tenant].sharepoint.com/_api/search/query?querytext='Path:"https://one365dev1.sharepoint.com/teams/privegroep/Gedeelde%20%20documenten/*%22Isdocument=1"'&...
Rodney Wormsbecher's user avatar
1 vote
0 answers
66 views

Searching by Managed Metadata

Currently I have a document library with multiple views and tabbed using hillbilly tabs, the find a file function is not working for me for some reason. The library has a managed metadata field and I ...
Flat Banana's user avatar
1 vote
0 answers
183 views

Create Search Query rules in SP Online using CSOM

Am trying to create Query rules in search feature through Office 365 developer. am trying to do this through client object model. But i didn’t get information on the classes to be used for this. Any ...
samolpp2's user avatar
  • 3,500
-1 votes
1 answer
1k views

Get only one result from search query REST API

We are trying to get only one result from couple of results. Bellow is command: _api/search/query?querytext='JobTitle="IT support"'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31' When I run it, ...
Danilo's user avatar
  • 1,759
2 votes
0 answers
23 views

Assigning the values of Managed column into another field in Search query

I have a List with the managed column "Finance" which contains the list of finance departments. I need to check if User's department belongs to any of the values in the "Finance" list.I am using ...
NivethaSri's user avatar
0 votes
2 answers
1k views

sharepoint search multi value managed property

I'm working on Sharepoint 2013 and I have a site column named Location tied to a taxonomy, you will have the corresponding managed property to query against: owstaxIdLocation. I want to create two ...
Matteo Bernardon's user avatar
1 vote
1 answer
3k views

select specific properties from People Manager with rest api

i use this query to get User properties /_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27SP%5Catish%27 In response i get a UserProfileProperties object which shows all the ...
Tarek Salah uddin Mahmud's user avatar
2 votes
2 answers
10k views

How to add more than one refinementFilters in a search query

My search query is /_api/search/query?querytext='*'&selectproperties='PreferredName,OriginalPath,WorkEmail,SipAddress,Department,Path,PictureURL,JobTitle,AccountName,BaseOfficeLocation,'&...
Tarek Salah uddin Mahmud's user avatar
0 votes
1 answer
143 views

Can not filter my Search results inside my Search Content WebPart based on a Dropdown site columnvalue

I have a site column named Risk/Issue status which is of type drop down and have multiple values, such as; Open, Closed, In Progress, etc.., as follow:- now i want to define a search query inside my ...
John John's user avatar
0 votes
1 answer
137 views

Search query variables escaping

Search queries allow to filter by the current web property value with the "{Site.propertyName}" syntax (https://technet.microsoft.com/en-US/library/jj683123(v=office.15)) How can be escaped the ...
Timea's user avatar
  • 1
0 votes
1 answer
220 views

How to build this SearchQuery in SharePoint 2013 Search Result Webpart?

My search query: Path:{Site.URL} EventDateOWSDATE:{Today+4} OR EndDateOWSDate:{Today+4} Does only return the events with an Enddate of Today+4. But I want it, to show me "all the Events of Today+4 ...
JDaniels's user avatar
1 vote
0 answers
402 views

How to use SP13 Search to show the most read blog posts during last 7 days?

We have 2 blogs, on different sites, on our intranet. On the homepage, we use a content by Content Search Web Part because we'd like to show a top 5 list of the most read/viewed posts (from either of ...
Piet Schat's user avatar
1 vote
1 answer
920 views

How to get all items in SC with a specific content type using JavaScript

There are five custom lists in a site collection, all have same content type. I would like to get all items from those five lists using JavaScript. Is there a way to get all items from all lists ...
Sinan Kachachi's user avatar
0 votes
1 answer
81 views

Implement search on field value in SharePoint 2013

How to query the SharePoint 2013 Search Service Application so that I will get results on the basis of field value in list? Eg. If the value is Active, it should be shown in search, if not active the ...
Gurinder Shergill's user avatar
3 votes
1 answer
3k views

what is the difference between ows_q and ows_q_text

When I try to create a managed property in Search and I try to select a crawled property, I get two sort of crawled properties for the same site column. ows_q_TDC_x0020_Article_x0020_Number and ...
Imir Hoxha's user avatar
  • 1,895
1 vote
1 answer
1k views

Content search query sort

I am trying to show last 10 modified documents in my search query for content search web part. In my query for sorting i choose "LastModifiedTime" descending. But the query dont display the correct ...
Anders's user avatar
  • 969
1 vote
1 answer
826 views

SharePoint 2013 Content Search WebPart Query Unable to Exclude People Results

I am using a Content Search WebPart to search for a keyword from 100s of site collections under a web application. I have two content sources: 1. http://web.application (All the sites) 2. sps3://web....
Murali Krishna Golla's user avatar
2 votes
4 answers
8k views

How can I limit search results to only one child site below the current site?

I have an application where the end user is able to add new subsites to existing sites, and add sub sites to those sub sites and so on. As part of the site template I have a Search Results Web Part ...
Tim's user avatar
  • 409
0 votes
2 answers
488 views

Search - get tasks where Start date equals to Due date

Is it possible to build a search query, where I could fetch all tasks where start date equals to due date? Something like: TaskDueDateOWSDATE=TaskStartDateOWSDATE assuming I mapped start date to ...
jjczopek's user avatar
  • 1,537
1 vote
0 answers
79 views

Search result preview returns title and url, is there a way to only show custom site columns in the result?

I've got a list with one item (site columns: title, license). Is there a way to retrieve only what's inside license based on the query text? (content search web part) I've tried to use {|License(from ...
Plexus81's user avatar
  • 2,250
2 votes
1 answer
3k views

sharepoint search boolean managed property

I have a managed property isActive which happens to be a Boolean. I am creating a search query and I only want the ones that are active so isActive:true however I am having trouble with the correct ...
jimmywhizz's user avatar
3 votes
1 answer
5k views

CSWP query - list all items in a list AND list a spesific item in another list

Is there a way to combine two list in cswp? Get all list items from "car" list Get a spesific item from "plane" list (path:"company/Lists/car" (IsDocument:"True" OR contentclass:"STS_ListItem")) ...
Plexus81's user avatar
  • 2,250
3 votes
1 answer
967 views

phone number search query

I am writing a query for phone numbers in search so when you input any part of the number it is returned by the search. I tried using this : (MobilePhone:{subjectTerms} OR PhoneNumber: {subjectTerms}...
bimbob's user avatar
  • 471
0 votes
0 answers
153 views

query rule sharepoint search

((^(?!(([\d-\.\s\(\)+]*([a-df-su-wyzA-DF-SU-WYZ]+|[tT]|[eE](?![xX][tT])|[xX][a-zA-Z]+))|(\d{1,3}$)|((\+|00|0)(\d+)$)))(")?(((\+|00|0)|(?=(\d*\s*\()))[0]*(?<country>\d+))?[\.\s-]?(\(?(?<area&...
bimbob's user avatar
  • 471
1 vote
0 answers
180 views

Search Query Variables in SharePoint 2010 (Federated Search)

I am working on an OpenSearch end-point that will be used solely by SharePoint environments (both 2010 and 2013) in federated search results. When configuring results sources in SharePoint 2013, ...
John Chapman's user avatar
  • 11.9k
1 vote
0 answers
685 views

how to pares search api odata json result in C#

i'm using that search query string siteUrl = "<site>"; string queryText ="Path:\"pathTosearch/*\" IsDocument:1"; string rowlimit = "10"; string sortExpression = "Write:descending"; ...
Hager Aly's user avatar
  • 131
0 votes
1 answer
1k views

How to retrive sharepoint list data using Search query in sharepoint 2010?

Currently i receiving data from sharepoint list using CAML and Linq. but now requirement is to retrive data from sharepoint list using search query. can anyone give examples or good articles to ...
Hitesh Chandegara's user avatar