Need a quote on creating a site search engine cfc

Ok, this is what I have set up and you get the idea on what I
am trying to
accomplish.
I have a table of my database called 'members'
Amongst other items I have columns called:
state: varchar(2)
service: TinyInt
keywords: LongText
When people sign up they choose their service from a list,
choose their
state from a list and enter keywords from a textbox which is
all inserted
into the table. They can enter it any way they want.
When people go to search, they have to choose a state and a
service
(required).
The keywords is optional and is a textbox. They may just put
random words in there or separate them with comma or such.
I need a SQL code written that will take the state and the
service which are
always chosen and add the option of keywords.
I would like this put into a CFC to use on the site.
How much would anyone / everyone charge me to do this for me?
I am at my
wits end and don't have the time to keep this request up.
I will probably learn better from seeing it completed then to
have people
send me to places.
If you need any other information, please ask.
Listed below is that I have currently. Everything works fine
except for the
keywords section. It works if one word is entered, but bombs
if you enter
more than one.
<cfcomponent>
<cffunction name="ServiceSearch" access="remote"
returntype="query">
<cfargument name="service" type="string"
required="true">
<cfargument name="state" type="string"
required="true">
<cfargument name="keywords" type="string"
required="false">
<cfquery name="ServiceResults"
datasource="#Request.MainDSN#">
Select company, name, phone, service, city, state, username
FROM members
WHERE service = #arguments.service# AND state =
'#arguments.state#'
<cfif len(trim(arguments.keywords)) GT 0>
AND keywords LIKE '%#Trim(arguments.keywords)#%'
</cfif>
ORDER BY company ASC
</cfquery>
<cfreturn ServiceResults>
</cffunction>
</cfcomponent>
Please let me know.
Wally Kolcz
Developer / Support

you would have to tell the users to separate the entered
keywords by comma or space. Then you would take that list and
delimit it into a array. This can then be feed to your query like
this................
<cfset searchlogic2 = ListAppend(searchlogic2,'AND Title
like "#First Item of Array#%"',' ')>
You would have to loop over your array to append all of the
keywords to the searchlogic2 string.
Then you just use that sting in your
query.....................
<cfquery name="GetActivity" datasource="WEARS">
SELECT *
WHERE ________
#searchlogic2#
</cfquery>
Hopefully that helps!

Similar Messages

  • How to create an in-site search engine

    How does one manually create an in-site search engine (without using Google's site search engine or the like)? Is it very difficult and time consuming?

    If your site is dynamically populated with content from server-side databases, it's not hard.
    If your site is static, a 3rd party search function might be a better choice until you're ready to build a dynamic site.
    Zoom search engine
    http://www.wrensoft.com/zoom/
    Freefind
    http://www.freefind.com/
    Setting up a PHP environment in Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    Building your first dynamic website – Part 1: Setting up your site and database connection
    http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Site search engine

    Hi everyone! I need to put a site search engine in my composition how can i do that?
    Thanks everyone in advance!

    > I checked out www.wrensoft.com but installing all those
    things are for PC
    > based computers. What about if you're running a Mac OS
    X?
    Your web host is running OSX Server? If so, one would hope a
    specialized
    host like that would be able to provide you some options.
    Otherwise, I believe the Web server on OSX Server is the
    Apache web server,
    in which case, you should be able to use any search solution
    that would run
    on Apache (like any PHP solution).
    -Darrel

  • When I open a new tab it does not bring up my homepage. It brings up another sites search engine page.

    When I click on the new tab button, a small cross, it opens the new tab, but displays another sites search page, not my homepage. I cannot find where to tell it to open my homepage on all new tabs that are opened from the tab bar.

    The basic Firefox build has always opened a blank page when you open a new tab.
    Maybe some add-on you installed modified that feature of Firefox which now opens all tabs in a different page. Here's what you will need to do.
    Open Firefox -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. The tabs will now be opening in a blank page. You can Enable the add-ons again and check if its working properly.

  • Web Site Search Engine

    Hi,
    I was wondering if someone could help me locate a code for a search engine of my web site. My dilemma is, most of the search engines I've located search the web. This's not what I want. I'm looking for a search engine where you can select from a menu display and then hit search and it will return results in a text format from my web site only.
    If you're not sure what I'm looking for, an example can be found at www.westernvirtualairlines.com
    They use the Quick Flight Search which is exactly what I would like to use.
    If you enter Salt Lake City in the "from" box, and Los Angeles in the "to" box it will return the results in the same format I wish to use.
    Any help would be awsome and greatly appreciated.
    Thanks for any help and assistance.
    jak62562

    Well, you can use Google to search your own web pages, but I don't think that's quite what you're asking.
    That site you pointed to undoubtedly has its own database set up, so when you click search, it searches through their database and returns any relevant data to your search. If this is what you're attempting to accomplish, there's not going to be any script you can just cut and paste and have everything magically work for you.
    While you may not see it, those aren't simply HTML pages you're looking at. That site uses Active Server Pages, orASP, Microsoft's parallel to JSP (Java Server Pages). This pages query the database, organize the result and display it on the page. If you want something this complex, you'll either need to invest some serious time into learning a technology that can handle it, or hire a developer to do it for you.

  • How to create a file search function

    I'm using Dreamweaver 8. I've created several websites but this is my first foray into a search function. I have a form ready to go with text box and search(submit) button. This website is for apartment property managers. I need users to be able to search "60 Day Renewal Form" and have a list of documents pop up that have those words in the title. I have all of the documents relative to the site in a folder sitting on the server (Windows Server 2003). I don't know where to begin. Please let me know if you need any more information. Thank you.  

    What type of documents are you searching? Basically, what you need is a web site search engine. You can start by look at zoom and see if that meets your needs.
    http://www.wrensoft.com/zoom/

  • Site search limitations when using Spry Widgets

    Currently evaluating search tools to work with Spry
    accordion, tabbed panels and so on. Apparently NONE of them do.
    This is a big problem. Our site uses mostly Dreamweaver spry
    widgets.
    I have tested the very highly rated zoom Search from WrenSoft
    and also expect problems with Google Search and Atomz (based on web
    research I have done).
    If one searches for a word residing in one of the spry tabbed
    panels,accordians (there could be many layers on a single page of
    course), site search engines correctly take you to the page but
    naturally does not open the correct tabbed panel (Zoom Search
    doesn't understand DW code of course). Just presents you with the
    default panel. User would have to dig through all panels on that
    page to find the text. Our users need these nice interfaces. This
    is reality. Also some of the Java script in Wrensoft that
    highlights search words conflicts with existing Java script within
    Dreamweaver. I've worked around some of it but the core issue is
    the landing on the page and opening the correct tab. The question
    is can anyone suggest a search engine tool that will work with
    Dreamweaver Spry widgets or suggest something else. This is a huge
    disincentive to use Spry. Perhaps build pages without Spry to
    specifically go to after search? Sound like a lot of work.
    Thanks
    Richard

    RickRoo wrote:
    > If one searches for a word residing in one of the spry
    tabbed
    > panels,accordians (there could be many layers on a
    single page of course), site
    > search engines correctly take you to the page but
    naturally does not open the
    > correct tabbed panel (Zoom Search doesn't understand DW
    code of course).
    This is not an issue specific to Spry, it's an issue with
    other JavaScript solutions that show and hide content, and it is
    also an issue if CSS is used show and hide content.
    If you have a way to obtain the search terms from the search
    engine page, then you might be able to handle this (based upon your
    description, the WrenSoft JavaScript finds that info out), but then
    you'd also have to have a search engine built within your page that
    will search through the page and figure out what tab the searched
    term(s) are on, and then show that tab, but then what happens when
    you have terms on multiple tabs in a tab group? You'll have to
    determine which search terms are more important than other terms.
    There is code available that will allow you to open specific
    tabs using the showPanel method. Check out the API for the Tabbed
    panel:
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    And perhaps take a look at the code for this page (check in
    the linked JavaScript file):
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_unobtrusive.htm
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tp_unobtrusive.js
    As the Spry code is namespaced to specifically prevent
    conflicts with other JavaScript code, it would be good to know what
    those conflicts are so that others can be aware of them to try to
    prevent them in their pages.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Meta Tag or Search Engine related?

    Most SE results only search and show what's in the
    Description or Title meta tags. Do I need to do something specific
    where the search engine will search the CONTENT of the pages,
    rather than what's in the Meta tags, or is this just a trait of how
    some search engines work? Thanks!

    Precisely! And that's why I was careful to not refer to it as
    such: "Title
    and Description tags"
    Walt
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:eo11lg$fk6$[email protected]..
    > Ain't no such as a title meta....
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    > ==================
    >
    >
    > "Walt F. Schaefer" <[email protected]> wrote
    in message
    > news:eo11d9$fai$[email protected]..
    >>> Most SE results only search and show what's in
    the Description or Title
    >>> meta
    >>
    >> Nonsense! the SEs search all the text on the page
    but display the
    >> contents of the Title and Description tags. Some
    display a portion of the
    >> first text on the page in lieu of the Description
    tag. But to suggest
    >> they only search those tags is just plain wrong.
    >>
    >> Walt
    >> "MAGandD" <[email protected]> wrote
    in message
    >> news:eo10qn$elq$[email protected]..
    >>> Most SE results only search and show what's in
    the Description or Title
    >>> meta
    >>> tags. Do I need to do something specific where
    the search engine will
    >>> search
    >>> the CONTENT of the pages, rather than what's in
    the Meta tags, or is
    >>> this just
    >>> a trait of how some search engines work? Thanks!
    >>>
    >>
    >>
    >
    >

  • Where are my installed search engine plugins located in FF21?

    they are not in
    C:\Program Files\Mozilla Firefox\searchplugins
    nor are they in (only default ff plugins are in it, not ones i downloaded)
    C:\Program Files\Mozi lla Firefox\browser\searchplugins
    i can't find my youtube, mycroft, torrentz search plugin in the folders (it has an extension of .xml, right?)

    You can check if you have the XML files of the default search engines including Google in the browser\searchplugins folder in the Firefox program folder.
    If not then you need to reinstall Firefox.
    Custom installed search engines are in the searchplugins folder in the Firefox profile folder..
    Try to delete the search.json file and possible search-metadata.json and search.sqlite files in the Firefox profile folder to reset the search engines to the default.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Firefox will rebuild the search.json file from the default search engines in the "browser\searchplugins" folder in the Firefox program folder and the searchplugins folder in the Firefox profile folder.

  • No default search engines

    I installed freeware that hijacked my search. It removed all of the default search engines and left only bing which was then set to my default. I managed to get bing off the list and added google so I can search. It is not my preferred search tool. I cannot find my preferred search, yahoo, as an add-on. The restore search engines tool is grayed out. I tried a reset add-ons to no avail. I am using Windows 7. Do I need to reinstall firefox?

    The default search engines are supplied as a part of Firefox, so the easiest way is to reinstall. (Other ways such as trying to download them separately would be kind of challenging.) Here's how I suggest doing it:
    '''Clean Reinstall'''
    We use this name, but it's not about removing your data/settings, it's about making sure the program files are clean. As described below, this process does not disturb your existing settings. Do NOT uninstall Firefox, that's not needed.
    (1) Download a fresh installer for Firefox 36.0.4 from https://www.mozilla.org/firefox/all/ to a convenient location. (Scroll down to your preferred language.)
    (2) Exit out of Firefox.
    (3) Rename the program folder
    ''(64-bit Windows folder names)''
    C:\Program Files (x86)\Mozilla Firefox
    to
    C:\Program Files (x86)\OldFirefox
    ''(32-bit Windows folder names)''
    C:\Program Files\Mozilla Firefox
    to
    C:\Program Files\OldFirefox
    (4) Run the installer you downloaded in #1. It should automatically connect to your existing settings.
    Any improvement?
    Note: Some plugins may exist only in that OldFirefox folder. If something essential is missing, look in these folders:
    * \OldFirefox\Plugins
    * \OldFirefox\browser\plugins

  • How to remove Yahoo! search engine

    I have two yahoo search engines appearing in the search box menu. One is Yahoo and the other is Yahoo! (with the explanation mark). It appears the Yahoo! has hijacked my browser as I am unable to remove it by using the manage search engine option. While it appears to be removed, when I close Firefox I get a message that says a program blocked its removal. Please tell me what I need to do to remove this bogus search engine as it redirects me to what appear to be legit Yahoo pages saying words that I never typed could not be found. Interestingly, the redirects do not occur for all websites I visit.
    Thanks, Tony

    Use most or all of the listed programs. Each works differently.
    If one program misses something, another may catch it.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • I downloaded something and now when I click on safari yahoo comes up instead of top sites and I really want top sites back it's easier and google as the search engine on the top bar helped a lot too!! Please answer quick need immediate HELP!!

    I Downloaded something onto my computer and now when I click onto safari yahoo pops up instead of top sites I know certain changes come along with downloading but if there is a way back to top sites and google as my search engine I need it!! I'm not one for change and I love the whole original display that the macs have to offer when you first get your mac so thats why I really want top sites back also it was great when your in and rush and so much easier!! Please HELP immediately this is urgent!!

    Identify and remove adware
    http://www.thesafemac.com/arg/
    or use Adware Removal Tool.
    http://www.thesafemac.com/art/

  • I need to create another site in dreamweaver and Publish it to

    I make a dreamweaver site with mx 2004, well now I need to
    create another site in dreamweaver and Publish it to the same site
    as prior but in a NEW Directory , what to do ?

    > Yes,what to insert at manage site > edit >
    advanced > remote info > Host
    > directory ?
    Try nothing at first. Connect to the remote site. Tell us
    what folder
    names you see there.
    > I try upload [with: ftp host:ftp://www.polis-land.com
    & Host
    > directory:/dialup/ =thenewfolder]but shows error [when
    press test at
    > advanced >
    > remote info] :
    That's wrong. Try this -
    Remote Host - www.polis-land.com
    Host directory - <blank>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "123polis123" <[email protected]> wrote in
    message
    news:fl0uco$qpb$[email protected]..
    > Yes,what to insert at manage site > edit >
    advanced > remote info > Host
    > directory ?
    > to manage site > edit > advanced > remote info
    > ftp host ?
    >
    > I try upload [with: ftp host:ftp://www.polis-land.com
    & Host
    > directory:/dialup/ =thenewfolder]but shows error [when
    press test at
    > advanced >
    > remote info] :
    >
    > An FTP error occured - cannot make connection to host .
    The remote host
    > cannot
    > be found.
    > ???
    >

  • Need help for creating sharepoint sites for both internet and intranet users

    We would like to know what is the best approach to create SharePoint sites for our customers(internet users) and internal employees(intranet users) on the same SharePoint server. Here is the scenario:
    1) A customer posts a document from internet.
    2) This triggers a approval workflow that can only be accessed and executed in the intranet environment. This approval process requires approval's possible modifications to the customer's document.
    3) We would like the customer not to able to check the approval state and the modified document until the document is fully approved and finalized.
    We are pondering if we need to create two sites, one site for customer and the other site is for internal approvers. Or one site is possible. It also looks like we need to somehow copy customer's original document to intranet site and triggers the workflow.
    Any design ideas are helpful. Thank you advance!

    Hi Jason,
    Though it is perfectly possible to have both intranet and internet on the server, it is not a recommended practice. Having both on the same server would have multiple problems, instead me detailing it out, here is a forum thread on which Trevor had given
    enough reasons -
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/9b550c33-6f5f-4cd9-8762-8ff389b747d9/sharepoint-2013-one-farm-to-host-intranet-extranet-internet?forum=sharepointadmin
    If you have valid reason to go with single server, then you can also explore email enabled lists as one option and another one would be using custom sharepoint designer workflow.
    you can also try using event receivers to send documents to intranet site from internet site, process everything and update the document in the internet site.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if the reply helps you

  • How to create Search Engine for a site

    I have to create a search engine to search a 900 page web site. Most of the pages are JSPs. Is there any standard approach for doing this.
    Thanks
    sreenidhi

    There are various open source search engines (notably HT://Dig) if you look for them. There are also quite a few people who offer search services on your site with their engine (such as google and Atomz.) It is probably easier to do this than to work on the epic job of writing your own.

Maybe you are looking for

  • FXO does not work incoming or outgoing

    Hi all, I have an CME with 8.5 release and I inserted an VIC2 - 4FXO. I configured the FXO Port as below: voice-port 0/0/0 trunk-group ALL_COT supervisory disconnect dualtone pre-connect cptone PT timeouts initial 5 timeouts interdigit 7 connection p

  • What camera raw plugin for Photoshop CS2 + Canon Rebel T21

    I still have the excellent Photoshop CS2 and bought a Canon EOS Rebel T2i. However, the raw files come up in Bridge without picture preview. The file is a CR2 file. When double-clicked, Photoshop 2 opens and gives error dialog: "Could not complete re

  • Customer report in Multi currency

    Hi, my client has customers in different country , so he want to see multicurrency report . i.e as well as indian curreny and customers country currency,please can any help me in this issue, does in sap there are standard reports or else we need to d

  • How can i figure out how many GB my old iphone is?

    I have an old iphone 4 on verizon. i lost the packaging and i already erased/deactivated it so i cant get onto it to find out. There is no serial number on the back of the iphone. Help please? Thank you n

  • Cannot export video from iPhoto

    cannot export a video taken from an iphone. from iphoto to anything, it saves it as a 0.00 second movie file. and yes before you ask i am changing it to original file :/