Closed KaveSys closed 3 weeks ago
Sorry, but I just don't understand what you are trying to do? It looks like you want results from a specific site collection, and it has to be a list item OR a List OR a Document Library
and then you are excluding a number of libraries and stuff
There might be an issue with the syntax, perhaps this is what you are aiming for? {searchTerms} (Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite AND (contentclass:STS_ListItem OR contentclass:STS_List OR contentclass:STS_List_DocumentLibrary)) -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/Shared%20Documents -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/Lists -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/SitePages -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/SiteAssets -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/Style%20Library* -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/FormServerTemplates -Title:"XXXX XXXX XXXX" -filetype:aspx
Hello @kasperbolarsen, Let me explain better.
I have a link that have in the address the word "AV3BINSA". If I try to search for example the "AV3BINSA" word in Search Box, I want that in Search Results the link with the word "AV3BINSA" will be visible in the results:
In example, this is a link set in a Quick Link web part that go to a pdf file placed in another Sharepoint Online website.
I hope that now is more clear :)
Nope, I still don't understand the issue, but it sounds like you are using an approach like this one https://microsoft-search.github.io/pnp-modern-search/scenarios/use-query-string-in-url/ when the query text is in the URL, and as per the screen shorts that part is working fine, right?
Hello, I don't see any other discussion related to this so I'm trying to achieve this thing. I want to show also the links (in quick links web part or somewhere else) in search results when a word is search.
I'm using this query text on Search Results:
{searchTerms} Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite AND (contentclass:STS_ListItem OR contentclass:STS_List OR contentclass:STS_List_DocumentLibrary -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/Shared%20Documents AND -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/Lists AND -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/SitePages AND -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/SiteAssets AND -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/Style%20Library* AND -Path:https://xxxxxxxxx.sharepoint.com/sites/URLSite/FormServerTemplates AND -Title:"XXXX XXXX XXXX") -filetype:aspx
Maybe I'm doing something wrong? I try to search for a word in an address link but it doesn't show up on search results.