Sharepoint Search result webpart, property sort list - search

i'm using the sharepoint search result webpart and want to get a random result.
with REST it's working with query parameter sortlist=[random:seed=1]:ascending but i want to use the search webpart. It seems it's not possible to use sortlist there?

Related

Power BI query to return same-name list results from multiple subsites

We have a SharePoint site that users will create item records as a new subsite with a template. On this template is a list, we'll call List A. There are 90+ of these subsites with the same 'List A' name.
On List A there is a "Status" field with the "Closed" choice. I am looking to make a report (preferably in Table/Excel form) that will query all the 'List A' lists that have a Status field set to 'Closed'.
I am looking at OData queries but I'm very new to Power BI. Any help would be much appreciated!
Thanks!
I would build a query based on one subsite example, using the built-in connector for a SharePoint Online List. I would apply the Status = Closed filter. Then I would replace the hard-coded Site with a Query Parameter.
Now you can right-click that Query and choose Create Function.
Next you need a Query that lists your 90+ subsites with their URL. There might be an OData query that can do this or you might need to maintain a manual list e.g. in Excel. Then you can add a Custom column that calls the Query Function (created above) and passes each subsite URL.
Expand that table-type Custom column and the result will be the filtered rows from all the subsites.

Get List Title of a search result item

I want to get the the display title of the list, related to search result item in SharePoint search.
Result have OriginalPath and ParentLink values. But those are links to the list with internal name. But i could not find either display title or GUID of the list.
Please let me know how get either display title or GUID of the list.
You can use the SharePoint REST service to get the search results in a XML format which return all the fields and their values.
Querying with the Search REST service - https://msdn.microsoft.com/en-in/library/office/jj163876.aspx
You can construct the GET request URL with the query parameters as follows:
http://server/_api/search/query?query_parameter=value&query_parameter=value
The SharePoint 2013 Search Query Tool is a handy tool to quickly get the search results in XML format - https://sp2013searchtool.codeplex.com/
Found this post which describes how to get the list title of a search result item in a display template.
Since there is no managed property which contains the list title by default, the display template adds the list title to each item by retrieving it via a REST call using the web URL and the list ID.
https://github.com/SPCSR/DisplayTemplates/tree/master/Search%20Display%20Templates/Retrieve%20the%20list%20name%20in%20a%20display%20template

Sharepoint 2013 search result in table

I tried finding information on customizing the display result view without success.
I need to display the search result in a table in place of the list.
in my column of the result, I need the library and some common information between the different library.
Look at this template. Don't worry about "People Directory".
did you try creating a display template. That should let you customize the search results into any shape or form including tabular
http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/change-how-search-results-look-by-using-result-types-and-display-templates-HA104057444.aspx
http://blogs.technet.com/b/speschka/archive/2012/07/23/using-query-rules-result-types-and-display-templates-for-a-custom-search-sales-report-in-sharepoint-2013.aspx

SharePoint list based on another SharePoint list

I have a list in SharePoint that contains several fields. I need to do some calculations on this list (filter and count) and display the results on a different page. We are currently using SharePoint 2007.
I can't get what I need by creating a view from the list. I need to create a new list based on the first list to get the proper level of filtering.
The result I am trying to get from this view needs to be displayed on a separate page.
Since you edited with "I need to create a new list based off the first list to get the proper level of filtering" I would suggest writing a console app with some CAML to query exactly what you need and then dump that into a new list.
However, it sounds like you could be using some calculated columns and then do what Moo suggested.
I think some more details about the question would help you get a better answer.
In the list settings, you can add filters and counts/totals/sums to the view.

Sharepoint : Is there a webpart filter that supports wildcards?

I have a document library with a custom column named "compound" which is just text.
I want to put a filter (input text box) on that document library page so the view shows only the items where the compound column contains my typed-in text. Optimally, wildcards such as * or ? or full regular expressions could be supported... but for now, I just need a "contains".
The out-of-the-box text filter seems to only support an exact match.
The result output would be identical to what I would see if I created a new view, and added a filter with a "contains" clause.
Third party solutions are acceptable.
KWizCom has a filter web part that looks like it might do what you want:
KWizCom SharePoint List Filter Plus
Another option to try is using a SharePoint Designer Data View Web Part. I believe you can write the filter with a "contains" from SPD.
I know you can set up this kind of filter more easily if you add the normal List View to a page, and the edit it with SharePoint Designer. In SPD, you can set up a "begins with" filter. Here's a discussion where someone suggested the same thing.

Resources