CFSEARCH and "-"

Hello,
I have a verity collection that is populated by product
descriptions. I use CFSEARCH to search this collection and it
normally works very well. However, when a search term with a dash
in it (-) is entered, it can't find the item. For example:
If I search for "French-Milled", the item French-Milled
Facial Soap does not show up in the results. Is this a problem with
verity/cfsearch or am I doing something wrong?
Thanks!
Christine

Four search types. The only ones I know of are Simple and
Explicit, or
are you referring to something else.
Ian Skinner wrote:
> If I search for "French-Milled", the item French-Milled
Facial Soap does
> not show up in the results. Is this a problem with
verity/cfsearch or
> am I doing something wrong?
>
>
> Check out the search TYPE you are employing, there are
four types
> available to CF's included Verity. What maybe happening
is that the
> search type you are using is interpreting the dash as a
NOT operative.
> I.E. it is parsing the search request as "FRENCH" and
NOT "MILLED".
> Which of course "French-Milled Facial Soap" would fail.
Don Vaillancourt
Director of Software Development
WEB IMPACT INC.
phone: 416-815-2000 ext. 245
fax: 416-815-2001
toll free: 866-319-1573 ext. 245
email: [email protected] <mailto:[email protected]>
blackberry: [email protected]
<mailto:[email protected]>
web:
http://www.web-impact.com
address:
http://maps.google.com
<
http://maps.google.com/maps?f=q&hl=en&q=99+atlantic+ave,+toronto&ie=UTF8&z=15&ll=43.640765 ,-79.420767&spn=0.013448,0.04343&om=1&iwloc=addr>
This email message is intended only for the addressee(s) and
contains
information that may be confidential and/or copyright.
If you are not the intended recipient please notify the
sender by reply
email and immediately delete this email.
Use, disclosure or reproduction of this email by anyone other
than the
intended recipient(s) is strictly prohibited. No
representation is made
that this email or any attachments are free of viruses. Virus
scanning
is recommended and is the responsibility of the recipient.

Similar Messages

  • Cfsearch, working with files and data

    I am using cfsearch and was wondering how I can search on 2 fields, ie the file itself and a custom field?
    so criteria="*#searchText#* OR CF_CUSTOM1 = *#searchText#*", but that is not working...so need help
    If I use : criteria="*#searchText#*"  it will search through the file fine, but I need to also get a custom field into the search
    Thanks,
    Darrin

    Traditionally reading from and writing to is using URL to read and URL to POST data to
    the webserver for writing.
    If you want to read/write to local filesystem you have to sign the applet or set up a policy
    for it.
    Does Allpermission to all code help (add that to THE java.policy in the "grant {" section)?
    Because if that didn't help it's not the sandbox security that causes the exception.
    Don't think you should add a keystore to THE java.policy (in the lib/security dir). Never
    seen a SUN example do that.
    Did you add the location of your policy ifle to your java.security?
    Signing applets:
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post and last post for the java class file
    http://forum.java.sun.com/thread.jsp?forum=63&thread=409341
    4th post explaining how to set up your own policy with your own keystore

  • Use cfsearch query to query database

    Does anyone have an example of using a cfsearch to return all columns in a database. I've been using cfsearch and it seems that I am limited to the Summary attribute. I am not having any luck finding a tutorial on this subject and the Ben Forta books don't have a good example.
    Please Help. Thank you

    I though you could reference the (Table_ID field) from the cfsearch.criteria results located in the (cfcollection KEY) and use that to query the db. Is that not possible?
    Thank you for taking the time to respond to my post.

  • Control the output order of a CFSearch

    What is the proper procedure to take the return from a CFSearch and set the order based on one of the fields to be displayed in numerical, alphabetical, whatever?
    I understand how to use the result of the CFSearch to index into another source but that's one record at a time.  I want to re-order the cfsearch output to be in a defined order rather than the returned order based on ranking if I understand the process correctly.
    What to do?

    Basically we want to search a large inventory database and the client would like the output in an Alpha format.  I figured that the verity search would be the easiest way to parse through the data as well as allow for using wildcard chars.
    Ah right.  I probably would not use Verity to do that.  I'd use your DB's free-text search capabilities for this sort of thing, and do the work on the DB rather than getting Verity to drag it all out, then use CF to re-order it.
    I can get what I want except that I don't quite understand how to take the cfsearch return and then re-sort the data.
    This has been covered in previous responses: query on query will effect this.  However I don't think Verity & QoQ is the best approach to the requirement, now that I better understand what the requirement is.
    Adam

  • Odd QoQ issue when querying Solr collection

    Hello, everyone.
    I've got a query of query issue that has me stumped.  Maybe I'm just missing something very simple, but this has got me really confuzzed.
    I have a Solr collection that is indexing a few tables in an Oracle database.  Let's call it "hdq", for this discussion.
    I wrote a semi-complex query of related tables from which the CFINDEX is using to index the data.  This is working just fine.
    I created the Solr collection in the CF9 CFAdmin, and am using the following to index with:
    <cfindex action="refresh" collection="hdq" key="QUESTION_ID" type="custom" title="QUESTION_TITLE" query="search_questions" body="QUESTION_TX,QUESTION_TITLE,CATEGORY_NM,TAG_NM,ANSWER_TITLE,ANSWER_TX"
        custom1="QUESTION_STATUS" custom2="TAG_NM" custom3="QUESTION_STATUS" custom4="QUESTION_TYPE" category="CATEGORY_NM">
    Then I do a CFSEARCH and name it "hd_questions".  Again, so far, so good, no problems.
    If I do a CFDUMP of "hd_questions", one of the columns is KEY (which is QUESTION_ID in the database.)  If I CFOUTPUT the collection, KEY is there.
    If I QoQ the CFSEARCH of the collection and use SELECT custom3, score, summary, context, key FROM hd_questions, I get an error message that
    Encountered "key. Incorrect Select List, Incorrect select column,
    .. then it gives the line number of the page that produced the error, and
    <cfquery dbtype="query" name="hd_results">
    Am I missing something simple, here?  KEY is in the collection, I can see it in CFDUMP, I can see it in CFOUTPUT.  But if I query the collection and try to select KEY, there is an error.
    Any thoughts/ideas?
    Thank you,
    ^_^

    Key is a reserved word in Coldfusion, so can't be used directly in a QoQ without escaping it.  Try wrapping it in [ ] instead, i.e. [key]
    It may also help to give it an alias too, e.g. SELECT [key] AS someKey
    See the list of reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec173d0-7f ff.html and the QoQ guide to using reserved words here: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec0e4fd -7ff0.html#WSc3ff6d0ea77859461172e0811cbec22c24-7008

  • CF8 Verity "The collection you specified does not exist or is not registered with the ColdFusion Search Service."

    I'm running ColdFusion 8 Enterprise on linux. I'm able to
    create collections and index them through cfadmin as well as in cfm
    application pages, but when trying to search I get the error
    &quot;The collection you specified does not exist or is not
    registered with the ColdFusion Search Service.&quot;
    I'm using the collection name in cfsearch and not the full
    path.

    Would I have been better off posting this in the General
    Discussion section? Could the moderators move it if so,
    please?

  • Verity Search for Special Character

    I am using simple search in CFSEARCH and need to find a word
    like "@Google". CFSearch always ignores the @ sign and find all the
    documents with word "Google". I only want it to match the word
    where there is a @ in front of Google.
    Anyway to do that? I have tried the backslash and it didn't
    work.
    Thanks,
    Brian

    Have you tried using EXPLICIT or INTERNET query types rather
    than SIMPLE?

  • Search works for a while then goes on error

    Hi. I am using CFSearch and loving it.
    But, after a few hours of working fine it goes on error with
    the following message:
    There was a problem executing the CFSearch tag with the
    following collections. Collection (status code): [MyCollection]
    (-1706)
    Has anyone else experienced this?
    Matt

    Someone else in the forums experienced a similar problem.
    Their solution was to bounce the service. Not a perfect solution,
    but one that works.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=1&catid=3&threadid=12 79952&enterthread=y

  • Problems with Verity under ColdFusion MX 6.1

    Hi,
    I am having problems with Verity collection under ColdFusion
    MX 6.1. I do a query and then try to index the results of that
    query using the CFINDEX tag:
    <cfquery name="qryContent"
    datasource="#application.datasource#">
    SELECT *
    FROM table
    </cfquery>
    <cfoutput>#qryContent.RecordCount# pages being
    indexed...<br></cfoutput> ----- here I get 1468 records
    <cfindex
    collection="Main_Content"
    action="refresh"
    type="custom"
    query="qryContent"
    body="cntContent"
    key="pg"
    urlpath="/info.cfm?"
    custom1="content" >
    <cfsearch
    name = "search_results"
    collection = "CoM_Main_Content">
    <cfdump var="#search_results#">
    <cfabort>
    When I do the <CFSEARCH and then <CFDUMP the number of
    records in the collection is 1409 - hence 59 records less than the
    query returns...I have deleted the collection numeruos times and
    re-created it, I have also increased the JVM settings on the
    ColdFusion server and no difference at all...
    I am out of ideas on how to solve this problem so I am hoping
    somebody can recommend the solution to this...
    Any ideas would be much appreciated.....
    Thanks,
    Vlad

    Odds are it's nothing to do with the Coldfusion upgrade, it
    has to do with MSIE 7. We were in the middle of a Site Rewrite
    project when Windows XP started automatically updating users to
    MSIE 7. They "fixed" so many things in 7, we had to re-QA the whole
    site and fix a bunch of CSS issues so that the site would work and
    display correctly in 7.
    You might also verify that your Windows 2003 server has all
    the current service packs and hotfixes. IIRC, there was at least
    one that threw our servers for a loop until we applied another
    hotfix.

  • CFSEARCH, Verity and suggestedQuery

    I have an issue with the "status" structure returned in
    cfsearch. In the status structure, the suggestedQuery field is no
    longer being populated. When I use CFDUMP to view the content of
    the structure, the only values being returned is FOUND, SEARCHED,
    and TIME. I had it working, but as soon as I showed a demo it
    stopped returning any suggestions. I am running CFMX7 v7.0.0. The
    code is below - it returns the expected search results, just not
    any suggestions for misspelled words.
    Any suggestions? Are there any server side configurations
    that could prevent this from being returned? Has anyone else run
    into this problem?
    Thanks.

    An update on my issue. Apparently the code works fine with a
    collection of about 100 files that are indexed. The issue with
    suggestedQuery happens with a larger collection of over 5000 files
    that have been indexed.
    Has anyone else had this issue and found a work around? I
    know one solution is to make smaller collections, but I would like
    that to be the last option rather than the first option.
    Thanks,

  • CFSEARCH Error

    Hey all,
    I am using cfindex and cfsearch to build a simple database searching tool. Most of the time it works, but more often than I'd like my search method fails stating
    "There was a problem executing the cfSearch tag with the following collections.
    Collection (status code): psasmart (-1705)"
    There doesn't seem to be much information on this error, so any help is appreciated.
    It doesn't seem to happen super often, and is normally resolved by simply searching again. It also happens
    most commonly if it is an empty search string.
    Here is my indexing function
         <cffunction name="IndexListings" hint="I update the ColdFusion Verity search index with new listings" returntype="struct">
              <cfset var returnStruct  = structnew()>
              <cfset returnStruct.success = true>
              <cfset returnStruct.message = "Index recreated successfully">
              <cftry>
                   <!--- Select the entire table --->
                   <CFQUERY NAME="Listings" DATASOURCE="#application.dsn#">
                        SELECT  listingType,
                                  listingLocation,
                                  ListingPrice,
                                  listingCreatedDate,
                                  ID,
                                  listingBody,
                                  listingName,
                                  listingMajorType
                        FROM listings
                        where Listingvisible = 1
                        Order By listingCreatedDate desc
                   </CFQUERY>
                   <!--- Index the results --->
                   <CFINDEX COLLECTION="psasmart" category="listingType,listingMajorType" CUSTOM1="listingLocation" custom2="ListingPrice" custom3="listingCreatedDate" custom4="Id" ACTION="refresh" TYPE="CUSTOM" BODY="listingBody" KEY="ID" TITLE="listingName" QUERY="Listings">      
                   <cfset application.lastIndexTime = dateformat(now()) & " " & timeformat(now())>
                   <cfset returnStruct.totalListings = listings.recordCount>
                   <cfcatch type="any">
                        <cfset returnStruct.success = false>
                        <cfset returnStruct.message = cfcatch.message & " " & cfcatch.detail>
                        <cfset sendMessage = SendErrorReport(returnStruct)> 
                   </cfcatch>
              </cftry>
              <cfreturn returnStruct>          
         </cffunction>
    And here is my search function (I just use verity to find matching records and thier ID's, then I query the database
    for further information about those records)
         <cffunction name="Search" hint="I perform a verity search">
              <cfargument name="searchTerm" default="" required="yes" hint="what to search for">
              <cfargument name="orderBy" default="" required="no" hint="How to order the search results">
              <cfargument name="sortOrder" default="asc" required="no" hint="If ordering is requred, accending (asc) or decending (desc)">
              <cfargument name="majorcategory" default="" required="no" hint="Which major category should we limit this search to?">
            <cfargument name="category" default="" required="no" hint="Which category should we limit this search to?">
              <cfset var returnStruct  = structnew()>
              <cfset returnStruct.success = true>
              <cfset returnStruct.message = "Search Executed Successfully">
              <cfset returnStruct.arguments = arguments>
            <cfset arguments.searchTerm = REReplace(arguments.searchTerm,'<[^>]*>','','all')>
              <cftry>          
                   <cfsearch collection="psasmart" name="searchResults" criteria="#arguments.searchTerm#" contextPassages = "1" contextBytes = "300" maxrows = "500" type="internet">
                   <cfset searchResultIDs = valuelist(searchResults.custom4)>
                   <cfquery name="getSearchResultData" datasource="#application.dsn#" cachedwithin="#createtimespan(0,1,0,0)#">
                        Select l.*, i.imageName as thumbNailImage
                        From listings l
                        LEFT OUTER join listingThumbnails i
                        ON l.id = i.ImageListingId
                        Where l.id in (<cfqueryparam list="yes" value="#searchResultIDs#">)
                    <cfif len(arguments.majorcategory) gt 0>
                         and l.listingMajorType = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.majorCategory#">
                    </cfif>
                    <cfif len(arguments.category) gt 0>
                         and l.listingType = <cfqueryparam cfsqltype="cf_sql_integer" value="#arguments.category#">
                    </cfif>               
                    <cfif len(arguments.orderBy) gt 0>
                         Order By l.#arguments.orderBy# #arguments.sortOrder#
                        <cfelse>
                        Order by l.ListingCreatedDate desc
                    </cfif>   
                   </cfquery>
                   <cfset returnStruct.data = getSearchResultData>
                   <cfset returnStruct.wasSorted = false>
                   <cfcatch type="any">
                        <cfset returnStruct.success = false>
                        <cfset returnStruct.message = cfcatch.message & " " & cfcatch.detail>
                        <cfset sendMessage = SendErrorReport(returnStruct)> 
                   </cfcatch>
              </cftry>
              <cfreturn returnStruct>          
         </cffunction>

    Sure:
    1) Create a batch file (using Notepad but save file as
    "restartCFsearch.bat") to restart the Windows service and make sure
    the CF service account has execute permissions for it (if it's
    running as local system then it will have)
    NET STOP "ColdFusion MX 7 Search Server"
    NET START "ColdFusion MX 7 Search Server"
    2) Optionally create a function which executes the batch file
    (or you could just put the cfexecute directly in the exception
    handler, but creating a function will make it more re-usable):
    <cffunction name="restartCFSearchService"
    returntype="void" access="public" output="false">
    <cfexecute name="[path to your batch file, eg:
    D:\batch\restartCFsearch.bat]" timeout="30"></cfexecute>
    </cffunction>
    3) Wrap your cfsearch tag/function in a try/catch and test
    for the error:
    <cftry>
    <cfsearch... >
    <cfcatch type="SearchEngine">
    <cfif findNoCase("There was a problem executing the
    CFSearch tag",cfcatch.message)>
    <cfset restartCFSearchService()>
    <cfset sleep(3000)><!--- wait 3 seconds for the
    service to come back up --->
    <cfsearch...><!--- re-issue search --->
    <cfelse>
    <cfrethrow>
    </cfif>
    </cfcatch>
    </cftry>
    To pause before re-issuing the search I'm using
    http://www.cflib.org/udf.cfm/sleep
    Hope that helps.

  • Cfsearch error: status code -1706

    CF7.0.2 update level hf702-65114.jar (Standalone server on
    Windows 2003)
    Type: SearchEngine
    Message: There was a problem executing the CFSearch tag with
    the following collections.
    Detail: Collection (status code): MyCollectionName (-1706)
    Since re-creating a set of about 12 collections in a
    different folder (same drive), I've been getting the above error
    the first time CFSEARCH is invoked following an update of *any*
    collection (not necessarily the one mentioned in the error.
    Re-indexing or re-creating the named collection does *not* fix the
    problem: CFSEARCH will continue to fail - so it's not corruption.
    Re-starting the CF Search Service however does fix it... until the
    next time one or more collections are updated.
    I am now auto-restarting the CF Search Service using
    cfexecute after each update but this is not ideal, and in fact just
    now it seems to have had no effect: the tag has errored again
    apparently in spite of the restart after the update.
    I've searched for Verity status code 1706 but can find
    nothing. Can anyone shed any light?

    Sure:
    1) Create a batch file (using Notepad but save file as
    "restartCFsearch.bat") to restart the Windows service and make sure
    the CF service account has execute permissions for it (if it's
    running as local system then it will have)
    NET STOP "ColdFusion MX 7 Search Server"
    NET START "ColdFusion MX 7 Search Server"
    2) Optionally create a function which executes the batch file
    (or you could just put the cfexecute directly in the exception
    handler, but creating a function will make it more re-usable):
    <cffunction name="restartCFSearchService"
    returntype="void" access="public" output="false">
    <cfexecute name="[path to your batch file, eg:
    D:\batch\restartCFsearch.bat]" timeout="30"></cfexecute>
    </cffunction>
    3) Wrap your cfsearch tag/function in a try/catch and test
    for the error:
    <cftry>
    <cfsearch... >
    <cfcatch type="SearchEngine">
    <cfif findNoCase("There was a problem executing the
    CFSearch tag",cfcatch.message)>
    <cfset restartCFSearchService()>
    <cfset sleep(3000)><!--- wait 3 seconds for the
    service to come back up --->
    <cfsearch...><!--- re-issue search --->
    <cfelse>
    <cfrethrow>
    </cfif>
    </cfcatch>
    </cftry>
    To pause before re-issuing the search I'm using
    http://www.cflib.org/udf.cfm/sleep
    Hope that helps.

  • Verity collection and French Accents

    I have a problem I have this french website I'm trying to
    manage but I'm having trouble with the stupid french accents. If I
    get the data from the database with a cfquery no problem I jsut add
    a cfcontent tag with the corect local and bingo all is good.
    Now when I ptu the data from the database in a collection
    then start the problem. I tried with meta tag and cfcontent and a
    bunch load of other stuff but I still get ??? in stead of the
    éèçà and so forth. Now my database is mysql on
    french local, collection was created with the language french
    option.
    I'm not sure what else to try to get those weird char to go
    up.

    I folowed this link
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18163
    and I did try to go in the style.uni and change all the
    charset form 1252 to 8859 then reindex the collection but it did
    not work. I tried diferent language for the create collection but
    still no luck.
    I still cant find a way to change the charset for my
    collection. My datasource has the right charset since with a
    cfsearch I get what I want, but it is not a very efective way to
    search.

  • Verity spider and custom fields

    Has anyone customized the verity spider so that it populates the custom fields (custom1 through 4) or been able to add other colums (especially a date) to the result set that is returned from cfsearch.
    I can populate the collections with the spider but have been unable to find anywhere documentation on how to add columns or populate the custom ones.
    I thought I was on the right track with the style.sfl and style.ufl files, but have been unable to achieve the desired results.
    Any help would be appreciated.

    Hi,
    I dont have access to SRM system but you can use enhancment concepts to enhance the standard component.
    Refer http://wiki.sdn.sap.com/wiki/display/SRM/HidingtabofShoppingcartinSAPSRM7.0 which is having something simmilar requirment.
    also refer http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81?QuickLink=index&overridelayout=true
    I hope this will helpful for you to achive your requirments.
    Thanks,
    Chandra

  • Verity and PDFs

    Hi All, Is there any way I can get verity to return the page
    number's of the PDF's that cfsearch finds?

    I don't think so. Though I guess you could add something to a
    search results page that reads the PDF and finds the matching text
    and what page that occurs on.

Maybe you are looking for