Search Interface

I am about to pull my hair out one strand at a time.  I am trying desperately to create an advanced recordset. I need this explained to me in the simpliest of terms.  I have a table that has nine columns:  posting title, size, dress condition, dress length, color, city, state, email and additional details. I want visitors to my site to receive results based on whatever keyword they choose to search by.  So for example, they should receive a result whether they type in the name of a city or a color.  How do I filter this?

Ah, I didn't think I was the one giving you the "Request.Querystring" code.
How are you running th e test when you say you test it and get No Data? If it's from the recordset dialog, you won't get results because it is using the default values in each of your variables for the search criteria. You would need to temporarily change the default values to actual search terms to mimic run-time search values.
Also, someone should have mentioned this before, but please take a look at this thread for how to post code in your posts, it makes it much easier to read:   http://forums.adobe.com/thread/427712 
Here's the source from my demo page - but keep in mind that other than the recordset, there are other things that will lead to unsuccessful results including how your search page is set up to other elements on your results page. Have you tried building this using only one or two variables/column? It's usually better to build and test with more limited data to rule out other issues first.
<?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;
$colname_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
$colname2_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname2_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
$colname3_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname3_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
$colname4_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname4_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
$colname5_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname5_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
$colname6_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname6_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
$colname7_rsColors = "-1";
if (isset($_POST['inputColor'])) {
  $colname7_rsColors = (get_magic_quotes_gpc()) ? $_POST['inputColor'] : addslashes($_POST['inputColor']);
mysql_select_db($database_demoConn, $demoConn);
$query_rsColors = sprintf("SELECT * FROM colorTable WHERE color1 LIKE %s OR color2 LIKE %s OR color3 LIKE %s OR color4 LIKE %s OR color5 LIKE %s OR color6 LIKE %s OR color7 LIKE %s", GetSQLValueString("%" . $colname_rsColors . "%", "text"),GetSQLValueString("%" . $colname2_rsColors . "%", "text"),GetSQLValueString("%" . $colname3_rsColors . "%", "text"),GetSQLValueString("%" . $colname4_rsColors . "%", "text"),GetSQLValueString("%" . $colname5_rsColors . "%", "text"),GetSQLValueString("%" . $colname6_rsColors . "%", "text"),GetSQLValueString("%" . $colname7_rsColors . "%", "text"));
$rsColors = mysql_query($query_rsColors, $demoConn) or die(mysql_error());
$row_rsColors = mysql_fetch_assoc($rsColors);
$totalRows_rsColors = mysql_num_rows($rsColors);
?>

Similar Messages

  • Load Search Interfaces in Endeca 3.0

    Hi,
    In version 2.4 we had this nice LoadIndexingConfiguration graph which sets some input attributes to searchable and create different search interfaces based on the input file.
    In version 3.0 this graph is gone and now (as far as I see) the LoadConfiguration graph sets the attributes in the attributemetadata file as searchable and creates 1 search interface 'All' for all these attributes.
    What is the best way to load some additional search interfaces in Endeca Server? I have tried to change 'All' to another name but it simply replaces the 'All' interface with the new one. I also tried to use the 2.4 LoadConfiguration graph but this doesn't work. It loads the search interfaces in Endeca Server but I don't see them in Studio.
    Kind regards,
    Marco

    Marco,
    Keep in mind that all your search interfaces reside in the recsearch_config document in the Dgraph. You can load this document via a Web Service Client in a graph (like the Load Search Interfaces component in the LoadConfiguration graph). You can, for example, write your own set of search interfaces with a text editor (like TextPad) and then load it via the Web Service Client. Similar to this in the Integrator User's Guide:
    http://docs.oracle.com/cd/E39272_01/integrator.300/integrator_users/toc.htm#Configuring%20record%20search
    Two things to keep in mind:
    1. The recsearch_config document that you load completely overwrites the one that is currently in the Dgraph. That is, you can't incrementally add a new search interface. So if you have 2 search interfaces in the Dgraph and want to add a third, you have to load all 3 in the same recsearch_config doc.
    2. In Studio, make sure you configure the new search interface, as documented here:
    http://docs.oracle.com/cd/E39271_01/studio.300/studio_users/toc.htm#Managing%20the%20list%20of%20search%20configurations
    Frank

  • Customizing the Bridge Search Interface

    I've created a custom MetaData Schema and custom FileInfo panel for my CS4 applications.
    Now, I'd like to customize the bridge search interface. Currently, the search interface shows EXIF metadata types as searchable. I'd like to add my own, and remove the EXIF.
    After reading the Adobe Bridge CS4 Javascript Guide, I believe that I can do what I want by creating a whole new script driven search window. It seems like it should be much easier than that to modify the Search interface directly.
    Any suggestions?
    Thanks.

    My suggestion would be to post in the Bridge Scripting forum:
    http://forums.adobe.com/community/bridge/bridge_scripting

  • List of Search Interface.

    Is there any ready made editor that would pull dynamic list of all my Search Interface?.

    I have this issue. I have given my DCs and DHCP servers fixed IPv6 addresses, and every time I enable an IPv6 scope the all get a second IPv6 address from the scope, which is also published do DNS and then the next time I reboot a domain controller there
    is complete confusion.
    My objectives (which I am finding hard to achieve) are:
    - fixed IP addresses for all systems (in IPv4 I use static IPs on servers and DHCP reservations on workstations)
    - I control the gateways. If my official gateways are down I want no connectivity to the Internet, I don't want anything configuring itself.
    CarolChi

  • FireFox displaying Search interface incorrectly

    All- I'm a newbie with RoboHelp. My issue is that an HTML
    Help UI isn't displayed properly in FireFox 3.0.3, but h it DOES
    display properly in IE 6. Just below are links to the the
    upper-left corners of my Help interface when Search is selected. As
    you can see, for IE, a space appears prompting the user for a
    search term. But for FireFox, the prompt doesn't appear. Instead,
    what looks like alphabet letter index tabs appears.
    IE Search area
    ...and here's the way it looks in FireFox 3.0.3
    FireFox
    search area
    Your help is appreciated. Note that I'm using RoboHelp 7.0.2
    Thanks!
    -keuler (snorlax)

    Hi Kurt
    Is JavaScripting disabled in FireFox? WebHelp output relies
    heavily on JavaScripting to weave its magick.
    Cheers... Rick

  • Search Query Help – more than one word

    I have been struggling with this for weeks.  I used Dreamweaver to set up a lot of this and I think it is hindering me as I make changes to the code.
    I have a search interface that takes the input from a user (in the form of text) – searches though the db to match words – then return the results based on how many times the input is located in the db.
    I have this working very good for a single word input.  If you search for one word only – it works great.  But, if you try to input two words together – it returns no results.
    I have tried several different things to get this to work – like exploding the input then searching the db for each word in order.  The problems I get, I think, is that this conflicts with the code Dreamweaver wrote – I think where the code requests the value string.  But, each time I think I find a fix for one error – it creates several others – not just in the php code above the header – but in the php code in the body when I try to retrieve the results.
    It seems that I am just going around in circles.  But, there has to be simple way to search for more than one word in the db – count the matches – add the matches from each search together – then return the results ordered by the largest number of matches.
    I have even tried using a foreach statement – but received errors that I have never seen before.  Then after researching and trying to fix those errors – just received more and more errors.
    Please help.  If it cannot be done given the code I have – then please point me in the right direction to rewrite the code.
    Code is attached.

    Based on what you explained as your requirements, it is very easy. I'll just speak in psuedo-code.  You will need to parse the input into seperate words. If there can be an unknown number of words you can store those in a string array.
    Then just use the array to build your where clause using the IN predicate or using the = and OR operators.
    Select count(*), keyword
    where keyword in (term[0], term[1], etc)
    group by keyword
    order by count(*) desc
    If this is not what you meant, then you will need to explain your requirements in more detail. As you have discovered, once your requirements exceep the capabilities of DW's behaviors, you will need to become very familar with sql and your server side scripting language. If you don't understand what the DW code is doing (as evidenced by your comments in the attachment), then you really are not ready to start modifying it.

  • How to perform a classic Mac OS search in Tiger

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    In an this post I will describe how to perform a classic Mac OS search and give example results. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard.
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    For testing I created these files
    For testing I created a test "z-find" folder on my Macintosh-HD, containing files and folders with various attributes, then copied it over to my Spotless flash drive. This means both searches searched for the same file names.
    I put these files on my Macintosh-HD and Spotless partitions.
    Here is the list of files:
    !http://farm3.static.flickr.com/2122/3746333451_36daa677f8.jpg?v=0!
    Here is the list of files again:
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
        bash-backup-inside-bash.html
        ping_command_as_Give.html
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
        bash-backup-inside-bash-copy.html
        ping_command-bash-copy.html
    bash-copy-invisible-attr/
        ping_command_as_Give.html
    bash-folder__green/
        ping_command_as_Give.html
    Perform the Classic Mac OS search with a Spotlight database.
    {color:red}By Classic Mac OS search I mean a search on the filename and the results shown in list format.{color} How do you get to this interface?
    *Click on the Desktop to access the Finder.*
    *Click on File then click on Find. (Command-F)*
    Pick what folder you wished to search. With Tiger you can click on Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    {color:purple}The "Search for" field on the first line is used for spotlight. Avoid using this box.{color}
    *Click on the double arrow to the right of the first option (Kind). Go down to the name field.*
    *Change the 2nd pop down field to Contains.*
    *You can now search for the contents of a filename.* I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window (list view). There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    This is the result of the search with a Spotlight database:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I did a successful search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search without the Spotlight databases:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for field seems to give the same result as using the name field.
    Related tips:
    • More hints by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    •Spotlight in Leopard has been enhanced. See these articles for details:
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -exec ls -dF {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find". The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r <volume> <name> "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input: grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    Robert
    This is the 1st version of this tip. It was submitted on July 31,2009 by rccharles.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    In an this post I will describe how to perform a classic Mac OS search and give example results. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger. I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard.
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    For testing I created these files
    For testing I created a test "z-find" folder on my Macintosh-HD, containing files and folders with various attributes, then copied it over to my Spotless flash drive. This means both searches searched for the same file names.
    I put these files on my Macintosh-HD and Spotless partitions.
    Here is the list of files:
    !http://farm3.static.flickr.com/2122/3746333451_36daa677f8.jpg?v=0!
    Here is the list of files again:
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
        bash-backup-inside-bash.html
        ping_command_as_Give.html
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
        bash-backup-inside-bash-copy.html
        ping_command-bash-copy.html
    bash-copy-invisible-attr/
        ping_command_as_Give.html
    bash-folder__green/
        ping_command_as_Give.html
    Perform the Classic Mac OS search with a Spotlight database.
    {color:red}By Classic Mac OS search I mean a search on the filename and the results shown in list format.{color} How do you get to this interface?
    *Click on the Desktop to access the Finder.*
    *Click on File then click on Find. (Command-F)*
    Pick what folder you wished to search. With Tiger you can click on Others... to select a folder. Click on the plus sign to select the folder you wish to search. Be sure the selected folder in the list is the only one checked. In the first example I picked: /Users/mac/Desktop/iMac/z-find/
    {color:purple}The "Search for" field on the first line is used for spotlight. Avoid using this box.{color}
    *Click on the double arrow to the right of the first option (Kind). Go down to the name field.*
    *Change the 2nd pop down field to Contains.*
    *You can now search for the contents of a filename.* I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window (list view). There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    This is the result of the search with a Spotlight database:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel. Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I did a successful search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search without the Spotlight databases:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery_yellow_4k.html    {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for field seems to give the same result as using the name field.
    Related tips:
    • More hints by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    •Spotlight in Leopard has been enhanced. See these articles for details:
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -exec ls -dF {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find". The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r <volume> <name> "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing "bash-" in the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input: grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery_yellow_4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    Robert
    This is the 1st version of this tip. It was submitted on July 31,2009 by rccharles.
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • ATG 10.1.2, Endeca guided search: Implementing search field

    My team is working on implementing an application with ATG Commerce 10.1.2 and Endeca Guided Search 3.1.1, but no Endeca Experience Manager.
    We understand that in a keyword search HTTP request that gets sent from ATG to Endeca, the following URI parameters must be present:
    Ntt = Search keywords
    Ntx = Match mode
    Ntk = The search interface
    Is there an ATG OOTB (out-of-the-box) component or mechanism for generating keyword search requests to Endeca guided search?
    Or do we need to build the URI for the request from ATG to Endeca guided search with custom code?
    Thanks!
    -Jon

    If you would have been using the experience manager then you could have created/used cartidge for search box and inserted in your pages as below to show search textbox. here (/content/Shared/Global Search Configuration/Search Box) is path where Search Box cartidge is located in experience manager (you can refer CRS10.1.2 for it)
    <dsp:droplet name="InvokeAssembler">
    <dsp:param name="contentCollection"
    value="/content/Shared/Global Search Configuration/Search Box"/>
    <dsp:oparam name="output">
    <dsp:getvalueof var="searchBox"
    vartype="com.endeca.infront.assembler.ContentItem"
    param="contentItem" />
    <dsp:renderContentItem contentItem="${searchBox}" />
    </dsp:oparam>
    </dsp:droplet>
    but now since you are not using the experience manager and cartidges you would need to have something below like code to show text search box to query endeca
    <dsp:page>
    <dsp:importbean bean="/OriginatingRequest" var="originatingRequest"/>
    <dsp:importbean bean="/atg/multisite/Site" var="currentSite"/>
    <dsp:importbean bean="/atg/endeca/assembler/SearchFormHandler"/>
    <dsp:getvalueof var="contextPath" vartype="java.lang.String" value="${originatingRequest.contextPath}"/>
    <dsp:form action="${contextPath}/browse" id="searchForm" >
    <input type="hidden" name="Nty" value="${Nty}"/>
    <input name="Ntt" value="${searchText}" type="text" />
    <dsp:input type="hidden" value="${currentSite.id}" bean="SearchFormHandler.siteIds"/>
    <dsp:input type="submit" bean="SearchFormHandler.search" value="submit" />
    </dsp:form>
    </dsp:page>

  • Windows Search 4.0 and Adobe Reader 9.2

    I've a small search utility that uses Windows Search 4.0 as the search engine. My utility queries Windows Search and retrieves the results. I've a few PDF files as well to search. I'm able to search a few of these PDFs using the my utility and some of the PDFs are never returned in the search results, although, I copy a phrase in that PDF and search. Search fails when I try from Windows Search interface as well.
    As I understand, the IFilter is bundled with the Adobe Reader package from AR 8.0. So, I've not installed it separately. The strange thing some PDFs are searchable and some or not. Am not sure as what could be the issue here . Anyone else have faced this issue? Am not sure what to look for to resolve this issue?

    I have just encountered the same problem. I am using the HTC Titan phone by Sprint with WM6 and Adobe Reader LE 2.0. I am only interested in internal document links (jumps to other pages). I tried two PDFs which work fine on the PC under Reader 7.0 but don't work on the HTC. I even tried setting the conversion option on ActiveSync to OFF.
    At this time, even Foxit Reader doesn't support internal links. I wonder if LE worked fine under WM5?
    Please help me resolve this one. Thank you,
    Bob

  • WHAT now with OSX search function?

    Okay, i just searched one of my hard drives for pdf files, and search returns 0 files.
    HOW can this be!? I would use profanity here because it's plainly warranted, but Apple doesn't like that. I think from now on, i'll use the term "OS X" as a substitute for profanity.
    So, I am looking at several pdf files in an OS X folder on this OSX drive, and i know there are more.
    So what the OS X is going on? Thanks.

    You should use spotlight to stop indexing an an hd.  Spotlight puts a file on the hd that says do not index.   I wrote this up awhile ago.
    In an this post I will describe how to perform a classic Mac OS search. You may perform the search with or without the spotlight database. This search falls under the smart folder implementation introduced with Tiger.  I have done all my testing with Mac OS 10.4.11. I assume this will work with any version of Tiger or Leopard. 
    The results will be slightly different with a spotlight database on the partition and without a database on the partition. With a database, you will not see Unix hidden files. You may be able to use all of the spotlight special find features. I did not test much with the spotlight special fields. Without a database, using the special features nulls out the search and the "Search for" field seems to give the same result as using the name field.
    This search technique was obscured by all the hoopla over spotlight. Authors of Tiger books avoided mentioning the Classic search interface. When I looked in Leopard books I noticed some authors put back information on the Classic search interface.
    How do you get to this interface?
    Perform the Classic Mac OS search with a Spotlight database.
    Click on the desktop to access the Finder.
    click on File then click on find.
    Pick what folder you wished to search.  Click on Others... to select a folder. Click on the plus sign to select the folder you wish to search.  Be sure the selected folder in the list is the only one checked.  In the first example I picked:  /Users/mac/Desktop/iMac/z-find/
    The "Search for" field on the first line is used for spotlight. Avoid using this box.
    Click on the plus symbol to the right of an input options. Click on the double arrow to the right of the first option. Go down to the name field.
    You can now search for the contents of a filename. I searched for name contains: bash-
    To see the Classic display format, click on the three line icon which is located on the upper left of the window.  There is a small refresh icon on the lower right of the window.
    !http://farm4.static.flickr.com/3485/3240587496_741476de7b.jpg?v=0!
    I created the z-find folder on my Macintosh-HD then copy it over to my Spotless flash drive.  This means both searches searched for it the same file names.  See below for the list of file names.
    This is the result of the search:
    bash-backup-copy-invisible-attr.html
    bash-backup-inside-bash-copy.html
    bash-backup-inside-bash.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html     {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-copy-invisible-attr    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    You can create a smart folder to take you directly to the search panel.  Just click on the Save icon to the right of the window near the top. For readers of books, you should look under smart folders.
    !http://farm4.static.flickr.com/3498/3239759755_d5ebbefe05.jpg?v=0!
    There are some downsides. Initially, the search will find both visible and invisible Mac OS files. However, the search seems to get confused between visible and invisible files when you select the visibility option. It seems to get the visible correct when you use visible but when you add invisible things get confused. Sometimes it will find invisible files and sometimes it won't. I used both the Unix invisible files and the Mac OS X visiblity attribute.
    In putting the same search in the upper right-hand-corner spotlight search and in the Search for field, I did not get the same results. The spotlight search returned a 182 items while the with Search for field returned 179 items. The Search for field seemed to miss items in the mail boxes. With the Search for search you could display spotlight results in the classic format.
    I do not know how this works internally. I successfully a search on my fat32 flash drive.
    Perform the Classic Mac OS search without the spotlight database.
    If you turn off spotlight indexing on a volume and delete the spotlight index, then Mac OS Tiger reverts to the prior Mac OS search facility. In the preferences for spotlight, you let searching continued on the partition.
    Here is what I did:
    I installed the spotless application.
    http://www.fixamac.net/software/spot/
    I use spotless to configure spotlight. Click on disabled indexing then click on  delete index files.
    !http://farm4.static.flickr.com/3527/3239751839_c760c46628.jpg?v=0!
    Spotless creates the .Spotlight-V100 directory with the _IndexPolicy.plist and _rules.plist to prevent indexing on the partition.
    mac $ pwd
    /Volumes/Spotless
    mac $ ls -ld .Spotlight-V100
    drwx------   4 mac  staff  136 Jan 22 23:51 .Spotlight-V100
    mac $ ls -l .Spotlight-V100
    total 16
    -rw-------   1 mac  staff  55 Jan 22 23:51 _IndexPolicy.plist
    -rw-------   1 mac  staff  58 Jan 22 23:51 _rules.plist
    _IndexPolicy.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Policy</key>
        <integer>3</integer>
    </dict>
    </plist>
    _rules.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>Spot_Auto</key>
        <integer>1</integer>
    </dict>
    </plist>
    I put these files on my Macintosh-HD and Spotless partitions.
    !http://farm4.static.flickr.com/3363/3219766624_63687ff9a7.jpg?v=0!
    Here is the list of files:
    mac $ pwd
    /Volumes/Spotless/iMac/z-find
    mac $ ls -RaF
    .DS_Store
    .bash-backup-copy-initial-dot-copy.html
    .bash-copy-initial-dot/
    bash-backup-copy-invisible-attr.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html
    bash-copy/
    bash-copy-invisible-attr/
    bash-folder__green/
    ./.bash-copy-initial-dot:
    .DS_Store
    bash-backup-inside-bash.html
    ping_command_as_Give.html
    ./bash-copy:
    .DS_Store
    bash-backup-inside-bash-copy.html
    ping_command-bash-copy.html
    ./bash-copy-invisible-attr:
    .DS_Store
    ping_command_as_Give.html
    ./bash-folder__green:
    .DS_Store
    ping_command_as_Give.html
    mac $
    I performed the search for files containing "bash-" in the name field.
    !http://farm4.static.flickr.com/3430/3240587902_171d8d46c3.jpg?v=0!
    This is the result of the search:
    bash-backup-inside-bash-copy.html
    bash-backup.html
    bash-batChmod.html
    bash-battery__yellow__4k.html     {labeled with the Yellow attribute}
    bash-copy    {folder}
    bash-folder__green    {folder and labeled with the Green attribute}
    ping_command-bash-copy.html
    Limitations:
    Does not search in Unix hidden folders. That is folders beginning with a period (.) .
    Sometimes will find files beginning with a period (.).
    Does not find Mac OS invisible files.
    Using the special features nulls out the search.
    The Search for  field seems to give the same result as using the name field.
    Related tips:
    • by Baltwo
    http://www.macosxhints.com/article.php?story=20050501162147222
    If you haven't run Leopard, note that finding stuff is different than Tiger's.
    See http://www.pinkmutant.com/articles/Leopard/leospot.html and my mod to Finder's Find at http://discussions.apple.com/message.jspa?messageID=6725932 for what you can change so you can find stuff excluded by the default structure.
    • "Searching for files by name"
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    Alternatives:
    • FindAnyFile
    "Contrary to Spotlight, it does not use a database but instead uses the file system driver's fast search operations."
    http://apps.tempel.org/FindAnyFile/index.html
    • Use the Terminal find command to list files from multiple directories.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find  -iname "*bash-*"  -exec ls -dF  {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery__yellow__4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr/
    /Users/mac/Desktop/iMac/z-find/bash-folder__green/
    mac $
    • findfile
    "Here’s a simple command-line tool which uses FSCatalogSearch to search for files by name.
    usage: findfile -r   "
    Here is where to find: findfile.
    http://cocoacafe.wordpress.com/2007/06/17/fscatalogsearch/
    I am searching file names containing  "bash-" in  the directory "/Users/mac/Desktop/iMac/z-find".
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ ~/findfile -r /Volumes/Macintosh-HD/ "bash-" |\
    additional input:    grep '^/Users/mac/Desktop/iMac/z-find/'
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-batChmod.html
    /Users/mac/Desktop/iMac/z-find/bash-battery__yellow__4k.html
    /Users/mac/Desktop/iMac/z-find/bash-copy
    /Users/mac/Desktop/iMac/z-find/bash-copy-invisible-attr
    /Users/mac/Desktop/iMac/z-find/bash-folder__green
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/ping_command-bash-copy.html
    • You can use the Terminal to search the contents of a file.
    You need to combine the find command with the grep command. I am searching for the word pdisk where file names containing  "bash-" in  the directory "/Users/mac/Desktop/iMac/z-find".  The symbols {} \; are needed after the word to search. See:
    man find
    man grep
    for cryptic details.
    Macintosh-HD -> Applications -> Utilities -> Terminal
    mac $ find ~/Desktop/iMac/z-find -iname "*bash-*" -type f -exec grep -bil 'pdisk' {} \;
    /Users/mac/Desktop/iMac/z-find/.bash-backup-copy-initial-dot-copy.html
    /Users/mac/Desktop/iMac/z-find/.bash-copy-initial-dot/bash-backup-inside-bash.ht ml
    /Users/mac/Desktop/iMac/z-find/bash-backup-copy-invisible-attr.html
    /Users/mac/Desktop/iMac/z-find/bash-backup.html
    /Users/mac/Desktop/iMac/z-find/bash-copy/bash-backup-inside-bash-copy.html
    Robert

  • Folder option in KM search Iview

    Hi All,
    I am using KM search Iview, when I click on "Show Options" link in the header, it is showing many option like " Search Scope", "Display Results',"Filter by Properties", and ect..
    Now I wanted to customize this search options, for this I choose "Search option set" under "Configuration-> Content Management -> User Interface -> Search ". I can manage to customize the screen to some extent. like enable / disable the properties etc....
    Now, I have a problem.... I need to remove the radio button and option for " Folders (and Subfolders)" which have a radio button infront of it,a text area after the name and a browse button.
    I dont want this option in "search scope" at all. I need only one option with Indexes. I tried giving default search as INDEX but still the folder option appears. What I need to remove the FOLDER option totall.
    Any Idea? Also If I want to change the text or removing input boxes under a category like               "Filter by Properties" what I need to do? where I need to make the changes.
    Please let me know the solution.
    1) remove the folder / browser option from "search scope" category.
    2) remove / add new fields under "Filter by Properties" category.
    thanks in advance.
    PradeeP

    Hi Pradeep
    1)
    The search from folders can only be customized using the parameter I mentioned. And this parameter needs to be added in the search iview, you are using - not the search option set, nor the search component set.
    2.1)
    See http://help.sap.com/saphelp_nw70/helpdata/EN/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm for a thorough description of how to use the Search Options Set. You will have to enter the predefined properties specifically in the search options set in order to give the end user the possibility to filter by these values.
    2.2)
    If you want to translate some of the labels from the Search Interface (headings for search components, labels for buttons, etc), you will have to edit the .properties-file I mentioned (and perhaps others).
    If you want to change the labels from your predefined properties, you should do it through this: http://help.sap.com/saphelp_nw70/helpdata/EN/65/6fc63ed4027f6be10000000a114084/frameset.htm
    3)
    If you could not remove the links for the Administrator then this might be caused by the fact that the administrator is using a different layoutset than the one, you configured.
    If you want to change "size of file, view html links below the individual results / documents", you should go to your search result layout set > collection renderer > displayed properties (single entry in the collection renderer). See documentation here: http://help.sap.com/saphelp_nw70/helpdata/EN/87/3d48475ee8bd448c4031aa98d90524/frameset.htm
    Unfortunately I dont have the time to make a step by step guide for you, but I believe I have answered your questions.
    Best regards,
    Martin Søgaard

  • I need SEARCH capability for my website

    OK, I've got a small site (10 pages) built with basic html
    pages in Dreamwever. I need SITE SEARCH capability, but I'm really
    not sure where to begin. I know this, having a search box with
    Google branded on it would not be cool. I need a custom look to the
    search interface. The remote ISP has PHP and MySQL. I also have
    ColdFusion, but I don't want to pay the extra fee charged by the
    Host to use it. Can someone tell me where I can get basic tutoring
    online to help me better understand the basics of dynamic sites
    Thanks.

    See if this helps:
    http://www.projectseven.com/tutorials/accessibility/zoomlearn/index.htm
    Ken Ford
    Adobe Community Expert - Dreamweaver
    Fordwebs, LLC
    http://www.fordwebs.com
    "paulkirtley" <[email protected]> wrote in
    message
    news:ftrt7j$dim$[email protected]..
    > OK, I've got a small site (10 pages) built with basic
    html pages in
    > Dreamwever.
    > I need SITE SEARCH capability, but I'm really not sure
    where to begin. I
    > know
    > this, having a search box with Google branded on it
    would not be cool. I
    > need
    > a custom look to the search interface. The remote ISP
    has PHP and MySQL. I
    > also
    > have ColdFusion, but I don't want to pay the extra fee
    charged by the Host
    > to
    > use it. Can someone tell me where I can get basic
    tutoring online to help
    > me
    > better understand the basics of dynamic sites Thanks.
    >

  • Complex request with range filter and boolean search

    Hi
    I need a build and maintain complex requests to Oracle Endeca Server. These requests could include different types of attributes: string, datetime, int.
    For string attributes I have created a search interface and use boolean search. For datetime attributes I use a range filter. Separately it works as I expected, but it fails with combined search with range filter and boolean search in a single request. As I see from results range filter is completely ignored. What could be wrong with following request?
    <?xml version="1.0" ?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns3:Request xmlns:ns2="http://www.endeca.com/MDEX/lql_parser/types" xmlns:ns3="http://www.endeca.com/MDEX/conversation/1/0">
    <ns3:State/>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:RecordFilterOperator">
    <ns3:RecordFilter Name="OnlyData">AND(NOT(mdex-property_Key),NOT(mdex-dimension_Key),NOT(mdex-config_Key),NOT(mdex-precedenceRule_Key),NOT(system-group_Key),NOT(system-group-membership_Key))</ns3:RecordFilter>
    </ns3:Operator>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:SortOperator" Direction="Descending" Key="string_prop" OwnerId="Records"/>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:RangeFilterOperator">
    <ns3:RangeFilter AttributeName="dateTime_prop">
    <ns3:LowerBound Inclusive="true">2012-07-24T19:47:01Z</ns3:LowerBound>
    </ns3:RangeFilter>
    </ns3:Operator>
    <ns3:Operator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:SearchOperator">
    <ns3:SearchFilter SnippetLength="20" EnableSnippeting="true" Mode="Boolean" Key="orderSearch">multiple_prop : one</ns3:SearchFilter>
    </ns3:Operator>
    <ns3:ContentElementConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns3:RecordListConfig" HandlerFunction="RecordListHandler" HandlerNamespace="http://www.endeca.com/MDEX/conversation/1/0" Id="Records">
    <ns3:RecordsPerPage>3</ns3:RecordsPerPage>
    </ns3:ContentElementConfig>
    </ns3:Request>
    </S:Body>
    </S:Envelope>
    If my approach is incorrect could you provide me a a better way to handle such requests?
    Regards,
    Eugene.

    Hi Eugene,
    As you know, this issue has been discussed further, so I am posting here the summary of the findings, with the hope that this summary will benefit the Endeca Server user community at large.
    * Boolean search only works with range filters for the AND operator. The documentation link above confirms this.
    *Because of this restriction, you need to build another query that would achieve the same result. Both options are equally good and would achieve the results you need. Two suggestions that we've received were:
    - Option 1. You could perform the key restriction of the search via a restrictive search interface rather than using the boolean match mode. This would involve creating a search interface for each field and then querying against the search interface for the field in question:
    <Operator xmlns="http://www.endeca.com/MDEX/lql_parser/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="SearchOperator">
    <SearchFilter SnippetLength="20" EnableSnippeting="true" Mode="All" Key="orderSearch_for_field_multiple_prop">one</SearchFilter>
    </Operator>
    For this option, you would have to create a search interface for each attribute, using the Config Web Service. Here is the topic about loading config documents into the Endeca Server:http://docs.oracle.com/cd/E29805_01/server.230/es_dev/toc.htm#Loading%20configuration%20documents
    - Option 2
    * You could implement the range filter through EQL row expression syntax instead and pass it in via the DataSourceFilterOperator, which acts as a prefilter on all other query logic, using the Conversation Web Service. Thus you might include:
    <Operator xmlns="http://www.endeca.com/MDEX/lql_parser/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="DataSourceFilterOperator">
    <DataSourceFilterString>dateTime_prop <= TO_DATETIME('2012-07-24T19:47:01Z')</DataSourceFilterString>
    </Operator>
    For this option, using the DataSourceFilter does not require you to model the rest of the query in EQL. It will perform slightly better than the filter in option 1 because of the order in which record set intersections are computed, but the difference is likely to be very small.
    Finally, if this addresses your question, please mark this question as answered, so that others can benefit from it on the forum. Big thanks to Endeca Server development team (you know who you are!), for helping to find solutions for this request.
    Julia
    Edited by: JuliaM on Aug 30, 2012 2:05 PM
    Edited by: JuliaM on Aug 30, 2012 2:06 PM

  • Federated search - specifying the service configuration page

    I've built an interface (web service) to the Portal federated search specification so users can search libraries in our company's document management system (Panagon).
    I want to specify an administration page, where an administrator can set a property which is the name of the library to be searched by an instance of the federated search web service. To do this, I've set a valid URL for the Service Configuration URL parameter when I configure the web service.
    However, when I try to administer the Federated Search object corresponding to the web service, then I get the following message, even if the admin page has been built to just print a "Hello World" message:
    <i>The Server Configuration Interface for this Outgoing Federated Search is unavailable. Check the URL configuration in the Web Service associated with this object.</i>
    If I use the Administration Configuration URL, then I'm creating a rod for my own back, as we have 20 + libraries which we want to incorporate into the federated search interface. Each one of these would then have it's own entry in the "Select Utility" drop down box.
    Has anyone successfully used the service configuration page option?
    Thanks for any advice you can offer,
    Charles

    I've used SCI elsewhere, but never in Federated Search. The best way to test SCI is to download the Service Station from http://portal.plumtree.com. That can show you the entire SOAP trace so you can see exactly what's going on.
    HTH,
    Chris Bucchere | bdg | [email protected] | http://www.bdg-online.com

  • Error in search help AEN_TREX_SIMPLE and AEN_TREX_ADVANCED

    Hi.
    i've created and activated the index for business object ECM in SES_ADMIN.
    It was fully indexed.
    When i search on TREX side it seems that the index is okay.
    But when i try to search in CC03 with the TREX search help i get no results from TREX.
    The report COM_SE_SEARCH_TEST shows me results, but the report COM_SE_SEARCH_TEST
    show me nothing.
    Am i missing something ?
    Thanks.
    Sebastian

    The difference is that the test program COM_SE_SEARCH_IIF_TEST uses the official SES search interface method CL_COM_SE_SEARCH_IIF=>SEARCH_OBJECTS, whereas the test program COM_SE_SEARCH_TEST directly accesses the native TREX search interface, function module TREX_EXT_SEARCH_DOCUMENTS (which you are not allowed to use in customer development).
    Therefore COM_SE_SEARCH_TEST does not include the authorization check, whereas
    CL_COM_SE_SEARCH_IIF=>SEARCH_OBJECTS passes the raw search result from TREX to the object-specific authorization check routine. This check routine has to be implemented by the responsible application using interface method IF_COM_SE_BUSOBJ~CHECK_AUTHORIZATION.
    The implementing class can be found/set in customizing:
    Transaction SES_ADMIN, menu path: Goto -> Customizing -> Business Objects and Indexes
    On the screen "Display View ..." double-click in the tree to the left on: Settings for Business Objects
    So I guess:
    - either the obect-specific implementation of ~CHECK_AUTHORIZATION is erroneous
    - or the logon user is just not authorized
    For more and general information you should check the SAP notes
    1254901 - SES for customer projects on TREX search
    1345777 - FAQs Search Engine Service (SES)
    Enjoy! - Klaus

Maybe you are looking for

  • Mnadrake8.0 and Oracle 8.1.6 works with 6 simple steps

    I have searched through countless posts to get throught the install and have come to three simple steps to get running: 1) Load Mandrake 8.0 out of the box. 2) Update the glib-c libs through the mandrake web site http://www.linux-mandrake.com/en/secu

  • Speakerphone doesn't work post iOS7 upgrade.

    Speakerphone doesn't work, I can't hear anyone when I put them on speakerphone or when i try to listen to voicemail on speakerphone.  This happened post iOS7 upgrade.  Any idea?

  • No Horizontal Scroll Bar in Zoomed Preview pdf

    When I zoom into a pdf in Preview, I don't get a horizontal scroll bar so can't move around to offscreen parts of the document.  Anyone else experiencing this or know a solution? 

  • KDEmod 4.1: Few queries

    Just a few normal queries in KDEmod 4.1 1) How do i change Startup & shutdown sound? 2) I currently use ppp demon to dial my BSNL broadband connection, for which i have use sudo. how to i make it password less?. that is a normal user could dial the n

  • Sales Pricing without Inquiry using detailed Cost element Planning

    Deal All, I need to use use Sales Pricing without Customer Inquiry to Genrate Quatation from Project. In my project client is asking to use deatiles cost element planning for same. So, let me know Weather its possible to use Detailed cost element pla