verity and database collection

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default verity and database collection

    I am trying to create a Verity collection from a database table using a query.
    It appears the collection is created but the search never finds any data. Dpes
    anyone have any experience with this use of Verity? Thanks, Pam Attach Code
    Code to create the collection <CFQUERY NAME='AllThreads'
    DATASOURCE='Consumers'> select * from fact_master WHERE
    fact_master.publish='Yes' </cfquery> <cfindex query='AllThreads'
    collection='YOCcoll' action='Refresh' type='Custom' key='Thread_ID'
    title='Thread_ID' body='Thread_ID,consumer_type,topcategory,Name,int ro'>
    <cfoutput query='AllThreads'> #Thread_ID# #consumer_type# #topcategory# #Name#
    #intro# </cfoutput> Code to enter search criteria <FORM
    action='yoc_result.cfm' method='post'> <INPUT type='hidden' name='StartRow'
    value='1'> <TABLE> <TR> <TD>Keywords:</TD> <TD><INPUT type='text'
    name='Criteria' size='30'></TD> </TR> <TR> <TD>Max Rows:</TD>
    <TD><SELECT name='MaxRows'> <OPTION> 10 <OPTION> 25 <OPTION> 100
    </SELECT></TD> </TR> <TR> <TD colspan=2><INPUT type='submit' value='
    Search '></TD> </TR> </TABLE> </FORM> Code to display results <!---
    template settings ---> <CFSET SearchDirectory = '\\NT14\consumer'> <CFSET
    SearchCollection = 'YOCcoll'> <CFSET UseURLPath = 'YES'> <!--- retrieve
    requested files ---> <CFSEARCH name = 'GetResults' collection =
    '#SearchCollection#' criteria = '#Form.Criteria#' maxRows =
    '#Evaluate(Form.MaxRows + 1)#' startRow = '#Form.StartRow#' > <HTML><HEAD>
    <TITLE>Your Orthopaedic Connection - Search Results</TITLE> </HEAD><BODY
    bgcolor='#FFFFFF'> <FONT size='+1'>Your Orthopaedic Connection</FONT> <BR>
    <FONT size='+2'><B>Search Results</B></FONT> <P> <!--- no files found for
    specified criteria? ---> <CFIF GetResults.RecordCount is 0> <B>No files found
    for specified criteria</B> <!--- ... else at least one file found --->
    <CFELSE> <TABLE cellspacing=0 cellpadding=2> <!--- table header ---> <TR
    bgcolor='cccccc'> <TD><B>No</B></TD> <TD><B>Score</B></TD>
    <TD><B>File</B></TD> <TD><B>Title</B></TD> </TR> <CFOUTPUT
    query='GetResults' maxRows='#Form.MaxRows#'> <TR bgcolor='#IIf(CurrentRow Mod
    2, DE('FFFFFF'), DE('FFFFCF'))#'> <!--- current row information --->
    <TD>#Evaluate(Form.StartRow + CurrentRow - 1)#</TD> <!--- score --->
    <TD>#Score#&amp;nbsp;</TD> <!--- file name with the link returning the
    file ---> <TD> <CFIF UseURLPath> <!--- URL parameter from cfsearch
    contains URL path info ---> <CFSET href = Replace(URL, ' ', '%20', 'ALL')>
    <CFELSE> <!--- ... else use OpenFile to return the file ---> <CFSET
    href = 'MyApplication_VOpenFile.cfm?serverFilePath=#URLEn codedFormat(Key)#'>
    </CFIF> <A href='#href#'>#GetFileFromPath(Key)#</A> </TD> <!---
    title for HTML files ---> <TD>#Title#&amp;nbsp;</TD> </TR> </CFOUTPUT>
    </TABLE> <!--- CFSEARCH tried to retrieve one more file than the number
    specified in the Form.MaxRows parameter. If number of retrieved files is
    greater than MaxRows we know that there is at least one file left. The
    following form contains only one button which reloads this template with the
    new StartRow parameter. ---> <CFIF GetResults.RecordCount gt Form.MaxRows>
    <FORM action='yoc_result.cfm' method='post'> <CFOUTPUT> <INPUT
    type='hidden' name='Criteria' value='#Replace(Form.Criteria, '''', ''',
    'ALL')#'> <INPUT type='hidden' name='MaxRows' value='#Form.MaxRows#'>
    <INPUT type='hidden' name='StartRow' value='#Evaluate(Form.StartRow +
    Form.MaxRows)#'> <INPUT type='submit' value=' More ... '> </CFOUTPUT>
    </FORM> </CFIF> </CFIF> </BODY></HTML> A wizard was used to create the
    search and results pages

    AAOS Guest

  2. Similar Questions and Discussions

    1. Verity not updating collection
      This is a weird one. Using the Administrator, I have set up a few collections for our search engine to use. I have had no trouble indexing or...
    2. Verity collection on different server?
      I am trying to setup a verity collection on a shared drive, i.e. not on the server where cfadministrator is but I don't know how to get cf...
    3. Verity collection issues
      I've been using a system for searching in my CF powered apps for some years now, and it works pretty well., but now I've got a bit of a problem with...
    4. Can't create Verity Collection
      When I try and create a verity collection in the CFAdmin or use cfcollection i get the following error Unable to create collection WebPageContent....
    5. list a verity collection
      Hi there, I was wondering if there was any way to create a query or list of a verity collection such that I can see an alphabetized word list of...
  3. #2

    Default verity and database collection

    I am trying to create a Verity collection from a database table using a query.
    It appears the collection is created but the search never finds any data. Dpes
    anyone have any experience with this use of Verity? Thanks, Pam Attach Code
    Code to create the collection <CFQUERY NAME='AllThreads'
    DATASOURCE='Consumers'> select * from fact_master WHERE
    fact_master.publish='Yes' </cfquery> <cfindex query='AllThreads'
    collection='YOCcoll' action='Refresh' type='Custom' key='Thread_ID'
    title='Thread_ID' body='Thread_ID,consumer_type,topcategory,Name,int ro'>
    <cfoutput query='AllThreads'> #Thread_ID# #consumer_type# #topcategory# #Name#
    #intro# </cfoutput> Code to enter search criteria <FORM
    action='yoc_result.cfm' method='post'> <INPUT type='hidden' name='StartRow'
    value='1'> <TABLE> <TR> <TD>Keywords:</TD> <TD><INPUT type='text'
    name='Criteria' size='30'></TD> </TR> <TR> <TD>Max Rows:</TD>
    <TD><SELECT name='MaxRows'> <OPTION> 10 <OPTION> 25 <OPTION> 100
    </SELECT></TD> </TR> <TR> <TD colspan=2><INPUT type='submit' value='
    Search '></TD> </TR> </TABLE> </FORM> Code to display results <!---
    template settings ---> <CFSET SearchDirectory = '\\NT14\consumer'> <CFSET
    SearchCollection = 'YOCcoll'> <CFSET UseURLPath = 'YES'> <!--- retrieve
    requested files ---> <CFSEARCH name = 'GetResults' collection =
    '#SearchCollection#' criteria = '#Form.Criteria#' maxRows =
    '#Evaluate(Form.MaxRows + 1)#' startRow = '#Form.StartRow#' > <HTML><HEAD>
    <TITLE>Your Orthopaedic Connection - Search Results</TITLE> </HEAD><BODY
    bgcolor='#FFFFFF'> <FONT size='+1'>Your Orthopaedic Connection</FONT> <BR>
    <FONT size='+2'><B>Search Results</B></FONT> <P> <!--- no files found for
    specified criteria? ---> <CFIF GetResults.RecordCount is 0> <B>No files found
    for specified criteria</B> <!--- ... else at least one file found --->
    <CFELSE> <TABLE cellspacing=0 cellpadding=2> <!--- table header ---> <TR
    bgcolor='cccccc'> <TD><B>No</B></TD> <TD><B>Score</B></TD>
    <TD><B>File</B></TD> <TD><B>Title</B></TD> </TR> <CFOUTPUT
    query='GetResults' maxRows='#Form.MaxRows#'> <TR bgcolor='#IIf(CurrentRow Mod
    2, DE('FFFFFF'), DE('FFFFCF'))#'> <!--- current row information --->
    <TD>#Evaluate(Form.StartRow + CurrentRow - 1)#</TD> <!--- score --->
    <TD>#Score#&amp;nbsp;</TD> <!--- file name with the link returning the
    file ---> <TD> <CFIF UseURLPath> <!--- URL parameter from cfsearch
    contains URL path info ---> <CFSET href = Replace(URL, ' ', '%20', 'ALL')>
    <CFELSE> <!--- ... else use OpenFile to return the file ---> <CFSET
    href = 'MyApplication_VOpenFile.cfm?serverFilePath=#URLEn codedFormat(Key)#'>
    </CFIF> <A href='#href#'>#GetFileFromPath(Key)#</A> </TD> <!---
    title for HTML files ---> <TD>#Title#&amp;nbsp;</TD> </TR> </CFOUTPUT>
    </TABLE> <!--- CFSEARCH tried to retrieve one more file than the number
    specified in the Form.MaxRows parameter. If number of retrieved files is
    greater than MaxRows we know that there is at least one file left. The
    following form contains only one button which reloads this template with the
    new StartRow parameter. ---> <CFIF GetResults.RecordCount gt Form.MaxRows>
    <FORM action='yoc_result.cfm' method='post'> <CFOUTPUT> <INPUT
    type='hidden' name='Criteria' value='#Replace(Form.Criteria, '''', ''',
    'ALL')#'> <INPUT type='hidden' name='MaxRows' value='#Form.MaxRows#'>
    <INPUT type='hidden' name='StartRow' value='#Evaluate(Form.StartRow +
    Form.MaxRows)#'> <INPUT type='submit' value=' More ... '> </CFOUTPUT>
    </FORM> </CFIF> </CFIF> </BODY></HTML> A wizard was used to create the
    search and results pages

    AAOS Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139