Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3486958
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:05:36+00:00 2026-05-18T11:05:36+00:00

I have a client application that represents the complete SharePoint structure (sitecollections, sites &

  • 0

I have a client application that represents the complete SharePoint structure (sitecollections, sites & subsites, doclibs, folders), of any given 3rd pary SharePoint site, as a navigation tree.

Users can click on any level in that tree, and do a freetext search. They expect their search results to originate in either the selected location or below. For instance,

  • if they click on a site, they only want results from within that site.
  • if they click on a folder, they only want results from within that folder and any subfolders.

    I’m trying to accomplish this using a restriction on the PATH property. However, whenever I include a LIKE predicate on the PATH the search results turn up empty. What am I doing wrong?

    SharePoint Search SQL:

    SELECT 
      URL,Path,FileName,Version,Size,LastModifiedTime,DocID 
    FROM 
      Scope() 
    WHERE 
      ContentClass='STS_ListItem_DocumentLibrary' AND 
      Path LIKE 'http://servername/doclib001/%' AND 
      FREETEXT(DEFAULTPROPERTIES, 'test' )
    

    (SharePoint2010)

    • 1 1 Answer
    • 0 Views
    • 0 Followers
    • 0
    Share
    • Facebook
    • Report

    Leave an answer
    Cancel reply

    You must login to add an answer.

    Forgot Password?

    Need An Account, Sign Up Here

    1 Answer

    • Voted
    • Oldest
    • Recent
    • Random
    1. Editorial Team
      Editorial Team
      2026-05-18T11:05:37+00:00Added an answer on May 18, 2026 at 11:05 am

      Querying the Path never seems to yield any results. However, querying the Site with the equals predicate operator does exactly what I want, i.e.

      SELECT  
        URL,Path,FileName,Version,Size,LastModifiedTime,DocID  
      FROM  
        Scope()  
      WHERE  
        ContentClass='STS_ListItem_DocumentLibrary' AND  
        Site = 'http://servername/doclib001' AND  
        FREETEXT(DEFAULTPROPERTIES, 'test' ) 
      

      yields results from doclib001 als well as doclib001/folder001 and below. Which is rather unexpected, given that (a) Site suggests site/web, not arbitrary URL and (b) I’m using an exact equal operator, not a like/contains… but it works nicely, so I’m not complaining!

      Non-recursive searches seem to be rather impossible thus far.

      • 0
      • Reply
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
        • Share on WhatsApp
        • Report

    Sidebar

    Related Questions

    I have client application that uses WCF service to insert some data to backend
    I have a client/server application that communicates with .Net remoting. I need my clients
    i have a server - client application that runs on java 1.3; i want
    I have a client server application that sends XML over TCP/IP from client to
    I have a client-server application that uses .net remoting. The clients are in a
    I have a .NET client application that needs to communicate with a server using
    I have a client server based windows forms application that needs an administrator only
    I have a C# application that is a client to a web service. One
    I have a PHP application that makes extensive use of Javascript on the client
    I have a legacy VB6 application that was built using MSDE. As many client's

    Explore

    • Home
    • Add group
    • Groups page
    • Communities
    • Questions
      • New Questions
      • Trending Questions
      • Must read Questions
      • Hot Questions
    • Polls
    • Tags
    • Badges
    • Users
    • Help
    • SEARCH

    Footer

    © 2021 The Archive Base. All Rights Reserved
    With Love by The Archive Base

    Insert/edit link

    Enter the destination URL

    Or link to existing content

      No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.