SOLVED

Modern Search Web Part specific need to search a list

%3CLINGO-SUB%20id%3D%22lingo-sub-1581902%22%20slang%3D%22en-US%22%3EModern%20Search%20Web%20Part%20specific%20need%20to%20search%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1581902%22%20slang%3D%22en-US%22%3E%3CP%3EFollowing%20the%20recent(ish)%20release%20of%20the%20PnP%20Modern%20Search%20tools%20for%20SP%20Online%20I%20have%20a%20specific%20need...%26nbsp%3B%3CBR%20%2F%3EOn%20a%20site%20page%20add%20a%20search%20box%20which%20will%20only%20search%20a%20specific%20list%20that%20I%20have%20created.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20can%20build%20the%20search%20box%20and%20the%20results%20and%20I%20have%20them%20connected%20but%20by%20default%20I%20think%20it%20searches%20the%20whole%20tenant%20for%20any%20potential%20matches.%20I%20want%20it%20to%20search%20a%20specific%20list%20only%20for%20matches.%20How%20can%20I%20do%20that...%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fmicrosoft-search.github.io%2Fpnp-modern-search%2Fsearch-parts%2Fsearch-results%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ere%3A%20https%3A%2F%2Fmicrosoft-search.github.io%2Fpnp-modern-search%2Fsearch-parts%2Fsearch-results%2F%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1581902%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1609372%22%20slang%3D%22en-US%22%3ERe%3A%20Modern%20Search%20Web%20Part%20specific%20need%20to%20search%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1609372%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20able%20to%20solve%20this%20myself%20after%20alot%20of%20research...%3C%2FP%3E%3CP%3EI%20have%20created%20scenarios%20where%20I'm%20searching%20a%20single%20list%20and%20another%20where%20I%20search%204%20specific%20site%20collections%20and%20populate%20the%20values%20using%20the%20search%20verticals%20after%20creating%204%20different%20results%20sources.%3C%2FP%3E%3CP%3EI%20think%20the%20support%20docs%20could%20be%20cleaner%20for%20citizen%20developers%20and%20given%20the%20use%20case%20I%20would%20expect%20to%20be%20a%20considerable%20number%20of%20the%20folks%20trying%20this.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESearch%20a%20specific%20list%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sasrsc_0-1598310241175.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214545i2B09E42AACCDA322%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22sasrsc_0-1598310241175.png%22%20alt%3D%22sasrsc_0-1598310241175.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESearch%204%20sites%20(in%20one%20results%20source)%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22sasrsc_1-1598310322335.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214546iFCDEA030FA9D8331%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22sasrsc_1-1598310322335.png%22%20alt%3D%22sasrsc_1-1598310322335.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Following the recent(ish) release of the PnP Modern Search tools for SP Online I have a specific need... 
On a site page add a search box which will only search a specific list that I have created. 

I can build the search box and the results and I have them connected but by default I think it searches the whole tenant for any potential matches. I want it to search a specific list only for matches. How can I do that... 
re: https://microsoft-search.github.io/pnp-modern-search/search-parts/search-results/

1 Reply
Highlighted
Best Response confirmed by sasrsc (Occasional Contributor)
Solution

I have able to solve this myself after alot of research...

I have created scenarios where I'm searching a single list and another where I search 4 specific site collections and populate the values using the search verticals after creating 4 different results sources.

I think the support docs could be cleaner for citizen developers and given the use case I would expect to be a considerable number of the folks trying this.

 

Search a specific list:

sasrsc_0-1598310241175.png

 

Search 4 sites (in one results source)

sasrsc_1-1598310322335.png