Search by current site context

I an working on SharePoint 2013 online search.
I am using "u" parameter in the url to filter results according to current site context, every child site is configured to redirect to search center site with "u" (url of the current site) in the url. thinks are forking fine but on my search
center result page If I do another search, it goes to same result page but "u" parameter is removed now and it search accross all sites, Can I keep that "u" parameter in url?
Flow
I am in a sub site and search for "news", I am redirected to search center result page along with current site url in query string, results are fine and by staying on the search result page I search for "news com", I am redirected to same
search result page but without "u" in query string and it search in all sites. I want to keep that "u" parameter in the query string.

Hi Shafaqat,
How did you set the “u” parameter?
What did you mean that you were redirected to search center result page with current site url? Whether the URL of the result page contains the “u” parameter.
I did a test as the followings:
Go to a site->Site Settings->Search settings.
Under “Search Center URL:”, type my search center’s url.
In the “Which search results page should queries be sent to?” section, un-check ”Use the same result page settings as my parent”, and select “send queries to a custom results page url”. The redirct the result page to
http://[my search center]/ /Pages/results.aspx?u=[current site url]
Search several times, all worked well.
If you provide your settings steps, it will make others easy to reproduce this issue and find a solution for you.
Best Regards,
Wendy
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]
Wendy Li
TechNet Community Support

Similar Messages

  • Getting the Advanced Search (SP2013) to only search from the Current Site downwards

    Hi
    I know the Advanced Search webpart has not been updated for years (It still has scopes in the "Modify Web Part" !)
    But.....
    Can I get the SP2013 version to search from the current site downwards rather than starting at the top level site every time ?
    Thanks
    Nigel
    Nigel Price NJPEnterprises

    You need to set up a new result source and change the query transform to something like this:
    {searchTerms} AND Path:"http://basesmc15/teamonesubone"
    Then navigate to the results.aspx that the advanced search sends it's query to. Here edit the page and edit the Search Results web part. Click on "Change Query". Select  the new result source you just created from the drop down. All the queries
    will now use this result source which is limited to that subsite. Make sure to uncheck the "Show the Result Type Picker" option on the advanced search web part.
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • The selected folder does not contain the current site's homepage

    dreamweaver displays the following message when editting some
    sites:
    "WARNING: The selected folder does not contain the current
    site's homepage. The site map cannot be built."
    Then my remote info is cleared!
    I know I'm obviously not doing something, but there is no
    need to clear my remote info!!
    edit: I've selected my home page, but this still doesn't
    explain why Dreamweaver feels the need to erase my remote
    info!!!

    > Then my remote info is cleared!
    Huh?
    This only means that you have not told DW which page is your
    home page.
    Find it in the local file list, and use the right-click
    context menu to so
    designate the file.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ogre11" <[email protected]> wrote in
    message
    news:f2293h$7lg$[email protected]..
    > dreamweaver displays the following message when editting
    some sites:
    >
    > "WARNING: The selected folder does not contain the
    current site's
    > homepage.
    > The site map cannot be built."
    >
    > Then my remote info is cleared!
    >
    > I know I'm obviously not doing something, but there is
    no need to clear my
    > remote info!!
    >

  • Search with "Current Node + All Subfolders" not functioning correctly

    Hi,
    We are having an issue with the search function of SCCM 2012 Admin Console. We have built multi-level folder structure to SCCM which matches our organizational unit structure in AD.
    The issue occurs when trying to search with "Current Node + All Subfolders" option in a folder to get listing of all collections nested in the structure. As a result we get incomplete list of collections and majority of them are not showing
    up. Sometimes the console even crashes when trying to do this kind of search. Note that this behaviour only occurs when searching inside a folder, not in the device collections root node.
    We managed to trace the SQL query in the above situation from SMSProv.log, and it is as follows:
    select  all SMS_Collection.SiteID,SMS_Collection.CollectionType,SMS_Collection.CollectionVariablesCount,SMS_Collection.CollectionComment,SMS_Collection.CurrentStatus,SMS_Collection.HasProvisionedMember,SMS_Collection.IncludeExcludeCollectionsCount,SMS_Collection.IsBuiltIn,SMS_Collection.IsReferenceCollection,SMS_Collection.LastChangeTime,SMS_Collection.LastMemberChangeTime,SMS_Collection.LastRefreshTime,SMS_Collection.LimitToCollectionID,SMS_Collection.LimitToCollectionName,SMS_Collection.LocalMemberCount,SMS_Collection.ResultClassName,SMS_Collection.MemberCount,SMS_Collection.MonitoringFlags,SMS_Collection.CollectionName,SMS_Collection.PowerConfigsCount,SMS_Collection.RefreshType,SMS_Collection.ServiceWindowsCount from vCollections AS SMS_Collection  where (SMS_Collection.SiteID
    in (select  all Folder##Alias##810314.InstanceKey from vFolderMembers AS Folder##Alias##810314 
    where (Folder##Alias##810314.ObjectTypeName = N'SMS_Collection_Device'
    AND Folder##Alias##810314.ContainerNodeID in
    (16777237,16777374,16777384,16777385,16777375,16777376,16777377,16777378)))
    AND SMS_Collection.CollectionType = 2) order by SMS_Collection.CollectionName
    From this we noticed that not all ContainerNodeIDs are searched, but a list of only 8 ContainerNodeIDs. These ContainerNodeIDs remain the same if the search is done again in the same folder. The same behaviour repeats also in other folders with a different
    list of ContainerNodeIDs.
    For clarification I'll attach a picture which shows our folder structure with ContainerNodeIDs and ParentContainerIDs. We have also marked the containers which were present in SQL statement. From this you can clearly see there should have been far more ContainerNodeIDs
    than listed in the SQL query. Is this a bug in the admin console or could this be a problem with our site database? Is anyone else experiencing similar issues? We have written a custom
    powershell script that reads containers from SMS_ObjectContainerNode WMI-class recursively and is able to return complete list of folders and their subfolders, so we assume that our site database and WMI on site server is functioning correctly.
    We noticed this on CU2 (could have been present also earlier) and updating to CU3 did not fix the problem. Currently we are running SCCM 2012 SP1 CU3 with one primary site. All components besides distribution point is running on the site server. Distrubution
    point is running on a separate server. Our SQL server is running on the site server.
    Best Regards,
    Juha-Matti

    Sorry for the very long delay. I created the ticket in the autumn of last year and just received the final verdict to this issue.
    Microsoft support said they were able to reproduce the problem and that they contacted the product group about this issue. It turns out that this behaviour is by design (wait, what?) and since it is by design there is nothing they
    can/will do about it.
    So the only choice is to request a tailored customization for SCCM2012, which probably in this case (as it is by design) would cost.
    I feel a bit puzzled: how can it be by design if it clearly does not work?

  • Search Engines searching only US sites, need UK!

    My Curve 9360 search engines have suddenly started searching US only sites, Im in the UK so a bit of a problem! Have looked everywhere but am unable to change this. I've tried changing the search engines but still US only searches.  Can anyone help?
    Many Thanks

    Hi Natasha 300574,
                                  In the browser Press the Menu Key then choose Options and on Home Page : www.google.co.uk ,
    Then press Use Current  or just type http://www.google.co.uk/  then save it .
    Good Luck
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Current Security Context Not Trusted When Using Linked Server From ABAP

    Hello,
    I am experiencing a head-scratcher of a problem when trying to use a Linked Server connection to query a remote SQL Server database from our R/3 system.  We have had this working just fine for some time, but after migrating to new hardware and upgrading OS, DBMS, and R/3, now we are running into problems.
    The target database is a named instance on SQL Server 2000 SP3, Windows 2000 Server.  The original source R/3 system was 4.7x2.00, also on SQL Server 2000 (SP4), Windows 2000 Server.  I had been using a Linked Server defined via SQL Enterprise Manager (actually defined when the source was on SQL Server 7), which called an alias defined with the Client Network Utility that pointed to the remote named instance.  This alias and Linked Server worked great for several years.
    Now we have migrated our R/3 system onto new hardware, running Windows Server 2003 SP1 and SQL Server 2005 SP1.  The application itself has been upgraded to ECC 6.0.  I performed the migration with a homogeneous system copy, and everything has worked just fine.  I redefined the Linked Server on the new SQL 2005 installation, this time avoiding the alias and referencing the remote named instance directly, and it tests out just fine using queries from SQL Management Studio.  It also tests fine with OSQL called from the R/3 server console, both when logged on as SAPServiceSID with a trusted connection, and with a SQL login as the schema owner (i.e., 'sid' in lowercase).  From outside of R/3, I cannot make it fail.  It works perfectly.
    That all changes when I try to use the Linked Server within an ABAP application, however.  The basic code in use is
    EXEC SQL.
       SET XACT_ABORT ON
       DELETE FROM [SERVER\INSTANCE].DATABASE.dbo.TABLE
    ENDEXEC.
    The only thing different about this code from that before the upgrade/migration is the reference to [SERVER\INSTANCE] which previously used the alias of just SERVER.
    The program short dumps with runtime error DBIF_DSQL2_SQL_ERROR, exception CX_SY_NATIVE_SQL_ERROR.  The database error code is 15274, and the error text is "Access to the remote server is denied because the current security context is not trusted."
    I have set the "trustworthy" property on the R/3 database, I have ensured SAPServiceSID is a member of the sysadmin SQL role, I've even made it a member of the local Administrators group on both source and target servers, and I've done the same with the SQL Server service account (it uses a domain account).  I have configured the Distributed Transaction Coordinator on the source (Win2003) system per Microsoft KB 839279 (this fixed problems with remote queries coming the other way from the SQL2000 system), and I've upgraded the system stored procedures on the target (SQL2000) system according to MS KB 906954.  I also tried making the schema user a member of the sysadmin role, but naturally that was disastrous, resulting in an instant R/3 crash (don't try this in production!), so I set it back the way it was (default).
    What's really strange is no matter how I try this from outside the R/3 system, it works perfectly, but from within R/3 it does not.  A search of SAP Notes, SDN forums, SAPFANS, Microsoft's KnowledgeBase, and MSDN Forums has not yielded quite the same problem (although that did lead me to learning about the "trustworthy" database property).
    Any insight someone could offer on this thorny problem would be most appreciated.
    Best regards,
    Matt

    Good news! We have got it to work. However, we did it in something of
    a backwards way, and I'm sure you'll laugh when you see how it was done. Also, the solution depends upon the fact that the remote server is still using SQL Server 2000, and so doesn't have quite so many restrictions placed upon it for distributed transactions and Linked Servers as SQL Server 2005 now does.
    At the heart of the solution is the fact that the Linked Server coming FROM the remote server TO our SAP system works fine. Finally, coupled with the knowledge that using DBCON on the SAP side to the remote server also does actually provide a connection (see Notes 323151 and 738371), we set up a roundabout way of achieving our goal. In essence, from ABAP, we set up the DBCON connection to the remote server, at which point all the Native SQL commands execute in the context of the remote server. From within that connection, we
    reference the tables in SAP via the Linked Server defined on the remote
    server, as if SAP were the remote server, selecting data from SAP and inserting it into the remote (but apparently local to this connection) tables.
    So, to spell it out, we define a Linked Server on the remote server pointing back to the SAP server as SAPSERV, with a SQL login mapping defined on the remote system pointing back to a SQL login in the SAP database. We also define a connection to the remote server from SAP using DBCON, using that remote SQL login for authentication.
    Then, in our ABAP code, we simply do something along the lines of
    exec sql.
       set connection 'REMOTE'
    endexec.
    exec sql.
       connect to 'REMOTE'
    endexec.
    exec sql.
       insert into REMOTE_TABLE
          select * from SAPSERV.SID.sid.SAP_TABLE
    endexec.
    exec sql.
       commit
    endexec.
    exec sql.
       disconnect 'REMOTE'
    endexec.
    This is, of course, a test program, but it demonstrated that it worked,
    and we were able to see that entries were appropriately deleted and inserted in the remote server's table. The actual program for use is a little more complex, in that there are about four different operations at different times, and we had to resolve the fact that the temp table SAP_TABLE was being held in a lock by our program, resulting in a deadly embrace, but our developer was able to work that out, and all is now well.
    I don't know if this solution will have applicability to any other customers, but it works for us, for now.
    SAPSERV, REMOTE, REMOTE_TABLE, and SAP_TABLE are, of course, placeholder names, not the actual server or table names, so as not to confuse anyone.
    Best regards,
    Matt

  • Help with running iWeb on multiple computers and find the current site

    I have two Macs and MobileMe. I have usually run iWeb on the laptop and have my website on it. I thought I saved the site in MobileMe. When I go to the desktop and open iWeb it opens up an old version of my site. I search for Domain and none of the options are the current site. On my laptop (the current iWeb version) I opened MobileMe's iDisk and tried a couple of the "Domains" that live on it and none of them are the current version. Now, I can't even get my laptop to open the one I had opened a few moments ago beacuse I can't find the newest domain. So, where is my current domain/ I can't find it.
    I do have a folder on iDisk called "Sites" that contains the HTML files and folders of my current site but I can't seem to get this to open in iWeb. But, this folder does contain the current version but none of the Domain files I have opened refer to these I guess.
    What should I do?
    Guy
    PS I am running the latest iWeb on both computers

    Welcome to the Apple Discussions. As you know for both of you to edit and update the web site both of you must be using the same version of iWeb and working on the same Domain.sites2 file.
    See MacWorld's online article Managing an iWeb site from multiple Macs. However, there are a couple of caveats: 1 - only one can be editing and uploading at a time; 2 - allow plenty of time for Dropbox to update all copies of the domain file.
    What I would do is when you plan on editing the site copy the domain file that's in your Dropbox as a backup. Do you editing and publish. If something goes wrong you'll have the good domain file that was copied just before you started editing. If the site is small and, thus, the domain file the updating will be better insured. Keep both computers online much of the time so the updates will go thru as soon as they are made.
    OT

  • Allow users to search on all site collections, no matter where they are browsing

    SharePoint 2010, Enterprise Edition.
    I need to allow users to use the search box to search on all existing site collections, no matter what site they are. Currently, users are only allowed to search on the current site and on sites that are below the current one. Is it possible to search "everywhere"?
    Creating a Search Center would be a possible approach for this? Thanks.

    Yes, I would suggest creating an Enterprise search center and adding that to the navigation. Then you can go to the site settings to configure the site to use that search center.
    Andy Wessendorf SharePoint Developer II | Rackspace [email protected]

  • How to search data from a context node.

    Hi Friends,
    Thanks for ur help for previous problem . I am facing some other problem i.e how to
    search data from a context node.
    i have a context node :-
    Car(main node) which consist of details, owners, engine and Brand  as its sub node.
    the value attibutes of difft nodes are:-
    Car-  category
    Details-  Mileage, Price, registration_no, miles_used
    owner -  name, phnno,addrs
    Brand -  main_brand, co_brand
    Engine- Bhp,Rpm
    Now i have to apply a search criteria on the basis of price, miles_used .
    pls help to implement that .
    Thanks & regards
    Pravin jha

    Hi PRAVIN,
                       What I can understand from your problem is that, you have a list with various properties and you want to display them and search them in your WD App. If I am correct, use the following approach:
    Instead of using "details, owners, engine and Brand" Nodes, use the attributes inside the parent node. i.e in the node Car, add all the attributes viz. Mileage, Price, registration_no, miles_used, name, phnno,addr etc.
    Now you can create a table of this node "Car" and can easily search on the basis of any criteria.
    I hope this solves your issue. If you are looking for something else, please revert, I'll be happy to help you.
    Cheers!!!
    Umang

  • The server principal "XYuser" is not able to access the database "Ydb" under the current security context

    SQL2005 on winserver 2003. I have a view in Xdb that accesses tables in 2 different databases (Xdb and Ydb) on the same server. I have mixed mode security. I have a SQL user (XYuser) that has read access to all tables and views on both databases, yet when I try to access the view using a C# windows application I get the following error:
    The server principal "XYuser" is not able to access the database "Ydb" under the current security context
    This same scenario works under SQL 2000. I looked through the postings and tried to set TRUSTWORTHY ON on both databases but that didn't help. I can access any other views or tables on the SQL 2005 server, just not the one that joins the tables cross databases. Any help is much appreciated... john

    This appears to be a Login/Database Mapping issue.  I was having this problem, but was able to resolve it as follows:
    Using the SQL Server management Studio:
    In the Object explorer, under the SERVER security folder (not the database security folder), expand Logins. 
    That is: ServerName -> Security -> Logins
    NOT: ServerName -> Databases -> DatabaseName -> Security -> Users
    Select the Login that is having the troubles.  Right click on the Login and select ‘Properties.’
    The ‘User Mapping’ page should list all databases on the server with a check mark on the databases that the Login has been mapped to.  When I was getting the error, the database in question was not checked (even though the Login was assigned as a User on the database itself).  Map the Login by checking the box next to the database name.  Set the default schema.  Then select the roles for the Login in the Database role membership list box.  I selected db_datareader and public.  After clicking OK to save the changes, the problem was resolved.
    In order to ‘Map’ the Login, the Login must not already be as User on the database, so you may have to go to the database security (ServerName -> Databases -> DatabaseName -> Security -> Users) and delete the Login from the list of database Users before mapping the Login to the database.

  • Infopath submit - how to hide - Save as dialog box - You can only save this file to the current site

    HI,
    I have a infopath form. In the submit options, i have used the below:
    submit options -
    sharepoint document library
    Data connection - Sharepoint Library Submit
    Doc library - lib location
    File name: concat("User Info - ", ResourceName, "-", PersonalID)
    Allow overwrite if file exists is checked.
    When I try to save a record, I am getting a popup:
    Save As:
    You can only save this file to the current site
    File Name: textbox
    save location: doc lib.
    save, cancel buttons.
    How to override this save as option(save as option should not be shown to user), and save the file using the file name mentioned?
    Thanks

    Are you clicking "Save" when you're using the form or "Submit"??
    You should be using "Submit" and it will ... submit your form to the document library with the file name you specified.
    To disable the "Save" button, click on "File" then "Form Options". Under the "Filler Features" area you can uncheck the box beside "Save and Save As". Click OK then re-publish your form.

  • I used to have a close tab for exiting the current site I was on instead of closing all of firefox. How do I get it back?

    I used to have a close tab for exiting the current site I was on instead of closing all of firefox. It was a red box with an x in it. How do I get it back?

    Click in a blank space on a toolbar & open 'customize'. You'll find that there is a gray "x" (on my browser it's gray) that is for closing a tab. Drag it up to wherever you want on the toolbar & it should work fine.

  • HT1711 I puchased 3 songs and was charged and never downloading their currently sitting there with download error and when i tap to retry it still wont download waht can i do as i have been charged?

    I puchased 3 songs and was charged and never downloading their currently sitting there with download error and when i tap to retry it still wont download waht can i do as i have been charged?

    Have you tried signing out of itunes and then signing back in

  • Can I search the current set path in a script?

    I have on my machine a folder full of mathscript commands and functions.  This folder is beginning to get quite large and I'd like to be able to clean it up a bit by grouping the files into sub-folders.  For example, I'd like to create the following folders;
    C:\MatrixXTools
    C:\MatrixXTools\StringTools
    C:\MatrixXTools\VariableTools
    Of course, this would be fine if I was to set the path to every folder individually.  What I want to do though, is to set my path manually to C:\MatrixXTools and then put a command in there called 'import'.  The 'import' command would be responsible for searching the current path for a given folder and then adding it to the path when it finds it. So to import the StringTools, I would just call
    import "StringTools"
    All of my base scripts would go into C:/MatrixXTools and then if a script needed to use the StringTools, I could just call the import function.
    The problem I have is that I can't find a command that will return me the path into a string vector.  Is there some way of doing this?  'SHOW PATH' doesn't do what I want it to because it just shows the path and doesn't give me a way of programmatically viewing it.
    Is there a better method of getting everything into sub-folders all together?
    I realise that I could also do this using the startup script, however I have the tools in revision control (svn) so that other people can use them - I don't want to have to get everyone to change their startup script every time I make a new folder - I should be able to do this in the scripts.
    Note: we are still on v62.2 and we are looking into upgrade options.
    Solved!
    Go to Solution.

    You can get the show path output into a string using === operator.
       [showPathStr,] === show path;
    You can break up the showPathStr on the new line characters
    into a string vector using the split function.
    The split function was added in MATRIXx 7.1.9. The split function internally
    uses the index and stringex functions to create the split string vector.
       showPathVector = split(""n",showPathStr);
    If you try out the split function and look at the algorithm you will need to
    download and eval MATRIXx 7.1.9 or higher.
    Also, instead of changing startup.ms everytime you add a tools directory, why not
    have startup.ms execute another script (i.e. execute file = toolsetup.ms) and you
    would only update toolsetup.ms when adding a new tools directory.

  • Lost iWeb Site .... need to import current site!

    HI
    My iWeb site info was lost after a destroyed computer incident.
    I didn't know about the domain file that should be backed up ... I do now... but I am left with a .Mac web site that I can't edit or import.
    What should I do?
    Are there products that can import the site? Maybe I can continue using a different editor?
    Is there a way to add new pages to my site ... to at least link to a new site? Or is my current site now frozen in time?
    Thanks for any advice
    Lee

    Ok to rant now and then; we all have at one time or another!
    Maybe this will help: understand that iWeb doesn't operate like other web apps, in the sense that it does not write html as it creates. It takes the data you place in it and then converts all of it into html when you click the Publish button. In other words, iWeb does the Save As for you when it generates the html necessary for the web.
    I save frequently as I work in iWeb. If you have spent hours working with the application and you have created a substantial portion of a site, it is a very good idea to stop, make a duplicate copy of the Domain file, and place it in it's own folder, in another location. There is a free automator application available here which makes this process very quick and easy.
    Get used to backing up that Domain file frequently. While it doesn't happen that often, there are posts in the forums about the inability to even save your work after hours of labor in the app. If you have duplicated your Domain file incrementally as you work, you will avoid the perils of this situation.
    Mark

Maybe you are looking for

  • Grouping of multiple criterias as expression

    Dear all I want to do a grouping of multiple criterias as expression . Single grouping is possible , but when group within a group comes things doesnt work for me. User would define the comibination For example i have 4 criterias C1 C2 C3 C4 Basic gr

  • Could not find the main class : HelloWorldApp program will exit

    please help me i downloaded and installed jdk-6u13-windows-i586-p(1) from sun.java.com in my computer --> Advanced --> environment variables --> i had set user variable : variable value java_home C:\Program Files\Java\jdk1.6.0_13\bin System variable:

  • K7T266 Pro and Maxtor hd

    Could someone please tell me if there are problems between my K7T266 Pro and Maxtor Diamond Max Plus 9 (6Y160P0)? Thanks 4 answer

  • Intercompany Goods Moment Account Determination Question

    Hi, I'm wondering how to meet a business requirement relating to intercompany FI postings. We use the NB stock transport order to transfer materials between plants in different company codes. For this order type, SAP uses movement type 643 for the sh

  • Sending long text thru CCAP_ECN_MAINTAIN.

    Hi, we are Transferring ECN document from middleware(ESI) to SAP thru BAPI CCAP_ECN_MAINTAIN. with the help of this bapi, we can send Long text of 132 char at the max. Our requirement is to send more than 132 chars. How to create around 1000 chars lo