Search Results not working as expected with Site.URL Filter

I have a page (SharePoint 2013 - Foundation) with a search Results web part. In that web part I have added a filter to limit the results to the specific site (and it's children). So my Query text is:
{searchboxquery} Path:{Site.URL}*
This works.. except for one thing. I'm guessing here but I think the "Site.URL" is returning the site that contains the search results page and not the site that actually started the search! 
What I'm trying to do is mimic the default search behavior where a search only contains results from the current site down. So for example
\sites\mySite\mySubSite
If I'm on mySite and search, I should get everything from mySite + mySubSite. However if I am in the mySubSite when I search, I should only get results from mySubSite and NOT the parent mySite.
Added info:
the actual 'search center' is at the \sites\mysite level. Per MS documentation it states that {Site.URL} is the site from where the query was issued. To me that means that if I am on \mysite\mySubSite and initiate the search there, that it should only include
results mySubSite which it is not doing
Here is a screen shot.. I should not be getting any hits

Hi,
In SharePoint 2013, we could configure Result source to limit searched to certain content or to a subset of search results. This would be equal to a new search scope in SharePoint 2010.
For your reference:
http://technet.microsoft.com/library/jj683115(v=office.15)
http://blogs.technet.com/b/tothesharepoint/archive/2012/10/09/build-a-specialized-search-experience-in-minutes-with-sharepoint-2013.aspx
Using sample below will limit search result in subsite:
{searchTerms} path:http://sp/sites/mysite/subsite
Regards,
Rebecca Tu
TechNet Community Support

Similar Messages

  • Subtraction of two key figures normalized to result not working as expected

    Hello SAP Community!
    I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
    In order to explain the problem I am facing please analyze below text:
    1) Let's assume I have below data:
    LOAD MONTH  PLANT    MATERIAL HORIZON MONTH     FORECAST UNITS
    200805         PLANT-A  MAT-1            200805         510,235.00
    200805         PLANT-B  MAT-1           200805          74,240.00
    200805         PLANT-A  MAT-1           200806         438,721.00
    200805         PLANT-B  MAT-1           200806          74,240.00
    200805         PLANT-A  MAT-1           200807         356,981.00
    200805         PLANT-B  MAT-1           200807          74,240.00
    200806         PLANT-A  MAT-1           200805               0.00
    200806         PLANT-B  MAT-1           200805               0.00
    200806         PLANT-A  MAT-1           200806         510,235.00
    200806         PLANT-B  MAT-1           200806          74,240.00
    200806         PLANT-A  MAT-1           200807         438,721.00
    200806         PLANT-B  MAT-1           200807          74,240.00
    2) Then, assume I have a comparison report, restricted by load month for two months May and June 2008 (filter restricted by two month variables) with FORECAST units spread accross columns for whole horizon (two months also in this case).
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Comparison Units (June 2008) 510,235.00  438,721.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Comparison Units (June 2008)  74,240.00   74,240.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    3) Now, let's suppose we want to know the proportions (%) of Base vs Comparison units, so
    we normalize forecats to results an we get the below report:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    4) Finally, let's suppose we want to know the deltas (differences) of Base vs Comparison
    units, for both number of units and %. The report now look as below:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  1.77%       2.74%
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %  -1.77%      -2.74%
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    5) PROBLEM:
    In my report, the "Delta base vs. comp. units %" is not working as expected and
    calculates number of units just as "Delta base vs. comp. units" does instead of calculating the % difference.
    So my report looks as follows:
    Material  Plant                                 2008/06     2008/07
    ===================================================================
    MAT1      PLANT-A  
                       Base Units (May 2008)        438,721.00  356,981.00
                       Base Units % (May 2008)      85.527%     85.527%
                       Comparison Units (June 2008) 510,235.00  438,721.00
                       Comparison Units %(Jun 2008) 87.298%     82.784%
                       Delta base vs. comp. units %  71,514.00  81,740.00 <<<WRONG!!
                       Delta base vs. comp. units    71,514.00  81,740.00
              PLANT-B  
                       Base Units (May 2008)         74,240.00   74,240.00
                       Base Units % (May 2008)       14.473%     15.702%
                       Comparison Units (June 2008)  74,240.00   74,240.00
                       Comparison Units %(Jun 2008)  12.702%     17.216%
                       Delta base vs. comp. units %       0.00        0.00
                       Delta base vs. comp. units         0.00        0.00
              TOTALS   Base Units                   512,961.00  431,221.00
                       Comparison Units             584,475.00  512,961.00
    The formulas are:
    a) Delta base vs. comp. units %
      Delta base vs. comp. units % = Comparison Units % - Base Units %
    b) Delta base vs. comp. units
      Delta base vs. comp. units = Comparison Units - Base Units
    The KFs
    - Comparison Units %
    - Base Units %
    Are RESTRICTED key figures (restricted to Base and comparison month variables) which
    are setup as:
    1) Calculate Result As:  Summation of Rounded Values
    2) Calculate Single Value as: Normalization of result
    3) Calculate Along the Rows
    The KFs
    - Delta base vs. comp. units %
    - Delta base vs. comp. units
    are FORMULAS setup to:
    1) Calculate Result As:  Nothing defined
    2) Calculate Single Value as: Nothing defined
    3) Calculate Along the Rows: user default direction (grayed out)
    Thanks for the time taken to read in detail all of this. Long text but necessary to understand what the problem is.
    Any help is highly appreciated.
    Thank you.
    Mario

    Hi,
    The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
    I hope this will solve your issue.
    Regards,
    S P.

  • Read Key and Write Key not working as expected with paths on RT

    The configuration file VIs Read Key (Path) and Write Key (Path) don't seem to work as expected (at least not as I was expecting them to) on an RT target.
    When working on my WinXP PC with these two VIs, paths are translated to what looks like is supposed to be a device-independent format before being written to disk. The path C:\dir\file.txt becomes /C/dir/file.txt when writing and vice versa when reading. On my RT target, however, that same path is written to disk as C:\dir\file.txt, unchanged from the native format.
    The translaton of a native path to and from the device-independent format appears to be the responsibility of Specific Path to Common Path and Common Path to Specific Path. These both use the App.TargetOS property to determine the operating system. In the case structure for these two VIs, however, there is no case for PharLap or RTX. (My RT hardware is runnng PharLap; I don't know enough about RTX to comment.) This means that the results of String to Path or Path to String are used without translating between the device-independent format to the native path format.
    This isn't a problem if you create a configuration file on one machine and use it on that same machine. I noticed this only when tranferring a config file from my PC to the RT target, where the target would not open the file paths it loaded from the configuration file.
    This occurs on 7.1.1 and 8.0.  I don't have 8.20 to see if happens there, too.

    In LV 8.2, this was fixed.
    The problem is App.TargetOS returns "Pharlap" on RT systems, and "Pharlap" is handled by the default case ("invalid OS target") in LV 8.0.  In LV 8.2 the default case is "Windows 95/NT", however.  The reason you could write and read an .ini file on RT in LV 8.0 and earlier is because these two VIs (listed below) were both running the default case of "invalid OS target".
    vi.lib\Utility\config.llb\Common Path to Specific Path.vi
    vi.lib\Utility\config.llb\Specific Path to Common Path.vi
    As you saw, this fails when you perform one operation in Pharlap but the other in Windows.  You can fix this by modifying the two VIs listed above.  Just go to the case structure and make "Windows 95/NT" the default case.

  • Simple Search is not working as expected

    I am trying to execute code from the Brian "Bex" Heff book. The code is simple but I cannot figure out an error I'm getting. When I hit the search button I get following error.
    A Runtime Error has occurred.
    Do you with to Debug?
    Line:1433
    Error: 'document.QUERYTEXTCOMPONENTS.QueryBuilderQuery.disabled' is null or not an object
    If I hit no I got the landing with with all the serach result. It seems like I not passing the querytext value to the next page.
    Any idea on what is causing this?
    We are on 10g.
    hcst-advanced-search.hcst code.
    <html>
    <head><!--$include ss_layout_head_info-->
    <!--$PageTitle="Guest Search Page"-->
    <!--$if isTrue(IsLoggedIn)-->
    <!--$PageTitle="Search Page For " & UserName-->
    <!--$endif-->
    <!--$include std_query_html_head_declarations-->
    <script language="JavaScript">
    <!--$include query_form_submit_form_function-->
    </script>
    </head>
    <!--$include body_def-->
    <!--$include std_page_begin-->
    <h3 class=pageTitle>HCST Search Page</h3>
    <form name="QUERYTEXTCOMPONENTS">
    <input type=hidden name="QueryText" value="">
    <table>
    <tr>
    <td align=right><span class=searchLabel>Title</span></td>
    <td>
    <input type="hidden" name="opSelected"
    value="hasAsSubstring">
    <input type="text" size=30 name="dDocTitle"
    value="">
    </td>
    </tr>
    <tr>
    <td align=right><span class=searchLabel>Content ID</span></td>
    <td>
    <input type="hidden" name="opSelected"
    value="hasAsSubstring">
    <input type="text" size=30 name="dDocName" value="">
    </td>
    </tr>
    <tr>
    <td align=right><span class=searchLabel>
    Release Date From</span></td>
    <td align=left>
    <input type="hidden" name="opSelected" Value="dateGE">
    <input type="text" size=12 maxlength=20
    name="dInDate" value="">
    <span class=searchLabel>To</span>
    <input type="hidden" name="opSelected" Value="dateLess">
    <input type="text" size=12 maxlength=20
    name="dInDate" value="">
    </td>
    </tr>
    <tr>
    <td align=right><span class=searchLabel>Full Text</span></td>
    <td><input type="text" name="FullTextSearch" size=30></td>
    </tr>
    </table>
    </form>
    <!--$c="This page is hcst-advanced-search.hcst, and we wish to render the results with the template hcst-advanced-search-results.hcst"-->
    <!--$urlTemplate = strSubstring(fileUrl, 0, strLength(fileUrl)-5)& "-results"-->
    <form name="SEARCHFORM" method="GET" action="<!--$HttpCgiPath-->">
    <input type=hidden name="IdcService" value="GET_SEARCH_RESULTS">
    <input type=hidden name="urlTemplate" value="<!--$urlTemplate-->">
    <input type=hidden name="QueryText" value="">
    <input type=hidden name="ResultCount" value="5">
    <table>
    <tr>
    <td><span class=searchLabel>Sort By:</span></td>
    <td><select name="SortField">
    <option selected value="dInDate">Release Date
    <option value="dDocTitle">Title
    <option value="Score">Score
    </select>
    </td>
    <td><select name="SortOrder">
    <option value="Asc">Ascending
    <option selected value="Desc">Descending
    </select>
    </td>
    <td>
    <input type=submit value ="Search" onClick="submitFrm(false)">
    </td>
    </tr>
    </table>
    </form>
    <!--$include std_page_end-->
    </body>
    </html>
    Edited by: user642006 on Apr 16, 2009 12:02 PM

    Hi
    I did not go through the complete code that you have put here.... but from the error "ent.QUERYTEXTCOMPONENTS.QueryBuilderQuery.disabled' is null or not an object it looks to me the js code for the querytextcomponents function is not initialised correctly. May just put a debug statement right before and after the code is called to see what value is being passed to this variable and check if thats the value you expect it to get.
    Hope this helps
    Thanks
    Srinath

  • Search results not working

    I find that files i KNOW are on my disk are not showing in spotlight.
    the only related thing i can think of is that i migrated from another mac on 10.6.
    Any suggestions?

    Hi,
    In SharePoint 2013, we could configure Result source to limit searched to certain content or to a subset of search results. This would be equal to a new search scope in SharePoint 2010.
    For your reference:
    http://technet.microsoft.com/library/jj683115(v=office.15)
    http://blogs.technet.com/b/tothesharepoint/archive/2012/10/09/build-a-specialized-search-experience-in-minutes-with-sharepoint-2013.aspx
    Using sample below will limit search result in subsite:
    {searchTerms} path:http://sp/sites/mysite/subsite
    Regards,
    Rebecca Tu
    TechNet Community Support

  • IProcurement - new VO for search results not working properly?

    Greetings
    There is a requirement for the project I´m working, where the search results on iProcurement must be filtered depending on some profiles setted for the user.
    So, basically the search shouldn´t look into ICX_CAT_ITEM_PRICES, but on a custom view that works on that table, but filtering results.
    Unfortunately, that´s not working. I extended the VO (which seems to be SearchResultsVO and ItemDetailParametersVO), so the queries are now pointing to the view. But once the search is performed, the results are not filtered. It´s the very same results as before.
    Am I doing something wrong? There is some cache that works even after the Apache server is restarted? Please I could really use some help on the subject! Thanks!
    Best Regards,
    Thiago

    Thiago,
    Why don't you use a local Jdev setup for substitution process so that testing and debugging is easier.
    Follow these steps for testing locally:
    1. Add your VO to AM.
    2. After extending VO, do the following,
    Right-click on your project in the Navigator pane, and select Edit Business Components Project (or right-click on the project's .jpx and select Edit <project>).
    a. Select the Substitutions section.
    b. From the Available list, select the base object that you want to replace and press ok.
    3. Normally, the BC4J runtime does not read a project's .jpx file. To override this default behavior in JDeveloper so you substitutions can be used, you must do the following to ensure that the classpath contains the .jpx file.
    a. Right-click on your project and select Project Settings.
    b. Then in Configurations | Development | Runner, add -Djbo.project=Name to the Java Options. Note that the Name value is the .jpx file name without the .jpx extension (for example, ExtendLabSolutions). Be sure to include a space between any existing options and the new option.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Search is not working for only one site collection sharepoint 2010 production environment

     did full crawling but it could not crawled particular this only site collection somehow.
    when i search under Crawl log, it doesnt appear and throws message like
    there are no urls in the system that match your request.
    you can see following screenshot,
    Thanks
    Deepak patel

    Hi Deepak,
    Is this site collection url (e.g. FQDN url, or host named site collection url) different from other site collection?
    If yes, please add the host named site collection in content source.
    If not, and this site collection url are the same type/format with other site collection, please "reset index" if possible, and start a full crawl, let us know your resutls.
    If issue still persists, please perform a query in search box, see if there is any related useful information from ULS log.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you
    have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Search is not working for only one site collection

    Hi All,
    I have one issue where users are searching something on a site collection nothing is coming out.  Search is working on web application level but not in only one site collection.
    I checked the crawl log and found  below error for this site collection

    Hi Aditya,
    From the error message, there might be several reasons:
    Configure search time-out settings (Search Server 2010):
    http://technet.microsoft.com/en-us/library/ee808892.aspx
    Please check the user accounts created under the home group that could push the limit of the ACL, and this error message may be occur:
    http://www.sweendog.net/blogengine/post/2012/02/03/The-Filter-Daemon-has-Timed-Out.aspx & http://sharepoint.stackexchange.com/questions/26755/sharepoint-2010-search-server-not-crawling-content-due-to-filter-daemon-timeout
    Make sure the search service account has access to SearchIndex share:
    http://www.sharepointsecurity.com/sharepoint/sharepoint-development/fixing-the-filter-daemon-did-not-respond-within-the-timeout-limit-error/
    If the links above doesn’t help, please collect more error message in ULS log for troubleshooting.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • ServiceDesk software not working as expected with new Firefox version

    After recently upgrading to Firefox 5.0, I have discovered that the ServiceDesk software I use with Firefox no longer works as expected. This software is ManageEngine ServiceDesk Plus 8.0. The problem is irratic but unique to Firefox. I don't have this problem with Chrome or IE.
    The problem is this: When I open an issue, several fields become active, one of which is the description field where the user who sent the issue typed the description of their problem. When editing the issue and the active fields become active, sometimes this description field is completely blank, meaning their description is gone, but not really. I have to close the page and try to re-open hoping this time, the description will be shown. Also, there is a tab for me to enter a resolution when I want to close it. I cannot enter anything in this field, or rather I can, but when I save it, nothing gets saved to this field, so the user doesn't get to see my resolution. The default font for ServiceDesk is Arial, but I know something is amiss because the default font is Times. If the font shows as Arial, then I know everything will be okay.

    I knew I would figure this out as soon as I posted it...
    This is the behavior you see if the SamAccountName field is not included.

  • SP2013 Fileshare crawling success search results not working

    I have been struggling to find a solution to Sharepoint Search Results. My Farm has
    2 Servers and DB and Web/APP. I create a content source for FileShare and was able to successfully crawl. I can see all the contents of the File Share in the Index. When i attempt to search, search results are not display anything from the Fileshare. Search
    Service account has permission to the File Share. 
    Sharepoint Server is running in Windows Server 2012 and SQL Server is 2012 R2 if that matters.
    SKrisK

    Did you select "Crawl the folder and all subfolders of each start address" when you create the Test Share content source
    did u add a new  crawl rule to the file share path 
    file://server/folder/*
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • Tabs not working as expected with centred text

    Hi,
    I'm trying to make a contents page in Indesign but having trouble with aligning the text correctly.
    I want the page titles to be centered but when I select the paragraph style onto centered the text moves away from the Tab stop keeping it in the right place - - the result of this is each page title in the column is in a slightly different place.  If I leave the paragraph style on left align the page title stays by the tab stop where I expect it to but I don't like how it looks!
    Note in the examples below how in the centered example the S has moved over to the right away from the Tab stop.
    Any suggestions?
    Many thanks,
    Adrian
    E.g.  left aligned
    e.g. 2  centered

    My first thought is that tabs don't mix well with centered text and you should use one or more fixed-width spaces between the number and the title, but I'm not really sure what look you want.

  • Import-CSV | New-ADGroup not working as expected with Powershell

    I've looked all over and I can't seem to find an explanation for why this command works perfectly with New-ADUser but not with New-ADGroup.
    These are commands I'm using:
    For Users:
    Import-CSV C:\Imports\adusers.csv | New-ADUser
    This works great. All 500+ users imported with all fields.
    For Groups:
    Import-CSV C:\Imports\adgroups.csv | New-ADGroup
    Only the first line is run correctly. Then I get this error: The specified group already exists
    Here is a snip of my CSV for Groups:
    Name,DisplayName,Description,GroupCategory,GroupScope,Path
    DB Users,DB Users,Group for DB users,Global,"OU=Security Groups,OU=ABC Users,DC=domain,DC=local"
    Accounting,Accounting,Access to the Accounting folder,Security,Global,"OU=Security Groups,OU=ABC Users,DC=domain,DC=local"
    Am I missing something here or is this not possible?
    THanks.

    I knew I would figure this out as soon as I posted it...
    This is the behavior you see if the SamAccountName field is not included.

  • Hudson not working as expected with Polling SVN Change

    Hi John Stegeman,
    Thanks for the great OTN ADF essentials series. It is easy to follow and everything is light weight and working great except part 7 (http://www.oracle.com/technology/pub/articles/adf-development-essentials/part7.html).
    When I followed your setup with Poll SCM for once every minute for commits, the build is invoked once every minute even when no commits to SVN. The builds are all successful but in an infinite loop.
    I am using latest Hudson 1.349.
    How can I resolve this issue, i.e., to ensure that build only occurs when there is a commit?
    Mingsheng
    Edited by: mixie on Mar 10, 2010 7:48 AM

    Hi mixie,
    I've not seen this problem before on Hudson, but I have on other CI servers - one thing to check is to make sure the date/time on the SVN server and on the Hudson server are in sync - the time I saw this problem is when the times were out of sync and when the CI server asked SVN, "tell me whether there have been any commits since <last_build_time>" the answer was "yes" because <last_build_time> was far in the past.
    Otherwise, you might want to try asking on the [url http://wiki.hudson-ci.org/display/HUDSON/Mailing+List]Hudson Mailing List
    John

  • Substraction of two key figures normalized to results not working as expect

    Hi  All,
    I am having problems with getting the right result from a subtraction of two KFs which are "normalized to results" which means the KFs really have values expressed as percentages. The substraction that should be performed is of two percentages (e.g.: 87.298% - 85.527% = 1.77%) but my report prints out the result as "number of units" instead (e.g.: 87.298% - 85.527% = 71,514.00 EA). The two normalized KFs actually "point" to two stock KFs, hence the "number of units".
    Thanks & Regards,
    Venkat Vanarasi.

    Hi,
    The subraction will be carried out before doing the normalization of your KF's. So, it is displaying "number of units". Create a calculated keyfigure and subtract the KF's and in the properties of this calculated keyfigure, change the enhancement as "After Aggregation".
    I hope this will solve your issue.
    Regards,
    S P.

  • Xfa.host.print not working as expected with Reader8!?

    Hello,
    I have a two pages form created a while ago with Designer 7.1. When the Print button in the form is clicked, only the last page is printed. We now upgraded to Reader 8.0, and I tested my forms with it. All works fine except the print-out. It always prints both pages. It seems that the properties set in xfa.host.print are totally ignored. Any one having the same problem? Does somebody know the reason or a workaround for that?
    Thanks!
    Kind regards, Karin

    Hello Ivan,
    I got a response: It is a bug in Reader 8.0. It should be fixed in Reader 8.1
    Regards, Karin

Maybe you are looking for