SharePoint Modern List/Library Search

%3CLINGO-SUB%20id%3D%22lingo-sub-2119929%22%20slang%3D%22en-US%22%3ESharePoint%20Modern%20List%2FLibrary%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2119929%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20implement%20the%20custom%20search%20feature%20for%20the%20specific%20library.%26nbsp%3BSPO%20modern%20library%20allows%20user%20to%20search%20the%20content.%20When%20the%20user%20search%20a%20keyword%20in%20the%20modern%20library%20view%20via%20the%20top%20search%20box%2C%20SPO%20adds%20%22view%3D7%22%20and%20%22q%22%20querystrings%20which%20switch%20to%20search%20view%20as%20the%20layout%20is%20similar.%26nbsp%3B%20Therefore%2C%20I%20plan%20to%20implement%20the%20custom%20search%20SPFx%20web%20part%20which%20will%20generate%20the%20complex%20search%20query%20that%20will%20pass%20it%20as%20%22q%22%20querystring%20paramter.%20However%2C%20the%20list%20view%20page%20doesn't%20allow%20to%20add%20the%20additional%20web%20part.%20When%20I%20create%20a%20new%20page%20and%20add%20the%20library%20web%20part%2C%20%22q%22%20querystring%20parameter%20is%20not%20working%20like%20in%20library%20view.%26nbsp%3BIf%20I%20develop%20the%20custom%20library%20web%20part%20as%20SPFx%20web%20part%2C%20I%20need%20to%20develop%20every%20action%20menus%20and%20context%20menus.%26nbsp%3B%20Anyone%20has%20a%20suggestion%20on%20this.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2119929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Modern%20List%20View%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2120109%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Modern%20List%2FLibrary%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2120109%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F961821%22%20target%3D%22_blank%22%3E%40ekyaw2300%3C%2FA%3E%26nbsp%3BThere%20is%20no%20Fluent%20UI%20component%20to%20get%20a%20full%20modern%20SP%20list.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EHowever%2C%20with%20the%20custom%20search%20web%20part%2C%20you%20could%20render%20each%20item%20in%20your%20own%20way%20and%20include%20features%20that%20does%20not%20exist%20on%20an%20regular%20SP%20list.%3CBR%20%2F%3E%3CBR%20%2F%3EYours%20sincerely%2C%3CBR%20%2F%3EAref%20Halmstrand%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

Hi All,

 

I need to implement the custom search feature for the specific library. SPO modern library allows user to search the content. When the user search a keyword in the modern library view via the top search box, SPO adds "view=7" and "q" querystrings which switch to search view as the layout is similar.  Therefore, I plan to implement the custom search SPFx web part which will generate the complex search query that will pass it as "q" querystring paramter. However, the list view page doesn't allow to add the additional web part. When I create a new page and add the library web part, "q" querystring parameter is not working like in library view. If I develop the custom library web part as SPFx web part, I need to develop every action menus and context menus.  Anyone has a suggestion on this. 

1 Reply

@ekyaw2300 There is no Fluent UI component to get a full modern SP list. 

However, with the custom search web part, you could render each item in your own way and include features that does not exist on an regular SP list.

Yours sincerely,
Aref Halmstrand