Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am performing a keyword search, passing in 3 urls which are different places within the site. The idea is to search where (urls = url1 or urls = url2 or urls = url3).

I've got a managed property in search called urls, however it only works if I search for one url. If I add another urls in the "or" clause it only brings back the last URL in the query.

urls:https://site1/sites/Blog/Lists/Posts/ViewPost.aspx?ID=2

Will bring back result. But

urls:https://site1/sites/Blog/Lists/Posts/ViewPost.aspx?ID=2 OR urls:https://site2/sites/Blog/Lists/Posts/ViewPost.aspx?ID=5

will only bring back the last link.

Does anyone know how to do a search using the URLs?

share|improve this question
add comment

1 Answer 1

Solved it myself. Use "Path" in search query.

Path:"https://site1/sites/Blog/Lists/Posts/ViewPost.aspx?ID=2" OR Path:"https://site2/sites/sBlog/Lists/Posts/ViewPost.aspx?ID=5"
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.