New command: get search results
See original GitHub issueExecute SharePoint Search query
command: spo search -q|--query <query> --sourceId [sourceId] --sourceName [sourceName] --trimDuplicates [trimDuplicates] --allResults -p|--selectProperties [selectProperties] --refinementFilters [refinementFilters] --queryTemplate [queryTemplate] --sortList [sortList] --startRow [startRow] --rowLimit [rowLimit] --rowsPerPage [rowsPerPage] --rankingModelId [rankingModelId] --culture [culture] --refiners [refiners] --hiddenConstraints [hiddenConstraints] --enableStemming [enableStemming] --enablePhonetic [enablePhonetic] --processBestBets [processBestBets] --clientType [clientType] --properties [properties] --enableQueryRules [enableQueryRules] --processPersonalFavorites [processPersonalFavorites] --allResults
- you can specify either sourceId or sourceName but not both
- when you specify sourceName and properties the values should be merged into a single properties string
allResults- set to retrieve all results
The goal would be to bring all different parameters to provide full feature to Search like PowerShell.
For more information about the meaning and usage of the different options see https://docs.microsoft.com/en-us/sharepoint/dev/general-development/sharepoint-search-rest-api-overview
For more information about the sample implementation see the Submit-PnPSearchQuery cmdlet
For information about setting the result source name see: http://www.techmikael.com/2015/01/how-to-query-using-result-source-name.html
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (3 by maintainers)

Top Related StackOverflow Question
@waldekmastykarz because I had too much time on my hands 😉
@waldekmastykarz in prioritized order:
And then there are all the parameterts of Submit-PnPSearchQuery