ColdFusion Verity Search Float Problem

I have a database full of products.  One of the fields for each product in the database is a minimum price.  I'm trying to create a search that says something like "find all products with a minimum price between X and Y."  However, when it returns results, it includes numbers that are out of the range.  For instance, if I say between 2 and 3 dollars, it will return the correct results but will include numbers like 25.00 and 245.00, and when I do something like "between 4 and 5 dollars" it returns the correct results with additional numbers like "40.00" and "434.00."  So it seems to me that ColdFusion can't process the floating number correctly...It sees a number like "40.00" and assumes its in the range between 4 and 5.  Here is my code for the indexing:
<cfquery name="v_qryProductInfo" datasource="#application.DSN#">
SELECT DISTINCT    SP.pk_storeProductID,
                P.productName,
                C.categoryName,
                P.prodTimeMin,
                P.prodTimeMax,
                PD.miniDesc,
                PD.keywords,
                CONVERT(float, (dbo.getMinPrice(pk_storeProductID))) AS minPrice
FROM             tblProduct P
INNER JOIN        tblProductDescription PD ON P.pk_productID = PD.fk_productID
INNER JOIN        tblStoreProduct SP ON P.pk_productID = SP.fk_productID
INNER JOIN        tblProductSubCategory PSC ON SP.pk_storeProductID = PSC.fk_productID
INNER JOIN        tblSubCategory SC ON SC.pk_subCategoryID = PSC.fk_subCategoryID
INNER JOIN        tblCategory C ON C.pk_categoryID = SC.fk_categoryID
WHERE            (SP.blnStoreActive = 1)
AND                (SP.fk_storeID = #application.storeID#)
</cfquery>
<cfdump var="#v_qryProductInfo#">
<h1>Indexing data...</h1>
<cfindex
    action="refresh"
    collection="#application.vcCollection#"
    key="pk_storeProductID"
    type="custom"
    title="productName"
    query="v_qryProductInfo"
    body="miniDesc, keywords, pk_storeProductID, minPrice"
    Custom1="minPrice"
    Custom2="prodTimeMin"
    Custom3="prodTimeMax"
    Custom4="categoryName"
>
My cfsearch tag criteria looks like this:
    <cfsearch
        criteria="CF_CUSTOM1 >= #priceRangeMin# <AND> CF_CUSTOM1 <= #priceRangeMax#"
        name="qryFoundProducts"
        collection="#application.vcCollection#">
I've made the Custom1 column for the indexing the "minPrice" which is calculated as a function in my database.  I've even tried making sure the number that is being entered in the Custom1 index is a float by using the CONVERT function in my SQL code.  Any ideas why ColdFusion can't properly relate a float?  It seems like it's trying to compare a string and a float, which isn't working too well.
Any info would be greatly apprecaited.

Well, firstly: don't blame Adobe for Verity... Verity is (well: was) a separate product, and I don't think Verity as a company has even existed during Adobe's tenure at the helm (to mix metaphors awkwardly) of CF.
That said, one perhaps can blame Adobe for any disconnect between Verity and CF's support thereof, if Verity does actually support numeric processing, and CF mungs that somehow.  I'm not saying this is the case, but who knows?
What Adobe perhaps didn't do is ditch or deprecate Verity earlier than it did.  Lucene's been around for ages, and has been solid for ages, so I don't know why they didn't revise their search engine support earlier than they did.  Oh well.
Now: your issue.
First thing, this won't work:
<cfset keyList = #Val(ValueList(qryFoundProducts.key))#>
val() returns the value of a number, whereas valueList() returns... a list.  So it val() works at all, the result will just be the value of the first number in the list.  You also don't need the pound-signs there, but either way, it won't affect your situation.
Second, as CF is loosely typed, it doesn't matter if you pass a numeric string or an actual number to a <cfqueryparam> tag, if you've said the value is supposed to be an integer (CF_SQL_INTEGER), then CF will automatically convert it to an integer if it can.  So provided the values in your query column can be expressed as integers, they will convert with no intervention on your part.
So, in that light, I'm not sure your problem is necessarily what you think it is..?
But you say there's a problem in your WHERE clause, but you don't actually say what the problem actually is.  Are you getting an error?  Or just no records?  The wrong records?
What do you see if you dump the query out?  If you take the values output by valueList() and execute the query with those values in a different DB client (like MS SQL Studio or whatever), do you get the results you expect?
What sort of data is in the Verity collection btw?  Are they documents, or DB data, or a mix, or what? If there are PKs coming out of the collection, it sounds like the data came from a DB in the first place.  Can you not use full-text searching in your DB, and leave Verity out of the equation?
Adam

Similar Messages

  • Verity Search Server Problem

    Hello all,
    This is my first attempt to use Verity on my localhost and
    I've run into a problem trying to create a collection via the CF
    Administrator pages. Whenever I click on Data & Services >
    Verity Collections I see the following error:
    "Unable to retrieve collections from the Search Service.
    Please verify that the ColdFusion Search Server is installed and
    running."
    I've taken the following troubleshooting steps:
    - Checked to make sure Verity was installed
    - Stopped and started the ColdFusion 8 Search Server services
    - Ran the verity-install.bat again. When I did this I
    recieved the following error: OpenService Failed: Access is Denied
    I'm running Windows Visa Home Premium.
    Any thoughts on how I can get Verity working on my local
    machine would be most appreciated.
    D

    Hello all,
    This is my first attempt to use Verity on my localhost and
    I've run into a problem trying to create a collection via the CF
    Administrator pages. Whenever I click on Data & Services >
    Verity Collections I see the following error:
    "Unable to retrieve collections from the Search Service.
    Please verify that the ColdFusion Search Server is installed and
    running."
    I've taken the following troubleshooting steps:
    - Checked to make sure Verity was installed
    - Stopped and started the ColdFusion 8 Search Server services
    - Ran the verity-install.bat again. When I did this I
    recieved the following error: OpenService Failed: Access is Denied
    I'm running Windows Visa Home Premium.
    Any thoughts on how I can get Verity working on my local
    machine would be most appreciated.
    D

  • Coldfusion verity search indexes duplicates

    When I use the built in vertiy search engine, everything works fine except my resul
    ts page provides duplicates of every result. I am using coldfusionMX7, does anyone know how to stop this from happeining?
    Here is my search code:
    <cfsearch
      name = "GetResults"
      collection="Operations_FieldOperations"
      criteria="#form.Criteria#">
    pretty basic.

    I imagine it's because you've got the docs in your index twice.  Reindex your collection.
    Adam

  • Verity Search Service in JBoss

    Hi All,
    Good morning!
    Here my question is about Verity Search Service. I'm using Windows OS in my local machine and my DEV system is using Linux OS. In both these machines, Verity Search is working properly and our code works good. When we to do the same thing on the Client server its not working. We are always getting a message that the Coldfusion Verity Search service is not started/ not there.
    Our Client server is built in JBoss and Coldfusion.
    Can you please guide me how to start the Verity Search Service in the JBoss?
    Here is the error message we are getting.
    On Windows, you may need to start the ColdFusion Search Server from the services control panel.
    On Unix, you may need to run the search startup script in the ColdFusion bin directory.
    Error: java.io.IOException: unable to obtain from connection pool: cannot make connection to server at: k2://localhost:9953"
    Thanks in advance!

    Hi Amar,
    Thank you for the quick response
    regards
    Nicolai

  • Verity search engine or Google Mini?

    Im setting up a website for a medium sized business and havnt
    implemented the Coldfusion Verity search into the site yet... but I
    was looking over the Google Mini and seems like an nice/intuitive
    nice little box.
    Should I go with the $2000 mini price tag if the company
    wants effecient search results?

    Do a malware check with some malware scan programs.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of the database before doing a scan.<br />
    * http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    * http://www.superantispyware.com/ - SuperAntispyware
    * http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    * http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    * http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]]

  • Verity Search Server on Macintosh

    I was intending to use the ColdFusion Verity Search Service but the service is unable in the ColdFusion Administrator. It would seem the server needs to be installed separately but the link in LiveDocs is unavailable, I’m using CF8 developer on a Macintosh, if anyone knows where I can find the installation software that would be appreciated. Thanks.

    I don't know about that, pwizzard. Here's something else to consider. While there's no "Mac" installer, there is a Linux one. I think that will work for you. Note that you do need to have a license key for CF to get to it. (In other words, this won't work if you're using the Developer edition, because it has no license key.)
    Short answer:
    Go to the page, https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity, enter your CF license key (standard or enterprise), and download the installer (for Linux) from there. Let us know if it works
    It's also unfortunate that the /go/verity/ link fails. While we can't change the CF8 licvedocs page you found, I did change the corresponding CF9 page to offer the link above.
    Long answer:
    As for how I figured out that this may be what you need, here's what I did, in case any of it may help you or others in the future.
    First, I recalled that there was a page of installers that went along with CF. I couldn't remember the link, but I trusted that the Adobe CF site would get me there.
    - I went to the CF front page (can be found via google): http://www.adobe.com/products/coldfusion/
    - choose link in lower right of right nav bar for CF8: http://www.adobe.com/products/coldfusion/coldfusion8/
    - choose link to download trial
    - log in (if you don't want to login, just keep reading).
    - choose link for "related ColdFusion downloads": http://www.adobe.com/support/coldfusion/downloads.html
         - and note that you could also just visit that link directly, now that you know it, without needing to log in
    - there, it offers a section on "Verity (language packs and standalone installer)", and it has the link I offered above
    Admittedly, that page says that the installer is meant for installing Verity on a machine separate from CF, so I wondered if it was what you really needed. I decided to search google for help (coldfusion install verity) and found this http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=othertechnologies_06.htm l. I guess that's the page you had found, because it offers a link to get to the installer, as http://www.adobe.com/go/verity, which fails (and because this is the CF8 docs, we can't even update it with a corrected link if we find one.)
    But note that these help pages offer a popup box that offers a link to the CF9 docs: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/index.html. Unfortunately, that goes to the front page of the docs. You need to note where you were on the previous page (bummer). At the top of the CF8 doc page, we see that the page was within "Installing and Using ColdFusion / Installing Integrated Technologies". We can select that from the CF docs front page, which opens to http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18c28 -7ff1.html.
    The link for the verity page itself is http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969 -7ffd.html. Sadly, that page (almost identical to the CF8 one) also has that failing link, but at least we can update the page with the proper one.
    I wasn't positive that it was the right link, until I did some more digging. (FWIW, I tried to find any old version of the go/verity page at archive.org, but no luck. Returning to the google search results list, I did find this, though: http://www.adobe.com/support/coldfusion/verity_reg/register/index.cgi. That looked just like the first link offered above, though only for CF7, so I was more confident that the first link I offered is indeed what you need.)
    I thought to search google for the specific phrase "adobe.com/go/verity", and there it found a couple of other CF9 doc pages, and one of them (https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity) did also have the bad /go/verity link, and someone offered in a comment a link to (again) the original download page I offered (https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity). So that really seems the right page, and I have added a comment to http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969 -7ffd.html.
    One last thing: while the download page doesn’t have an OS X-specific installer, the help page does mention OS X and says getting this installer is the solution, and it does offer a Linux installer to look for, so I suppose that's what you are supposed to you. One thing that still has me a little suspect of things is that I did use a key to get to that download page, and I see the filename offered for the Linux installer is "coldfusion-search-lin.bin", not the "ColdFusion_9_Verity_linux.bin name offered". But maybe it's just a doc inconsistency.
    Anyway let us know if it helps.
    /charlie

  • How to start Verity Search Service in Coldfusion with JBoSS on LINUX OS?

    Hi,
    On Windows, you may need to start the ColdFusion Search Server from the services control panel.
    On Unix, you may need to run the search startup script in the ColdFusion bin directory.
    The above is the error message we are getting it when we run Verity Search code.
    The code which is actually working fine in Windows(Local Environment).
    Its not working in our Client System, the configuration is Coldfusion 9.0 with JBoss installation on LINUX Operating System.
    Your help is highly appreciated.
    Thanks in advance!

    service generally manages the lower level services on the system.
    High level services such as Apache are managed via serveradmin:
    serveradmin status web
    serveradmin start web

  • Verity Search Problem

    I'm having trouble with my verity search results page.
    Some of the document titles are missing, the score is fine, its just the title that seems random.
    Can anyone help?
    My code is below:
    search form:
    <p>
    <strong>What would you like to search for?  </strong>
      <form name="form1" method="post" action="?area=documentresults">
      <p>
        <input name="criteria" type="text" id="criteria">
        <input type="submit" name="Submit" value="Submit">
      </p>
      </form>
      </p>
    results :
    <cfsearch name="YourSearchName"
                    collection="documents"
                    criteria="#form.criteria#">
      <strong>Your Results</strong>
    <cfoutput query="YourSearchName">
         <p><a href="documents#URL#">#title#</a><br>
         Score: #score#</p>
    </cfoutput>

    limabravo wrote:
    > the collection is utf-16(comming from a mssql database).
    I have a verity
    > collection in traditional chinese and one in simplified
    chinese. But the data i
    > put into the collection won't be retuned when i search
    on it. And even when i
    > get results(sporadicly) the "summary" field contains
    different characters then
    > that i put into the collection.
    not 100% sure but i think you want unicode encodings not the
    "language" ones as
    i think those are codepages. and i also don't think you want
    utf-16, utf-8 is a
    better choice w/cf.

  • Verity Search Error

    I just started a Verity search engine for a very large site,
    and have gotten the following error message a couple of times:
    There was a problem while attmpting to perform a search.
    Query has a parsing error. (-40)
    at com.verity.k2.K2Search.receive(Unknown Source)
    at com.verity.search.ProcessSearch.processNormal(Unknown
    Source)
    at com.verity.search.ProcessK2Operation.submit(Unknown
    Source)
    at com.verity.search.VSearch.getPSearch(Unknown Source)
    at com.verity.search.VSearch.getResult(Unknown Source)
    at
    coldfusion.tagext.search.SearchTag.doSearch(SearchTag.java:260)
    at
    coldfusion.tagext.search.SearchTag.doStartTag(SearchTag.java:157)
    at
    coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908)
    at cfsearch2ecfm246570528._factor0(...\search.cfm:36)
    at cfsearch2ecfm246570528._factor5(...\search.cfm:30)
    at cfsearch2ecfm246570528.runPage(...\search.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.ja...
    <br>The error occurred on line 36.
    The tag for the search is as follows:
    <cfsearch collection="#form.collect#" language="English"
    type="SIMPLE" criteria="#Session.searchTerm#"
    name="Session.results">
    on line 36.
    I have not been able to reproduce the error, and there isn't
    anything strange about the search terms submitted.
    This is the first time I've used Verity, and would appreciate
    any words of wisdom as to what might be the cause of this error,
    and how to eliminate it.

    ok the value is 0
    but i am not sure what that means, i havnt used verity
    before?
    can you help
    just to let you know what i need to do,
    i have a results page which show 1 surname with all that
    persons information, on the same page there is a search by surname
    text box, when this is submited i need to move to the first recoed
    that matches the text box, so then i can still use the next and
    previous buttons to navigate through.
    so really what i need to do is get all the records order them
    by surname then give each of them a id number
    so Abbot = 1, Adcock= 2 etc
    then i should be able to use the next and previous to go
    through them?
    i am just not sure how i can do this?
    hope you can usnderstand what i am trying to do.
    many thanks

  • Verity search not indexing

    I have recently upgraded to coldfusion 8. I reworked my
    verity searches but the main one of the website times out. I have
    gotten it to complete a couple of times but this time it will not
    complete. I have no clue what to change to make it index. I would
    appreciate any help.
    Thanks

    This is the error "The request has exceeded the allowable
    time limit Tag: cfoutput " It is a verity search of my website
    "www.archives.alabama.gov" there are over 26,000 documents. It has
    always worked fine until the upgrade to v.8 and it worked the first
    several times but now it is timing out with the above message
    everytime. I do not know where that tag is or how to change it.
    That is what I need to know.

  • Verity Search - exclude html tags when indexing?

    I have a table I want to index, but some data stored in the
    table contains HTML.
    I want to index the content, but I want all HTML tags to be
    excluded.
    This is a problem, say you had a table storing all retail
    stores, there's some HTML in the data, and you do a Verity search
    for "Target" (as in the Target retail store). You will return a lot
    of irrelevant results if there's a
    target="blank" attribute in an A HREF tag, for example. Can
    you strip these out during the <CFINDEX> ?
    Any idea on how to accomplish this?

    Hi user494326,
    I'm actually having trouble getting html into a CLOB. It sounds like you were able to do this successfully. What did you do to get it in as far as escaping characters, etc. I'd love to see how you handled that, it would be greatly appreciated!

  • Verity Search using CF 4.5

    Hi,
    I am using CF 4.5 and have a verity search set-up on a
    intranet. The search works in that in returns data, however I am
    having a few problems, some of the returned links return for
    example www.hotmail.com/www.hotmail.com/people/index.htm where the
    correct link should be www.hotmail.com/people/index.htm.
    Asso, if i remove a folder from the intranet folder
    structure, it is still returning the file when a search is carried
    out.
    Any comments would be greatly welcomed.
    Thanks

    Its as safe as using any other vendor de-supported software.
    Eventually, you will probably have to replace hardware and run into
    problems where you won't be able to find an operating system that
    will support it, etc., not to mention unavailable drivers that
    interconnect you to your databases, etc.
    Phil

  • Install K2 Verity Search on Cold Fusion Mx7

    Does anyone have any documentation, a KB article, or
    experience installing and configuring the K2 Verity Search Server
    on Cold Fusion MX 7?
    We have Cold Fusion running but it doesn't look like any of
    the Verity services are installed. I've found KB articles related
    to K2 Verity on version 5, but not for verion 7.

    We already have Cold Fusion installed, but somehow the Verity
    Search Server was never installed as part of the normal install
    process.
    Quote from doc:
    Installing the Verity search server separately
    By default, the installer installs the Verity search server on
    the same computer as
    ColdFusion MX 7. To enable searches using Verity, if you
    want to install the Verity search server
    on a different computer from the one where you install
    ColdFusion MX 7, you must install the
    Verity search server separately. For more information, see
    “Installing the Verity search server
    So I guess what you're saying is to download the packages and
    install Verity?

  • Re-install Verity Search error code -6062

    Can someone provide information on unistalling and
    reinstalling verity search? It appears that my collection files are
    not being seen by the verity search system. I believe this problem
    happened after a CF service patch install.
    Please review error messages
    Warning Log file
    K2AdminConfig had warnings..
    WARNING: Unable to open
    C:\CFusionMX7\verity\Data\host\admin\admin.xml
    styleset
    1
    Def_FileSystem
    y
    exitK2Admin Server: localhost:9950 connected. Type ? for
    help.
    RCADMIN - Verity, Inc. Version 5.5.0
    rcadmin> Modify Type (Update=0, Insert=1):Style
    Information:
    Alias: Style state (store=1,active=2): Style type
    (new=1,edit=2,clone=3): Admin Alias: Clone Alias:
    Gateway[(o)dbc|(n)otes|(e)xchange|(d)ocumentum|(f)ilesys|(w)eb|o(t)her]:
    Charmap: Description: Path:Save changes? [y|n]:Error code : -6062
    Description: StyleSet exists. Cannot insert entry.
    rcadmin> styleset
    1
    ColdFusionK2
    y
    exitK2Admin Server: localhost:9950 connected. Type ? for
    help.
    RCADMIN - Verity, Inc. Version 5.5.0
    rcadmin> Modify Type (Update=0, Insert=1):Style
    Information:
    Alias: Style state (store=1,active=2): Style type
    (new=1,edit=2,clone=3): Admin Alias: Clone Alias:
    Gateway[(o)dbc|(n)otes|(e)xchange|(d)ocumentum|(f)ilesys|(w)eb|o(t)her]:
    Charmap: Description: Path:Save changes? [y|n]:Error code : -6062
    Description: StyleSet exists. Cannot insert entry.
    y
    exitK2Admin Server: localhost:9950 connected. Type ? for
    help.
    RCADMIN - Verity, Inc. Version 5.5.0
    rcadmin> Modify Type (Update=0, Insert=1):Index Server
    Alias:Port:Description:Bind:Admin Alias:Number of Listeners:Number
    of Async. Threads:Number of Sync. Threads:Access
    Type(Auth=0,Anonymous=1,Admin=2):Save changes? [y|n]:Error code :
    -6075
    Description: A Service with the same alias already exists in
    the system.
    When indexing plcoll I received this error message.
    • Unable to optimize collection plcoll.
    An error occurred while performing an operation in the Search
    Engine library.
    Error switching collection offline:
    com.verity.api.administration.ConfigurationException: Failed to
    find configuration key. (-6005)
    Thanks

    Do a QuickTime standalone install. That usually fixes the 2093 error.
    http://www.apple.com/quicktime/download/standalone.html
    Save it to your your hard drive - don't install over the internet.

  • Sorting a Query of a  Verity search

    I'd like to sort a verity collection's output by the latest
    date of the record.
    The way I did this in CF5 was to query the results of the
    verity search ORDER BY KEY DESC (key being the ID of the record,
    and therefore I got the order the way I wanted it)
    In CFMX it does not allow this, here is the error I'm
    getting:
    Query Of Queries syntax error.
    Encountered "KEY. Incorrect ORDER BY column reference [KEY].
    Only simple column reference, alias name, and integer column
    id are allowed.
    (an interesting note is that when I pass the records ID to
    CUTOM1 the sort works, however, I cannot do that because the way I
    built the results to display is based on the key desc etc.....)
    anyone know why this is and how to get around it?
    Thanks
    Yankee

    What position in your select statemen is the KEY column? If
    it is in the first position, just ORDER BY 1 DESC, if it is in the
    second, ORDER BY 2 DESC, etc.
    Phil

Maybe you are looking for

  • 5 seconds delay with airtunes

    Hi. I've just setup my airport express and it was surpricing that whenever I start playing anything iTunes "thinks" about 5 seconds before starting to play anything. It looks like iTunes is buffering or something. So is this normal or is it just me?

  • Adding items to sidebar...

    since updating to 10.7.2, i can't add docs to the sidebar (i get a grey "line in a circle" icon). anyway to fix this?? i have a couple of documents i always keep there (one is missing, and i can't put it back!) thx

  • Members edit only their page, no other areas?

    Hi, I am working at a membership based site, and want each member to have access to their own page -- and the editing of that page. But am confused on how to set that up: 1) set up their own page in muse, www.hellohorse.com/joe-smith 2) set up in-bro

  • How to change seller name in app store, how to change seller name in app store

    Hi I want to change developer's or seller's name in app store . And i dont know how to do it? Help please

  • Only some of the traffic passing through inline vlan pair

    Here is my network setup    firewall<---- >(g1/2)Coreswitch 6500 with IDSM(TG9/1)<-----> (TG9/1) Distrib switch with FWSM---------Accessswitch configuration in core switch interface GigabitEthernet1/2.11 description **** **** encapsulation dot1Q 211