The Search Explained Yammer network is a cracking house to enquire the weird in addition to quirky search questions. Unfortunately it’s non indexed past times Google, then answers at that spot volition non create goodness everyone – which is why I’m writing this post.
A couplet of days agone soul posted a query if it was possible to notice pages inwards SharePoint which comprise a specific link. The involve was to position broken links. Use-case tin endure if you lot rename a file, in addition to desire to notice all pages linking to that file earlier renaming – to brand certain they even then betoken correctly.
This post service volition present you lot 1 approach which works, in addition to if you lot lead maintain a meliorate suggestion, delight permit me know.
Question is; how tin you lot larn virtually finding a page alongside the link https://contoso.sharepoint.com/sites/collection/site/library/document.docx equally role of the content?
Both KQL in addition to FQL has a bunch of operators you lot tin use, in addition to turns out if you lot employ the utilisation of the ONEAR operator alongside a proximity of 0, it works. Let me explain.
The ONEAR operator is used to say that a specific term has to follow afterwards roughly other term inwards the right order, in addition to inside n pose out of terms.
cat ONEAR(n=2) dog, would fit cat howdy yo dog, equally you lot allow 2 price to come inwards between. You tin read the official KQL in addition to FQL syntaxes for ONEAR at:
- FQL https://docs.microsoft.com/en-us/sharepoint/dev/general-development/fast-query-language-fql-syntax-reference#fql_onear_operator
- KQL https://docs.microsoft.com/en-us/sharepoint/dev/general-development/keyword-query-language-kql-syntax-reference#onear-operator
The KQL syntax inwards this representative is really quirky equally you lot involve to nest the ONEAR operators for each term you lot desire to follow afterwards each other – in addition to you lot in addition to upwards alongside this:
(((((((((https ONEAR(n=0) contoso) ONEAR(n=0) sharepoint) ONEAR(n=0) com) ONEAR(n=0) sites) ONEAR(n=0) collection) ONEAR(n=0) site) ONEAR(n=0) library) ONEAR(n=0) document) ONEAR(n=0) docx)
If you lot search programmatically you lot tin lead maintain payoff of the fact that the refinement filter query parameter is genuinely an FQL statement. By passing inwards the below FQL equally a refinement filter you lot volition orbit the same equally the inwards a higher house KQL:
onear(https, contoso, sharepoint, com, sites, collection, site, library, document, docx, N=0)
Refinement filters are also non express to the query length of the search patch alongside KQL.
I would advise against having also many URL’s inwards 1 query equally surgical operation volition likely degrade a lot – but this solution mightiness but assistance soul who genuinely really involve it.
Thanks for reading : An Approach To Search For A Url Inside A Page Or Document Inward Sharepoint