Limiting search results to show results based off of entry in a catgory.

I am working of someones previous search query, and now the company wants it to be more limited to what is viewed.  I have multiple users in a database and each user has a state assigned to them. I do not want the user when doing a search, to have the results comeback and show all results for every state. The States are defined in the database category as follows. IL, IA, FL, NV.  There will never be anything in this category but these. Below is the code that I am trying to modify to limit the result to the specific state they are using. This is current page for searching in IA. What do I need to change so it will search all search terms, but limit the results to only show for that state.  Thanks in advance.
<?php require_once('../Connections/forms.php'); ?>
<?php include('inc_auth.php') ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  $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;
$colname_subcat3 = "-1";
if (isset($_GET['Category'])) {
  $colname_subcat3 = (get_magic_quotes_gpc()) ? $_GET['Category'] : addslashes($_GET['Category']);
$colname1_subcat3 = "-1";
if (isset($_GET['SubCat1'])) {
  $colname1_subcat3 = (get_magic_quotes_gpc()) ? $_GET['SubCat1'] : addslashes($_GET['SubCat1']);
$colname2_subcat3 = "-1";
if (isset($_GET['SubCat2'])) {
  $colname2_subcat3 = (get_magic_quotes_gpc()) ? $_GET['SubCat2'] : addslashes($_GET['SubCat2']);
$colname3_subcat3 = "-1";
if (isset($_GET['SubCat3'])) {
  $colname3_subcat3 = (get_magic_quotes_gpc()) ? $_GET['SubCat3'] : addslashes($_GET['SubCat3']);
mysql_select_db($database_forms, $forms);
$query_subcat3 = sprintf("SELECT * FROM `forms` WHERE Category = %s and SubCat1 = %s and SubCat2 = %s and SubCat3 = %s ORDER BY Description ASC", GetSQLValueString($colname_subcat3, "text"),GetSQLValueString($colname1_subcat3, "text"),GetSQLValueString($colname2_subcat3, "text"),GetSQLValueString($colname3_subcat3, "text"));
$subcat3 = mysql_query($query_subcat3, $forms) or die(mysql_error());
$row_subcat3 = mysql_fetch_assoc($subcat3);
$totalRows_subcat3 = mysql_num_rows($subcat3);
$colname_category = "-1";
if (isset($_GET['Category'])) {
  $colname_category = (get_magic_quotes_gpc()) ? $_GET['Category'] : addslashes($_GET['Category']);
mysql_select_db($database_forms, $forms);
$query_category = sprintf("SELECT * FROM `forms` WHERE Category = %s ", GetSQLValueString($colname_category, "text"));
$category = mysql_query($query_category, $forms) or die(mysql_error());
$row_category = mysql_fetch_assoc($category);
$totalRows_category = mysql_num_rows($category);
$colname_subcat1 = "-1";
if (isset($_GET['Category'])) {
  $colname_subcat1 = (get_magic_quotes_gpc()) ? $_GET['Category'] : addslashes($_GET['Category']);
$colname1_subcat1 = "-1";
if (isset($_GET['SubCat1'])) {
  $colname1_subcat1 = (get_magic_quotes_gpc()) ? $_GET['SubCat1'] : addslashes($_GET['SubCat1']);
mysql_select_db($database_forms, $forms);
$query_subcat1 = sprintf("SELECT * FROM `forms` WHERE Category = %s and SubCat1 = %s ORDER BY Description ASC", GetSQLValueString($colname_subcat1, "text"),GetSQLValueString($colname1_subcat1, "text"));
$subcat1 = mysql_query($query_subcat1, $forms) or die(mysql_error());
$row_subcat1 = mysql_fetch_assoc($subcat1);
$totalRows_subcat1 = mysql_num_rows($subcat1);
$colname_subcat2 = "-1";
if (isset($_GET['Category'])) {
  $colname_subcat2 = (get_magic_quotes_gpc()) ? $_GET['Category'] : addslashes($_GET['Category']);
$colname1_subcat2 = "-1";
if (isset($_GET['SubCat1'])) {
  $colname1_subcat2 = (get_magic_quotes_gpc()) ? $_GET['SubCat1'] : addslashes($_GET['SubCat1']);
$colname2_subcat2 = "-1";
if (isset($_GET['SubCat2'])) {
  $colname2_subcat2 = (get_magic_quotes_gpc()) ? $_GET['SubCat2'] : addslashes($_GET['SubCat2']);
mysql_select_db($database_forms, $forms);
$query_subcat2 = sprintf("SELECT * FROM `forms` WHERE Category = %s and SubCat1 = %s and SubCat2 = %s ORDER BY Description ASC", GetSQLValueString($colname_subcat2, "text"),GetSQLValueString($colname1_subcat2, "text"),GetSQLValueString($colname2_subcat2, "text"));
$subcat2 = mysql_query($query_subcat2, $forms) or die(mysql_error());
$row_subcat2 = mysql_fetch_assoc($subcat2);
$totalRows_subcat2 = mysql_num_rows($subcat2);
$colname_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
$colname6_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname6_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
$colname1_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname1_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
$colname2_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname2_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
$colname3_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname3_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
$colname4_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname4_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
$colname5_subcat4 = "-1";
if (isset($_POST['searchbox'])) {
  $colname5_subcat4 = (get_magic_quotes_gpc()) ? $_POST['searchbox'] : addslashes($_POST['searchbox']);
mysql_select_db($database_forms, $forms);
$query_subcat4 = sprintf("SELECT * FROM `forms` WHERE Title LIKE CONCAT('%%', %s, '%%') or Description LIKE CONCAT('%%', %s, '%%') or Category LIKE CONCAT('%%', %s, '%%') or SubCat1 LIKE CONCAT('%%', %s, '%%') or SubCat2 LIKE CONCAT('%%', %s, '%%') or SubCat3 LIKE CONCAT('%%', %s, '%%') or Keywords LIKE CONCAT('%%', %s, '%%') ORDER BY Description ASC", GetSQLValueString($colname_subcat4, "text"),GetSQLValueString($colname1_subcat4, "text"),GetSQLValueString($colname2_subcat4, "text"),GetSQLValueString($colname3_subcat4, "text"),GetSQLValueString($colname4_subcat4, "text"),GetSQLValueString($colname5_subcat4, "text"),GetSQLValueString($colname6_subcat4, "text"));
$subcat4 = mysql_query($query_subcat4, $forms) or die(mysql_error());
$row_subcat4 = mysql_fetch_assoc($subcat4);
$totalRows_subcat4 = mysql_num_rows($subcat4);
// date format function
function makeStamp($theString) {
  if (ereg("([0-9]{4})-([0-9]{2})-([0-9]{2}) ([0-9]{2}):([0-9]{2}):([0-9]{2})", $theString, $strReg)) {
    $theStamp = mktime($strReg[4],$strReg[5],$strReg[6],$strReg[2],$strReg[3],$strReg[1]);
  } else if (ereg("([0-9]{4})-([0-9]{2})-([0-9]{2})", $theString, $strReg)) {
    $theStamp = mktime(0,0,0,$strReg[2],$strReg[3],$strReg[1]);
  } else if (ereg("([0-9]{2}):([0-9]{2}):([0-9]{2})", $theString, $strReg)) {
    $theStamp = mktime($strReg[1],$strReg[2],$strReg[3],0,0,0);
  return $theStamp;
function makeDateTime($theString, $theFormat) {
  $theDate=date($theFormat, makeStamp($theString));
  return $theDate;
// end date format function
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<?php include('inc_titleia.php') ?>
<link href="styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="banneria"></div>
<div id="container">
    <div id="left">
<?php include('inc_formselectoria.php') ?>
    </div> <!-- end left -->
    <div id="right">
<?php if ($totalRows_subcat4 == 0) { // Show if recordset empty ?>
  <p class="largebold">Sorry.Not found.</p>
<?php } // Show if recordset empty ?>
<?php if ($totalRows_subcat4 > 0) { // Show if recordset not empty ?>
  <p class="largebold"></p>
      <?php do { ?>
<a href="../members/uploads/<?php echo $row_subcat4['File']; ?>">        <div id="subleft">Download <br>
  <br>
</div>
            <div id="subcenter"><?php echo $row_subcat4['Title']; ?><br>
              <?php echo $row_subcat4['Description']; ?></div>
            <div id="subright">Updated <?php echo makeDateTime($row_subcat4['Date'], 'm/d/Y'); ?></div>        </a>    <div id="clear">        </div>
        <hr><?php } while ($row_subcat4 = mysql_fetch_assoc($subcat4)); ?>
  <?php } // Show if recordset not empty ?>
      </div><!-- end right -->
  <div id="clear">        </div>
</div><!-- end container -->
</body>
</html>
<?php
mysql_free_result($subcat3);
mysql_free_result($category);
mysql_free_result($subcat1);
mysql_free_result($subcat2);
mysql_free_result($subcat4);
?>

>The search box being used allows the users to enter any phrase and the
>search script searches against all these tables for keywords, form numbers, names, etc
Does the form have a single search field?
>My problem is. Lets say I am logged in using the state IA...
Assuming that the 'form' table has a state field, you just need to include that in the WHERE clause. You can either get that when you log in, by retrieving it from the user table, or, by joining the two tables together in the query. The latter assumes that there is a relationship between user and form.
But again, I suggest as a first step to clean up the mess that you already have. The person that created this did not understand what they were doing.

Similar Messages

  • Filter item limits - search not returning any results with large number of elements otherwise ok

    Hi,
    We are working through a problem we've encountered with Azure Search. We are building a filter string based on an "id eq 'xxx' or id eq 'ccc' or id eq 'vvv' etc. The id's are provided in a collection and we loop through, building the string until it's
    ready to apply.
    We are using 2015-02-28 preview at the moment.
    We are encountering a situation where, after approximately 20 id's Azure Search doesn't return any results, nor does it appear to return any error code. I'm pretty sure that the url length is less than 8K.
    Is there any limit on the number of filter elements in a query?

    We followed up offline.
    The symptom in this case was a 200 response with no body. The underlying cause is a URL parsing bug that tries to interpret colons in the query string as the delimiter of a URL scheme (like https:), but with a hard length limit of 1KB. We will work
    on a fix for both the underlying URL parsing issue and the issue that caused it to surface as a body-less 200.
    In the meantime, the workaround is to put colons as close to the beginning of the URL query string as possible. Specifically, putting $filter and facets first, and putting expressions with colons within those first, will mitigate this in most cases.
    Note that the .NET SDK puts $filter and facets near the beginning of the query string by default, so if you're consuming Azure Search you might want to give it a try:
    http://www.nuget.org/packages/Microsoft.Azure.Search/

  • Google search does not show results must press RELOAD button for it to work

    Hello,
    I am using FF 17.0. This just started recently.
    When I go to Google and enter a search word and hit "enter" the results page loads with just the top header and a blank screen otherwise. I need to hit the RELOAD button in the address bar for everything to complete with results..
    Then, after scrolling thru the results to the bottom of the page and hitting ENTER to go to the next page, again the same thing happens. I need to hit the RELOAD button again for more results.
    This happens for every search I do when using FireFox.
    It works perfectly fine in IE. I hate IE.
    Any help would be greatly appreciated.

    Is is best not to use extensions like Fasterfox that change network.http settings.<br />
    You should leave them at the default as changing them can cause problems with some servers.
    You can check the network.http.* prefs on the about:config page.<br />
    Reset network.http prefs to the default value via the right-click context menu -> Reset if they are user set (bold).

  • Search Query that shows articles based on the current logged in users Office location

    Hi,
    I've set up a "news" channel that shows articles targeted to the current user. Basicly this on done by queryting the property of the custom "Office Location" termset.
    My setup is something like the following in my term store:
    The setup works perfect now. countries are not taggable so at the moment the user needs to choose City 1.. City 2 etc. for their articles which works fine since sometimes articles are also only targeted to cities and not countries.
    Anyways now we have got 2 users in City 4. Here it makes no sense that articles should be targeted City 3 and City 4 in order to show articles to entire Country 2. Basicle what I want here is that if an article is targeted with City 3 it should also be shown
    to City 4 users.
    How is this archived best? I have tried to make the Countries available for tagging as well, however it not show anything since the user property of course still is City 3 or City 4.
    Thanks for your time

    Hi,
    You can not get hold of the parent in your scenario. You want the parent of the tagged term in the user profile, and there is no built-in mechanism in search to get this. So as I mentioned you have to use JSOM to get the parent term, and then use that in
    your owstaxIdOfficex0020Location:term query.
    owstaxIdOfficex0020Location:{User.SPS-Location.IDWithChildren}
    would be a valid query, except it won't help you much :)
    Thanks,
    Mikael Svenson - Search Enthusiast
    SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • TS1702 i if use "search" in music on my ipod touch 5th gen the result just show only album and playlist but nothing song result.whats wrong with it?please help

    i if use "search" in music on my ipod touch 5th gen the result just show only album and playlist but nothing song result.whats wrong with it?please help

    The users guide says:
    Spotlight searches the following:
    Contacts—All content
    Apps—Titles
    Music—Names of songs, artists, and albums, and the titles of podcasts and videos
    Podcasts—Titles
    Videos—Titles
    Audiobooks—Titles
    Notes—Text of notes
    Calendar (Events)—Event titles, invitees, locations, and notes
    Mail—To, From, and Subject fields of all accounts (the text of messages isn’t searched)
    Reminders—Titles
    Messages—Names and text of messages
    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsynce all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar

  • SEARCH RESULTS NOT SHOWING THE NAME OF DOCUMENT

    When I search for a document on the top level, the results in my case are relevant but they do not display the document name, meaning I have to go into the document to check if it is the one I'm looking for. For some reason the name of the file is displayed
    in results as the first line of the document. I use a document template for letters meaning that the search results gives as list of documents that all have the same name displayed. This renders the search function almost useless as all the results are showing
    the same name. Is there a way to change the results page to display the name of the document??

    Hi,
    Based on your description, my understanding is that you want to show search results by document name instead of the Title.
    Here are two links about how to show document name in search results, you can use as a reference:
    http://chris.gg/2011/06/display-filename-instead-of-document-title-in-sharepoint-search/
    http://social.technet.microsoft.com/Forums/en-US/966db1b2-3288-4a31-8c98-19bf0dfc1316/show-search-results-by-document-name-not-by-title?forum=sharepointgeneralprevious
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • I have Google set to show results in a new window. When I click on a results page link Firefox reverts to search results page almost instantly

    I have Google set to show results in a new window, never use Google instant & search filtering off. When I click on a link on the results page Firefox reverts to the search results page almost instantly. I can of course select the desired page (via windows Aero). This happens on several computers, PCs & Laptops.
    Not a major problem but VERY irritating. This seems to have happened from a few update ago ?

    This can be caused by corrupted cookies or cookies that aren't send or otherwise blocked.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • Af:table filtering(inputDate) don't show results for a specific search date

    Hi again to every one.
    I have a database table as :
    sql> describe YES_NO_DATE_TEST
    FECHA TIMESTAMP(6) --> param search
    DESCRIPCION VARCHAR2(200 CHAR)
    VERIFICADO VARCHAR2(1 CHAR)
    I created my Bussines Components, I have a search page, I drag and drop this DataControl as af:table, called : YES_NO_DATE_TESTView1, to a jspx page ( search page ), I enabled sorting and filtering properties in the af:table .
    af:inputDate value="#{vs.filterCriteria.Fecha}" id="id1">
    <af:convertDateTime pattern="#{bindings.YesNoDateTestView1.hints.Fecha.format}"/>
    </af:inputDate>
    I run the search page, and show me a : af:inputDate , for choose and put a date.
    but, when I choose a date, and press the enter key, the search result by af:inputDate, do not show me nothing.
    How I can solve that ?
    Note :
    In the UI Hints of View Object I put this properties :
    format type : simple date
    format : dd-MM-yyyy
    I'm using JDeveloper 11.1.2.0.0

    wht is the database column type..??
    It's a TimeStamp Type. ----> FECHA TIMESTAMP(6)
    what is the query that is getting executed in the backend... when you do the search... ?
    My query in the server is :
    Select
    FECHA,
    DESCRIPCION,
    VERIFICADO
    FROM YES_NO_DATE_TEST;
    are you getting the expected results when you run the query..??
    Yes , I m . The query above is made for the View Object. But I don't why when I put a date in the af:inputDate the search don't show me the results that I hope.
    Or , Need I to Programaticallly access to the InputDate and passed to a bind variable on the query ??

  • Results web part showing results before search query is typed in search box

    2 part question
    I am creating a wiki site in which the home page has a search box web part, and a results web part.  I have the search box configured to return the results to the results web part.  I created a result source and changed the query on the results
    web part to use this results source.  I am getting results from the library I am trying to, but...
    1) The results web part is showing results when the page is loaded before any query is typed into the search bar.  Why is this and can it be configured to just be blank until a query is entered into the search bar?
    2) Is it possible to have 1 search box and 1 results part have 2 different scope choices?  ie, 1 scope for the wiki library and 1 for a document library?
    Thank you.

    So I have to have 2 different search result web parts to have 2 different scopes if I wish to have the search and results occur on the same page? Would I also have to have 2 search boxes?
    Also, I am trying to figure out this issue where results are being returned without anything being entered in the search box.  I have {searchterms?} in my query, and documentation suggests this to be the way to handle this issue, but I continue to get
    results shown in the results web part without even entering a search query.  Please assist.

  • Podcast Search results not showing all episodes

    I'm new to podcasting & our podcast isn't showing up properly.
    When you look at our podcast in the search results, only one episode shows up.
    There are three episodes total, but they show up only if you subscribe to the podcast.
    Is there a way for the search results to show all of our episodes?
    Our iTunes link is http://itunes.apple.com/us/podcast/the-hills-fellowship/id448179201
    Our RSS feed is http://sermon.net/rss/client/thehillsfellowship
    Please help if you can!
    Also, they were uploaded last week...so it's been enough time for them to be processed & show up.

    I'm afraid I can't give you a comforting answer.
    The feed at the URL you quote contains the tag
    <itunes:new-feed-url>http://sermon.net/rss/thehillsfellowship/main</itunes:new-feed-url>
    so the feed iTunes is now using is
    http://sermon.net/rss/thehillsfellowship/main
    and that is the one you should be updating - though in fact they are almost identical and it's possible that the method you are using updates them both.
    The feed at http://sermon.net/rss/thehillsfellowship/main is valid and I can't see anything wrong with it. As you say, it can be subscribed to and shows all three episodes: but the Store page (and thus the search results) show only the first episode.
    The Store should have updated by now: it's not unknown for the Store to get stuck and fail to update for several weeks: usually it eventually updates and I have no idea why it does this. It doesn't happen often, but I have seen the occasional complaint.
    However there is another issue which may be relevant: although the date of the latest episode is July 17th, the feed was updated today:
    <lastBuildDate>Mon, 15 Aug 2011 16:11:23 GMT</lastBuildDate>
    <pubDate>Mon, 15 Aug 2011 16:11:23 GMT</pubDate>
    This raises the possibility that there was something wrong with the feed before (hence the failure to update) but that whatever you've done today cleared it. That would indeed result in the three episodes showing on subscribing but not in the Store - it would take a couple of days or so to catch up.
    If that is the case the Store should update in a day or two. If not, then it might update at some future date or it might not: I can't explain that.
    I should at least give it two or three days and see what happens. Check the Store page using the link you gave, not the Search results as these often lag behind.
    If you don't get a result after several days you could try iTunes Support, but I have to tell you that they don't have a good record for helpfulness and the chances are you won't get anywhere with them.  Go to http://www.apple.com/support/itunes/ - click on 'Other iTunes Store Features' in the list and then on 'Podcasts'. You will see a link to either 'Express Lane', which will guide you eventually to some contact options, or you may see a link to email them.

  • Search part not showing all results

    I have a page with a search part that shows Team Sites.  I have 7 Team Sites, so I want those 7 team sites to appear on this page.  However, when I create a Search Query with the SitePath criteria (SitePath:https://MyTestSite.sharepoint.com/teams*),
    only 4 sites are shown in the Test Query and when it actually runs. 
    Why are not all 7 team sites appearing?
    Some additional info:
    I am a member/owner of all the team sites, so security trimming should not be an issue.
    All 7 team sites are searchable by default.
    The 4 team sites that are appearing were created 12+ months ago.
    1 team site that is not appearing was created about 6 months ago.
    2 team sites that are not appearing were created yesterday.
    The search app defaults to 10 items per page, so nothing should be hidden.

    Search on those sites for an item, once you've validated that search works on those sites then try the same query on your search results page.

  • Embedded Google search on our website is not showing results. Windows 8, 64 bit, Firefox 30

    We have Google Search embedded in our website. It was brought to my attention by one of our employees that Firefox is not showing the results of the search after the search button is clicked. The issue seems to be only confined to Firefox. Tested the issue on Internet Explorer 10 and Google Chrome and both are working as expected, showing the results on our results page.
    I am using Windows 8, 64 bit, Firefox 30. The user having the issue is on Windows 7, 64 bit.
    I used the Web console and there were an error message of
    'TypeError: google.search.Search.apiary5337 is not a function'.
    I am not sure this is the root of the issue or not, but why would this work in Chrome and Internet Explorer and not in Firefox?
    If you need to check it, out website is http://www.dmns.org/ . The search box it on the top right of the page. You will see that the page redirects to our '/results?q=searchterm'. We are a science institution so if you type "science" in the search box, you will get redirected to the '/results' page with the query string of 'science' for the search term. But in my case the search results below are blank. If you do the same search if Chrome or IE the results show fine.
    Oh, I do not have any add on installed on Firefox.
    Any suggestions or a fix would be great.
    Thank you.
    Carlos Mosqueda

    Problem SOLVED.
    This is probably still a bug in Firefox. Our Google Search <script> that call the Javascript service from Google was within the Body tag. I moved the Script tag to the head and now it seems to work as expected. In the new Firefox, are <script> tags not allowed within the Body element?

  • When I use the search box I would like results to show up in a "NEW" tab but I can't find this setting anywhere... Any solution???

    When I use the search box I would like results to show up in a "NEW" tab but I can't find this setting anywhere... Any solution???

    '''browser.search.openintab''' userset boolean True
    Also in Google search, upper-right-corner settings
    You can always force opening a link into a tab with Ctrl+click or Ctrl+Shift+click
    If you want the same from a bookmark make sure to set
    : '''browser.tabs.loadBookmarksInBackground''' to same value as you have for
    : '''browser.tabs.loadInBackground'''
    The last setting is controlled by Tools > Options > Tabs >
    :: When I click on a link, switch to it immediately,
    which control the difference between Ctrl+click and Ctrl+Shift+click
    Items in boldface''' can be set in about:config
    * '''More information on configuration variables''' available in [http://kb.mozillazine.org/About:config_entries about:config entries] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config] (How to change).
    Reading:
    * http://dmcritchie.mvps.org/firefox/keyboard.htm
    * http://dmcritchie.mvps.org/firefox/tabs_config.htm

  • Search in Mail doesn't show results after Migrating

    If I search for a word or an adr. in Mail nothing show up. Unless I've just read the mail. Like that newly read email is the only one being searched in ..?
    This happened after moving my user account to a new MacPro with Migration Assistant.
    (first a clean install of 10.7 on a new disk in bay 1 on the "new" MacPro and updating to 10.7.5 - Starting up from the new disk with my "old" HD in bay 2 on the new machine and using Migration Assistant to move all my data over to the new disk in bay 1)
    Same Mac OSX version, but MacPro version from 1.1 to 3.1
    Also Spotlight doesn't show results.
    Is there a way to make a new "search cache" or whatever that overview file is called ...
    Suddenly now, when not getting any search results, I see how much I use search in Mail and Spotlight ... !
    Thanks

    Try posting this in the 10.7 Mail forum. You'll get more help there.
    DALE

  • Search Result is showing Blank Title for some of the doc Files

    Hi,
        I am doing Search on SharePoint 2010 with the search scope set to one of the document library , But the search result is showing different results for different doc files. I can analyse three type of output from the search result:
    1) for some records Title is shown correct.
    2) for some files , Title is shown with keyword "Title:<Actual Title>"
    3) and in some docs its hsowing Just the keyword "Title:" in place of actual title
    I am not able to understand why the result is behaving like this.
    Any assistance will be really appreciable .
    Thanks in advance

    In Central Administration in the Search Service in Managed Properties look for 'Title'. You will see that Title is populated from a number of properties on a document, some properties are given higher priority then others. That could be a clue. 
    Also, what type of document are you crawling a PDF, word document, etc?  For PDFs you have to install a special iFilter and you need to be aware sometimes the properties on the actual PDF in adobe are used.
    I sugest: Try to make sure you give your documents a title in SharePoint and that you rank that property as the #1 property in Central Admin that the Managed property 'Title' uses.

Maybe you are looking for