SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


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

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

Your Answer


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.