Search Scope that Only Returns Sites

I'd like to create a search scope that only returns Sites. I don't want any documents, lists, items, or anything else in my results. How would I do this?Murray

You can use ContentClass:STS_Web
You can either create a scope or you can simply append it to any query using the search query web part. This would allow the user to search for "project1" and the executed query would be "project1 ContentClass:STS_Web" and therefor only return sites with project1 in the content.
MCTS: SharePoint 2007, Web Applications
MCPD: Web Developer
My Blog: http://corypeters.net

Similar Messages

  • How can i change my searches so that only UK sites/info are found. and i want to have a master password but don't know my existing one.

    when i search for something it comes up with worldwide answers. i just want UK ones. also, how to set up a master password?

    Hello lindyh, for specific Search results you can install specific Search Engine Plugins, example for google : http://mycroftproject.com/google-search-plugins.html
    Google UK (SSL) en-GB (google.co.uk) by Mycroft Project
    Google UK - the UK (SSL) en-GB (google.co.uk) by Mycroft Project
    in general : http://mycroftproject.com/search-engines.html
    for master password see the next links for details :
    * [https://support.mozilla.org/en-US/kb/use-master-password-protect-stored-logins Use a Master Password to protect stored logins and passwords]
    * http://kb.mozillazine.org/Master_password
    thank you

  • Search in Finder only returns results for "This Mac"

    I'm experiencing the following, annoying issue with searching for files in Finder:
    When I type a search text in Finder's search field, it only returns results when I select "This Mac". It does not return a single search result when being in any subfolder.
    To make this a bit more clear assume the following structure:
    | -– A
    |    | -- B
    |         | -- sample.pdf
    |         | -- another-sample.pdf
    |
    | --- C
    |     | -- yet-another-sample.pdf
    |
    | -- sample.pdf
    I use finder to navigate to folder B. I type "sample" into the search bar. No results are returned.
    Next I switch to "This Mac" and all of the above .pdf files are – correctly – returned.
    The same happens when I'm in any other subfolder. Search only returns results when I switch to "This Mac".
    Notes:
    I'm not talking about network drives. All folders are local and below "This Mac" in the file system hierarchy.
    I have forced Spotlight to reindex via sudo mdutil -E.
    It happens on multiple machines, Snow Leopard upgrades and Lion clean installs.
    Any idea? This bug renders Lion almost useful for me.

    I had the same problem .... found this link
    http://osxdaily.com/2007/02/15/spotlight-wont-work-fix-a-broken-spotlight-menu-w ith-these-troubleshooting-tips/
    And solution 3 the simplest, no wait the wierdest,
    Change the screen resoultion then revert!
    worked for me ...... go figure.

  • Portal Search Not Working - Only Returns Portal Content, Not TREX Indexes

    I have configured two indexes using the portal.  One is for documents that reside on the portal, and the other one is for a website that we have configured in TREX using Cruiser.  The TREX Admin console shows that the website information has been indexed.  However, when I search on a word in Portal, only the portal contents are displayed.  Is there a different search field for looking up TREX/indexed files?  I'm using the search field that's on the front page of the portal.  Also, both indexes belong to the same index group.  I did use the serach feature built-in to TREX Admin to verify that there were documents stored in the index.

    Please check Below Link
    http://help.sap.com/saphelp_nw04/helpdata/en/46/5d5040b48a6913e10000000a1550b0/frameset.htm
    And Edit Crawler Parameter's field Follow Redirects on Web-Sites to YES

  • A php search engine that only shows results that match entire serch string

    I have set up a dreamweaver search engine through php and a fulltext search (WHERE MATCH (....) AGAINST (...). However, when someone inputs more than one word into the search form, the search engine churns out results that only have one of those words. How do I get it to only show results that have all the search string words inside? (or, at least, how do I get those results to show up at the top?)
    I have seen some advice (here) that uses php code to process the search query, divide up the words, and place a BOOLEAN '+' between each of the words. By doing this, the search engine will only show results that fully match all the terms.
    My problem is that I do not know how to put this code into my Dreamweaver-created code.
    My dreamweaver created code:
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $form_rsSearch = "-1";
    if (isset($_get['search'])) {
      $form_rsSearch = $_get['search'];
    mysql_select_db($database_dataConnect, $dataConnect);
    $query_rsSearch = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH (title, content) AGAINST (%s)", GetSQLValueString($form_rsSearch, "text"));
    $rsSearch = mysql_query($query_rsSearch, $dataConnect) or die(mysql_error());
    $row_rsSearch = mysql_fetch_assoc($rsSearch);
    $totalRows_rsSearch = mysql_num_rows($rsSearch);
    $input_rsSearchResults = "-1";
    if (isset($_GET['search'])) {
      $input_rsSearchResults = $_GET['search'];
    mysql_select_db($database_EMdataConnect, $dataConnect);
    $query_rsSearchResults = sprintf("SELECT title, content FROM encyclopedia WHERE MATCH(title, content) AGAINST(%s)", GetSQLValueString($input_rsSearchResults, "text"));
    $rsSearchResults = mysql_query($query_rsSearchResults, $dataConnect) or die(mysql_error());
    $row_rsSearchResults = mysql_fetch_assoc($rsSearchResults);
    ?>
    and the code the website (link above) gives is:
    function search(String $search_string) {
         //strip Boolean search characters out of search string
         $search_string = string_replace($search_string,"+","");
         $search_string = string_replace($search_string,"-","");
         $search_string = string_replace($search_string,"*","");
         //split the search string up into an array of words
         Array $tokenized_search = split($search_string, " ");
         //init an empty final search string
         String $processed_search = "";
         //for each word in the search, wrap it
         //with an + and * character and then append
         //it to the processed_search variable
         foreach($tokenized_search as $token) {
              $processed_search+="+"+$token+"* ";
         //build the sql for the query and query the DB
         String $db_query = "select id, description
              from product_descriptions
              where MATCH(description)
              AGAINST ('"+$processed_search+"' IN BOOLEAN MODE)";
         Array results = execute_database_query($db_query);
         return results;
    If anyone can instruct me on the correct way to go about this, I would be very much obliged.
    Thank you,
    YWSW

    Don't use the Search bar, type the address in the Location bar.

  • Query that only returns items that will produce a result

    Thanks to Mack for his help yesterday.  I would really appreciate some help from anyone who is more SQL competent than I am.  I have an SQL problem that is just completely over my head.  I've created a nifty tagging system for the blog, that sorts by tags and by multiple tags, check out the beta here: http://committedsardine.com/blog.cfm
    When a user selects a tag, it adds it to the value list SESSION.blogTags.  If the selected tag is there already, it removes it.  When the list for tags pops up, I output all the tags, and show their state.  You'll see what I mean if you try it.
    What this leads to is the ability to select a group of tags for which there are no query results.  What I want to do is only show those that will generate results and how many results they'll show.  Like this, select "fluency" by itself there are 310 entries
    fluency (310) | digital (234) | writing (12)
    Once fluency is selected, there are 13 articles that ALSO are tagged by "digital", but none that are tagged by writing:
    fluency | digital (12) | writing
    I have a table called blogTagLinks, that is just for tying a tag to a blog.  It lists a blogID and a tagID.  Here is a sample of it for reference:
    blogTagLinkID
    blogID
    tagID
    4
    2
    2
    5
    2
    3
    6
    2
    5
    39
    1
    18
    49
    1
    1
    42
    1
    9
    44
    1
    19
    47
    5
    14
    48
    1
    22
    54
    16
    22
    I'm including all my sql, but the spot that I need help with is marked in red below:
    <!---if URL.tg is defined, check to see if it exists in the database, then the SESSION, and either add or delete it from SESSION--->
    <cfquery name="rsAllTags" datasource="">
    SELECT tagsID, tagName
            FROM tags
            WHERE tagActive = 'y'
    </cfquery>
    <cfset allTags = ValueList(rsAllTags.tagsID)>
    <cfif isDefined("URL.blogTags")>
        <cfif ListFind(allTags, URL.blogTags) NEQ 0>
            <cfif ListFind(SESSION.blogTags, URL.blogTags) NEQ 0>
                <cfset SESSION.blogTags = ListDeleteAt(SESSION.blogTags, ListFind(SESSION.blogTags, URL.blogTags))>
                <cfelse>
                <cfset SESSION.blogTags = ListAppend(SESSION.blogTags, URL.blogTags)>
            </cfif>
        </cfif>
    </cfif>
    <!---get a list of all available tags, tags that if added to the already selected tags, will return a result--->
    <cfquery name="rsAvailableTags" datasource="">
    SELECT tagsID, tagName
            FROM tags
            WHERE tagActive = 'y'
            NEED SOME STATEMENT HERE OF BLOGTAGLINKS TO DETERMINE WHAT TAGS WILL PRODUCE A RESULT
    </cfquery>
    <!---if searching by tags, get a list of the currently selected tags for display, the 0 returns an empty result if there are no tags--->
    <cfif isDefined("SESSION.sb") AND SESSION.sb EQ "tg">
        <cfquery name="rsTags" datasource="">
            SELECT tags.tagName, tagsID
            FROM tags
            WHERE tagsID <cfif SESSION.blogTags NEQ "">IN(#SESSION.blogTags#)
            <cfelse> = 0</cfif>
        </cfquery>
        <cfset variables.newrow = false>
    </cfif>
    <!---get the information for the blogs list, filtered by keyword or tag if requested--->
    <cfquery name="rsBlog" datasource="">
        SELECT blog.blogID,
            blog.storyID,
            blog.blogDate,
            blogStories.storyID,
            blogStories.blogTitle,
            SUBSTRING(blogStories.blogBody,1,200) AS blogBody,
            images.imageName
        FROM blog, blogStories, images
        WHERE blog.storyID = blogStories.storyID AND images.imageID = blog.photoID AND blog.blogDate < "#todayDate#" AND blog.deleted = 'n'
    <cfif SESSION.sb EQ "kw">AND  CONCAT(blogStories.blogBody, blogStories.blogTitle) LIKE '%#SESSION.blogKeywords#%'</cfif>
        <cfif SESSION.sb EQ "tg" AND SESSION.blogTags NEQ "">
                AND  blog.blogID IN (
                SELECT blogID
                FROM blogTagLink
                <cfif SESSION.blogTags NEQ "">
                    WHERE tagID IN(<cfqueryparam cfsqltype="cf_sql_integer" value="#SESSION.blogTags#" list="true">)
                    GROUP BY blogID
                    HAVING count(tagID) = #ListLen( SESSION.blogTags )#)
                </cfif>
         </cfif>
    ORDER BY blog.blogDate DESC
    </cfquery>

    There might be a single query solution but here's a query that you
    will need to run for each tag in the database (cfloop over all the
    tags) and will give you the number of blogs that have the selected
    tags + the current tag
    SELECT Count(*) AS blog_count
    FROM (
        SELECT blogID
        FROM blogTagLink
        WHERE tagID IN(<cfqueryparam cfsqltype="cf_sql_integer"
    value="#SESSION.blogTags#" list="true">)
             OR tagID = #currentTagID#
        GROUP BY blogID
        HAVING count(tagID) = #ListLen( SESSION.blogTags )#
             OR count(tagID) = #ListLen( SESSION.blogTags )# + 1
        ) AS blogs
    Mack

  • Generating subtraction equations that only return positive values

    Hello!
    Can you please help me to create a random subtraction equation where the result will always be positive? For example, my current scripting will return something lilke 3-6=-3. I don't want equations like this- only postive answers.
    Thanks for your help!
    //random numbers
    //1.
    function randomNumbers(min:Number,max:Number) {
       var Results:Number=Math.floor(Math.random()*max)+min;
       return Results;
    //2.
    new_mc.addEventListener(MouseEvent.CLICK, showRandomnumber);
    //3.
    function showRandomnumber(event:MouseEvent):void{
       r1_txt.text = String(randomNumbers(1,10));
       r2_txt.text = String(randomNumbers(1,10));
       a1_txt.text = String(Number(r1_txt.text) - Number(r2_txt.text));

    I see.
    How about you try to pass the first generated value the second time you call the function? Like so:
    // Your function definition.
    function randomNumbers(min:Number,max:Number) {
       var Results:Number=Math.floor(Math.random()*max)+min;
       return Results;
    // Connecting the event handler.
    new_mc.addEventListener(MouseEvent.CLICK, showRandomnumber);
    // Check the r2 line.
    function showRandomnumber(event:MouseEvent):void{
       r1_txt.text = String(randomNumbers(1,10));
       r2_txt.text = String(randomNumbers(1,r1_txt.text as Number));
       a1_txt.text = String(Number(r1_txt.text) - Number(r2_txt.text));
    Ofcourse, this leaves you with the possibility that r2 is the same as r1, leaving 0 after subtraction. But it shouldn't give you any negative numbers.
    Michiel

  • Query that only returns certain fields in Java

    Currently I'm using a filter that identifies some keys, I then get all the keys and get a single value from each object. The rest of the object is quite large. I've seen references in passing on the ability to do this, using CohQL but I can't get it to work from Java.
    Basically, I want to do: "Select field from "Cache" where key='asdf'". I just want to get back the specific "field" rather than the whole object. How do I do this?
    Thanks.

    Hi,
    It should be easy if your object has a getField() accessor. Hope this helps ...
    http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/api_cq.htm#CEGDIJEC
    Using Path-Expressions
    One of the main building blocks of CohQL are path-expressions. Path expressions are used to navigate through a graph of object instances. An identifier in a path expression is used to represent a property in the Java Bean sense. It is backed by a ReflectionExtractor that is created by prepending a get and capitalizing the first letter. Elements are separated by the "dot" (.) character, that represents object traversal. For example the following path expression is used to navigate an object structure:
    a.b.c
    It reflectively invokes these methods:
    getA().getB().getC()
    For example ...
    Select the home state and age of employees in the cache ContactInfoCache, and group by state and age.
    select homeAddress.state, age, count() from "ContactInfoCache" group by homeAddress.state, age

  • How to limit the search scope in single site collection for SP2013?

    On our SP2013 farm, there is one web application and 4 site collections under it. At the beginning I was trying to setup 4 different "Content Sources" but Sharepoint warn me that I can only setup 1 source per web application.
    I don't want user search at site collection A get search result from B, C and D. Also I like to use continuous crawling. What is the best practice to achieve? Thanks.

    Hi,
    Please check this links
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/615edaa8-f522-4496-a57e-9681d83b0ac3/how-to-create-content-type-search-scope-depending-on-each-site-collection?forum=sharepointdevelopmentprevious
    http://sadomovalex.blogspot.in/2013/08/how-to-limit-search-results-to-current.html
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Cubeset to only return positive values?

    Yet another cube formula question... In Excel 2010, no powerpivot or olap pivottable extensions, this is a pure Excel project.
    I am building various cubeset, cubemember, and cubevalue formulas to validate an ETL process.
    Question:
    I need to create a cubeset that only returns the members of a cube that have positive values for a specific measure. This cubeset will then be one of several cubesets that gets fed into a cubevalue formula that would otherwise exceed the 255 char limit.
    I can create a cubeset for the overall measure:
    =CUBESET("MyCube","[Measures].[RetailPrice]")
    but haven't found the right syntax for limiting results to only those that have positive values, I think it would be something like:
    =CUBESET("MyCube","FILTER[Measures].[RetailPrice],[Measures].[RetailPrice]>0")
    This syntax actually doesn't return an error, so maybe it is valid syntax... but when I wrap it in a simple cubevalue statement,
    =CUBEVALUE("MyCube", A2)       where A2 is the Cubeset above, or if I also add date range and other filters,
    I get a #Value error, indicating that "the tuple is invalid" per
    http://office.microsoft.com/en-in/excel-help/cubevalue-function-HA010342391.aspx?CTT=5&origin=HA010342384
    I'm still a newbie with the cubeformula syntax and MDX, so I appreciate any suggestions!

    Hi Rohit-
    The cube has a net value of 1220 for the measure I'm trying to calculate (when I don't filter on > or < zero).
    I tried my formula both ways (looking for just positive, and just negative values) and while both work in the standalone cubeset formula, neither return a value when I use it in a cubevalue formula.
    My suspicion, other than a syntax error, is that this may have something to do with me trying to filter on the measure value(s), instead of a dimension- which I think must be possible, but again maybe not with this syntax.
    Let's assume that we had a total of 1280 in retail price, but due to a few returns, we have a few records that show value of -60. If we were looking at profitability, the 1220 is what matters. If we are looking at "dollars exchanged" as a variable expense
    driver of some other measure, then we'd actually want the absolute value of retail price (1280+60 = 1340). I hadn't been able to get the MDX ABS to work, so this was my attempt to grab the positive and negative numbers separately, and then add them to get
    the equivalent of ABS.
    In this case, slicers aren't a desirable option due to how the report is being constructed (I've used slicers in other reports with cubeformulas, but with Excel 2010 I have to have an extra pivot table to get the slicer value, which then has to get fed into my
    cubeform and I'm back at step 1, getting it to work in the cubeformula syntax)
    Thanks!

  • Site Collection level Search Scopes after Upgraded to 2013

    In SharePoint 2010 we have  good amount of site collection level search scopes and it has been heavily used in search scope down.
    Please correct me if any of my below statement is wrong
    1.After migration these scopes cannot be used and it will not appear in search drop down.
    2.Only opition I have is to create Result Source and Configure search navigation at Site Level?
    3.For Result Sources to appear in drop down I need to have individual search page for every custom result source.
    I would really appreciate your inputs
    Thank you
    Vijay

    1. Usually 2010 Search Scopes can be used after migrating to 2013.  What you can't do is edit them or create new ones.  However, I've had mixed luck with them.  About 75% seem to work, with the rest being broken beyond repair.
    2. If the migrated scope doesn't continue to work your only real option is a REsult Source.  To add them to the dropdown you will need to configure the navigation at the Site level.
    3. Result sources can re-use result pages used by other Result sources.  You need a Result source for each entry, but that result source may point to the same page as another result source.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • In iTunes 11.0.2.26, an Albums search by track names returns albums as if they only have one track on them, but I still want to access the entire album. How can I have the search results show the entire album (with just the searched for name highlighted)?

    Hello, all.
    In iTunes 11.0.2.26, an Albums search by track names returns albums as if they only have one track on them, but I still want to access the entire album. How can I have the search results show the entire album (with just the searched for name highlighted)? For instance, I'm wanting to play an album with a particular track on it or I'm searching for albums that include that track. iTunes incorrectly assumes that all I'm after is that one track and then incorrectly displays the album as if there is only one ttrack on it. This is a bonkers default setting. Can I change this?

    Click the search magnifying glass and uncheck "Search entire library".
    Type in the name of the track.
    Click the album of interest to show tracks.
    Select the track.
    Press the X in the search box to clear the search.
    Double click the track you want to start playing first.
    tt2

  • How can I search a file system and only return newer files?

    Sorry the title didn't give me much room to work with. I'm writing a tool which needs to track all the files in an OS. What I'd like to do is make it so my program will only return files that have been modified/created since the last search to add to my program. I was wondering if there's an efficient way to do this other than checking each file's timestamps? Also is there a way to tell from a parent directory whether any files in its directory have been modified/created? I'm looking for ways for Windows and Linux.

    I have no problem checking timestamps but it can be rather time consuming doing this. I don't know if this is quicker but I'd like to sort by modified date and check the time stamps for newer timestamps than the last time I ran. This way if I hit a time stamp equal to my last run I know to stop there. I checked Windows and the folder does tell you whether any file was created/modified in it's directory. However, if a file is created in one of its children's directories it won't update the time stamp. It's unfortunate because I could've avoided the search at a higher level directory otherwise. Without this I'll have to walk the whole structure one way or another. I can still improve the speed but I can't make it as efficient as I'd like.

  • 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

  • How to show only Indexes in Search Scope

    Hi All,
    Is it possbile to allow users to choose only Indexed in search scope.
    I tried editing the Search Options set, there i found that I can enable and disable search scope, but whn search scope is enabled both the Indexes and folders are visible.
    I want to show only Indexes to the user. How can I hide the folder options alone in the search scope?
    Thanks and Regards
    George

    Instead of using the Search Options set in the KM Search iView, use the Search Component Set.
    Create your own Search Component Set by going to <b>System Administration > System Configuration > Knowledge management > Content Management > User Interface > Search > Search Components</b>
    While creating the Search Component Set, Specify <b>Component for Search Options</b> as <u>search_input_indexes</u>.
    This should help you.
    Or you could do the following.
    In the Search Options set, Do the following.
    1) Uncheck <b>Enable Search Scope Selection</b>.
    2) Provide the various index names in <b>Search Index IDs (csv)</b>
    The above option would by default search the selected indexes for the search term and would not provide the user with the functionality of searching in folders.
    Pradeep.

Maybe you are looking for

  • Using InfoPath form to create a task item in SharePoint 2013

    Hi, I have a requirement where I have to use InfoPath to create a task with attachments in a SharePoint 2013 List B. I have to query a SharePoint Document Library A to display documents on the InfoPath form. The user should be able to select the docu

  • Unable to reverse goods ..using vl09

    Hi Experts, we have created order , bill and delivery in production and we made one small mistake and cancelled the bill when we try to cancel the delivery using vl09 - goods movement reverse i am getting the message  no data available when i check t

  • Choosing which table is used for results

    To make this simple I am going to use two dimension tables and one fact table. If you were to have two dimension tables. One for Country and one for Region. Then you have one fact table which shows transactions at the Region Level, but Country is als

  • [Win Ill 10] How to Call Javscript using Plugin code?

    Hi All, IDE:Microsoft VC++ 6.0 Illustrator :Version 10 I want to call a javascript from Vc++ code using SDK .I found a sample code to do this in "ASScripting.h" header. Here is the code: How to use the Scripting suite: /*To execute a JavaScript scrip

  • Blackberry 9870 Email Account Setup Wizard not working

    i have Balckberry 9870 and I am trying to setup an email account, but into setup wizard, E-mail setup wizard not working. please help