Solved

ColdFusion Verity search...

Posted on 2011-03-25
1
424 Views
Last Modified: 2012-05-11
I'm creating a search for my website, and I have a question... I was able to create a collection,  and I'm able to search it.

But here is the problem... I can only search using the primary key, how can I make all columns in the database searchable?

Here is the code I have for indexing and for search...



<cfindex collection="orthopedicsurgeon" action="update" type="custom" query="qryGetdoc" 
	     body="ProviderNPI, ProviderLastName, ProviderFirstName, ProviderMiddleName, ProviderBusinessPracticeAddress, ProviderBusinessPracticeAddress2,ProviderBusinessPracticeCity, ProviderBusinessPracticeState, ProviderBusinessPracticePostalCode, PracticeAbout"
         key="ProviderNPI" language="english">


<!----- SEARCH ---->
<cfsearch name="search" collection="orthopedicsurgeon" type="simple" criteria="#q#">

<cfdump var="#search#">

Open in new window

0
Comment
Question by:Medrise
1 Comment
 
LVL 25

Accepted Solution

by:
dgrafx earned 500 total points
ID: 35221990
ok - this will be condensed - I just posted and my wireless connection dropped and all was lost ...
so anyway

not sure what you mean by "I can only earch by primary key"
what do you really mean? cause that doesn't make sense - might want to reword that

but to answer what i think you might mean
<cfsearch name="search" collection="orthopedicsurgeon" type="simple" criteria="#q#">
<cfif listlen(valuelist(search.key))>
<cfquery ...>
select ...
where ProviderNPI IN (valuelist(search.key))
</cfquery>
then just do an output of the query
</cfif>

good luck ...
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now