Execute 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
Execute 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] --allResultsallResults- set to retrieve all resultsThe 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