Implementing a search box - best practices

I'm implementing a simple search box, to allow visitors to search for merchandise, which is held in a table. I can see two main approaches, each with their pro's and cons:
The merchandise data has several fields that could be potentially employed in the search. long description, short description and title.
A thorough search would look through each long description field, which is 100 chars long. The downside being the speed hit, searching such a large field.
A quick search would look through the title field - quick but not thorough
Alternatively I could create a separate table, searchTags, which contains a list of keywords for each item of merchandis - quicker but not as thorough
Just wondering what type of apporach people use ?

Ah, ok, I'll do it with LIKE
I plan to get it up and running and record the type of things people are searching for. Having seen some of the things people type into a search box, I'll need to employ some of CF's stirng and list functions to break down the search string in a series of words, then search for each one.
For example if someone typed "Silver Jewellery", it wouldn't bring up any results, as there's no occurence of that string in the database.
However, if I break that down into "Silver" and "Jewellery" that would produce results.
Think I can use CF's string and list functions such as listToArray, for that.

Similar Messages

  • Search Fragment - Best Practice?

    We are designing a search fragment that will reside at the beginning of every form. The search fragment will allow a user to select one customer from a number of customers displayed. Once the user selects a customer, the search fragment will populate the main (parent) form with the customer data and then the search fragment should disappear.
    We have a mock-up of the search fragment, but questions are surfacing as to the best way to integrate this into the form. Each form has different "customer data" fields that it needs from the search, for example, one form needs customer name and account while another form only needs customer name.
    Here are some questions that are surfacing:
    1. Should the search fragment "poke" the information into the parent form once the user makes a selection? If so, the fragment needs to detect which form it's on and send only the data the form needs. This will make the search fragment's javascript more complex.
    2. Or, should the parent form "grab" only the information from the search fragment that it needs? This localizes the javascript to the parent form, leaving the search frag more generic. In this scenario I envision that once a user selects a customer, all customer information will be plopped into hidden fields on the search frag and the parent will use only the data that it needs.
    Is there a best practice for doing something like this? Lessons learned?
    Thanks,
    Elaine

    How is the search fragment going to know what to extract or is there goinng to be the same info everytime? I assume that is what you are doing. Depending on how the data is returned to you will dictate the best pratice. If it is a stream of XML then I woudl load that stream into the datadom and allow each of the fields to get their own data from the Dom (this would minimize the code needed on each form). If you are getting the info back field by field then the hidden field route is th ebest way to go (it is simple and the coding is very simple as well).

  • Implementing a "login" using best practices

    I have a little bit of time now for my project where I'd like to refactor it a bit and take the opportunity to learn about the best practices to use with JSP/Servlets but I'm having some trouble thinking about what goes where, and how to organize things.
    Here's my current login functionality. I have not seperated my "business logic" from my "presentation logic" as you can see in this simple starting example.
    index.html:
    <html>
    <body>
    <form action="login.jsp" method="post">
        <h1>Please Login</h1>
        User Name:    <input type="text" name="login"><br>
        Password: <input type="password" name="password"><br>
        <input type=submit value="Login">
    </form>
    </body>
    </html>login.jsp:
    <jsp:useBean id="db" type="database.DatabaseContainer" scope="session"/>
    <%
    if(session.getAttribute("authorized")==null || session.getAttribute("authorized").equals("no") || request.getParameter("login")!=null)
         String login = request.getParameter("login");
         String password = request.getParameter("password");
         if (login!=null && db.checkLogin(login,password))
             // Valid login
              session.setAttribute("authorized", "yes");
             session.setAttribute("user",login);
         else
              // Invalid login
                 session.setAttribute("authorized", "no");
                 %><jsp:forward page="index.html"/><%
    else if(session.getAttribute("authorized").equals("no"))
        //System.out.println("Refresh");
        %><jsp:forward page="index.html"/><%   
    else System.out.println("Other");
    %>
    <html>
    <body>
    <h1>Welcome <%= " "+session.getAttribute("user") %></h1>
    //links to other jsps are here
    </body>
    </html>What should I be doing instead? Should I make the form action be a Servlet rather than a jsp? I don't want to be writing html in my servlets though. Do I do the authentication in a servlet that I make the form action and then make the servlet forward to some standard html page?

    Ok, so I'm starting things off simply be just converting what I have to use better practices. For now I just want to get the basic flow of how I transition from page to servlet to page.
    Here's my index.html page:
    <html>
    <body>
    <form action="login" method="post">
        <h1>Please Login</h1>
        Phone Number:    <input type="text" name="login"><br>
        Password: <input type="password" name="password"><br>
        <input type=submit value="Login">
    </form>
    </body>
    </html>I have a mapping that says login goes to LoginServlet, which is here:
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpSession;
    import db.DatabaseContainer;
    public class LoginServlet extends HttpServlet
        public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            HttpSession session = request.getSession();
            if(session.getAttribute("authorized")==null || session.getAttribute("authorized").equals("no") || request.getParameter("login")!=null)
                String login = request.getParameter("login");
                String password = request.getParameter("password");
                DatabaseContainer db = (DatabaseContainer)(request.getSession().getAttribute("db"));
                if (login!=null && db.checkLogin(login,password))
                    // Valid login
                    session.setAttribute("authorized", "yes");
                    session.setAttribute("user",login);
                    //forward to home page
                else
                    // Invalid login
                    session.setAttribute("authorized", "no");
                    //forward back to login page
            else if(session.getAttribute("authorized").equals("no"))
                //forward back to login page
        public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
            doGet(request, response);
    }If I'm not logged in, I want to simply forward back to the login page for now. If I am logged in, I want to forward to my home page. If my home page is a simple html page though, then what's to stop a person from just typing in the home page and getting to it? I would think it would need to be a jsp page but then the jsp page would have to have code in it to see if the user was logged in, and then I'd be back to where I was before.
    Edited by: JFactor2004 on Oct 21, 2009 7:38 PM
    Edited by: JFactor2004 on Oct 21, 2009 7:38 PM

  • Sharepoint 2013 search component best practice

    hi
    With a big SharePoint 2013 farm:
    2 WFE
    2 App server
    2 Search App server (havent set up these servers yet)
    What would the best way to divide the search componment between the two serarch app servers?
    Crawl component
    Crawls content sources to collect crawled properties and metadata from crawled items and sends this information to the content processing component.
    Content processing component
    Transforms the crawled items and sends them to the index component. This component also maps crawled properties to managed properties.
    Analytics processing component
    Carries out search analytics and usage analytics.
    Index component
    Receives the processed items from the content processing component and writes them to the search index. This component also handles incoming queries, retrieves information from the search index and sends back the
    result set to the query processing component.
    Query processing component
    Analyzes incoming queries. This helps optimize precision, recall and relevance. The queries are sent to the index component, which returns a set of search results for the query.
    Search administration component
    Runs the system processes for search, and adds and initializes new instances of search components.
    If you ignore the need for redunancy (we may add another 2 search app servers for that later).
    brgs
    Bjorn

    Hi Bjorn,
    According to your description, my understanding is that you want to deploy the search components in two search app servers.
    It depends on how many search service applications you need and the size of your environment.
    Here is a link about how to configure topology for one search service application with multiple search components across 2 servers for redundancy and performance:
    http://blogs.msdn.com/b/chandru/archive/2013/02/19/sharepoint-2013-configuring-search-service-application-and-topology-using-powershell.aspx
    You can also run the Query Processing component in web front server and run the other components in the search servers or application servers.
    Please refer to the link below:
    http://blogs.technet.com/b/meamcs/archive/2013/04/09/configuring-sharepoint-2013-search-topology.aspx?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+yahoo%2FZfiM+(Team+blog+of+MCS+%40+Middle+East+and+Africa)
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Searching for best practices or step by step directions for setting up governance framework specific to Project server 2013

    Hi! Could anyone lead me to the information i requested .
    thanks
    Aby

    Hope this blog helps
    http://blogs.technet.com/b/projectadministration/archive/2010/09/03/implementing-governance-in-sharepoint-2010-whitepaper.aspx
    Cheers! Happy troubleshooting !!! Dinesh S. Rai - MSFT Enterprise Project Management Please click Mark As Answer; if a post solves your problem or Vote As Helpful if a post has been useful to you. This can be beneficial to other community members reading
    the thread.

  • Searching for best practice recommendations regarding connecting Exchange calendars to SP 2010

    A user has requested assistancing setting up a web part on SP 2010 to display their "on call" calendar from Exchange.
    When she attempted it, she got the error that says, in part, "[...]
    This could be due to the
    fact that the server certificate is not configured properly with HTTP.SYS in the HTTPS case. This could also be caused by a mismatch of the security binding between the client and the server"
    I am a bit puzzled as to where to start. The admins for the Exchange server are in another group - it sounds to me like there is some sort of issue going on between SP 2010 and Exchange 2010, but I am not clear on how to proceed so that we can fix it.
    I do know that I have noticed in the event logs an Application error event that says that "an operation failed because the following certificate has validation errors" and later "SSL policy errors have been encountered. Error code '0x2'".
    In asking around, I was told that the site mentioned elsewhere in the error is a verisign signed site which has chained certificates. I have no idea what specific action triggered the error - the message says
    Source: Microsoft-SharePoint Products-SharePoint Foundation
    Task Category: Topology
    These may be two totally separate situations. I don't understand the certificate concept well enough to be able to determine that.
    Does this ring any bells with anyone?

    Hi,
    Thank you for your question. I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience. Thank you for your understanding and support.
    Thanks,
    Linda Li
    Linda Li
    TechNet Community Support

  • Best practice in implementation of SEM-CPM

    Is someone have  the experiance of implementing SEM-CPM using best practice. and if so, does it reduces implementation time?

    We should be able to adopt the best pratices when the software finally gets integrated into netweaver.
    Ravi Thothadri

  • Search for ABAP Webdynpro Best practice or/and Evaluation grid

    Hi Gurus,
    Managers or Team Leaders are facing of the development of SAP application on the web. Functional people propose to business people Web applications.  I'm searching for Best practice for Web Dynpro ABAP Development. We use SAP Netweaver 7.0 and an SAP ECC 6.0 SP4.
    We are facing of claims about Webdynpro response time. The business wants to have 3 sec response time and we have 20 or  25 sec.
    I want to communicate to functional people a kind of recommendation document explaining that in certain case the usage of Webdynpro will not be a benefit for the business.
    I know that the transfer of data, the complexity of the screen and also the hardware are one of the keys but I expect some advices from the SDN community.
    Thanks for your answers.
    Rgds,
    Christophe

    Hi,
    25s is a lot. I wouldn't like to use an application with response time that big. Anyway, Thomas Jung has just recently published a series of video blogs about WDA performance tools. It may help you analyzing why your web dynpro application is so slow. Here is the link to the [first part|http://enterprisegeeks.com/blog/2010/03/03/abap-freakshow-u2013-march-3-2010-wda-performance-tools-part-1/]. There is also a [dedicated forum|Web Dynpro ABAP; to WDA here on SDN. I would search there for some tips and tricks.
    Cheers

  • Best practice "changing several related objects via BDT" (Business Data Toolset) / Mehrere verbundene Objekte per BDT ändern

    Hallo,
    I want to start a
    discussion, to find a best practice method to change several related master
    data objects via BDT. At the moment we are faced with miscellaneous requirements,
    where we have a master data object which uses BDT framework for maintenance (in
    our case an insured objects). While changing or creating the insured objects a
    several related objects e.g. Business Partner should also be changed or
    created. So am searching for a best practices approach how to implement such a
    solution.
    One Idea was to so call a
    report via SUBMIT AND RETURN in Event DSAVC or DSAVE. Unfortunately this implementation
    method has only poor options to handle errors. Second it is also hard to keep LUW
    together.
    Another idea is to call an additional
    BDT instance in the DCHCK-event via FM BDT_INSTANCE_SELECT and the parameters
    iv_xpush_classic = ‘X’ and iv_xpop_classic = ‘X’. At this time we didn’t get
    this solution working correctly, because there is always something missing
    (e.g. global memory is not transferred correctly between the two BDT instances).
    So hopefully you can report
    about your implementations to find a best practice approach for facing such
    requirements.
    Hallo
    ich möchte an der Stelle eine Diskussion starten um einen Best Practice
    Ansatz zu finden, der eine BDT Implementierung/Erweiterung beschreibt, bei der
    verschiedene abhängige BDT-Objekte geändert werden. Momentan treffen bei uns
    mehrere Anforderungen an, bei deinen Änderungen eines BDT Objektes an ein
    anderes BDT Objekte vererbt werden sollen. Sprich es sollen weitere Objekte geänderte
    werden, wenn ein Objekt (in unserem Fall ein Versicherungsvertrag) angelegt
    oder geändert wird (zum Beispiel ein Geschäftspartner)
    Die erste unserer Ideen war es, im Zeitpunkt DSAVC oder DSAVE einen
    Report per SUBMIT AND RETURN aufzurufen. Dieser sollte dann die abhängigen Änderungen
    durchführen. Allerdings gibt es hier Probleme mit der Fehlerbehandlung, da
    diese asynchrone stattfinden muss. Weiterhin ist es auch schwer die Konsistenz der
    LUW zu garantieren.
    Ein anderer Ansatz den wir verfolgt hatten, war im Zeitpunkt
    DCHCK per FuBA BDT_INSTANCE_SELECT und den Parameter iv_xpush_classic = ‘X’ and
    iv_xpop_classic = ‘X’ eine neue BDT Instanz zu erzeugen. Leider konnten wir diese
    Lösung nicht endgültig zum Laufen bekommen, da es immer Probleme beim
    Übertragen der globalen Speicher der einzelnen BDT Instanzen gab.
    Ich hoffe Ihr könnt hier eure Implementierungen kurz beschreiben, dass wir
    eine Best Practice Ansatz für das Thema finden können
    BR/VG
    Dominik

  • Path to best practices.

    Hi experts,
    I am searching for SAP best practises for XI....i am unable to trace the path in sdn and service.sap.com
    Could you let me know the path for it.
    Thanks in advance.
    Kiran.

    Hi Kiran,
    If you are interested in SAP Best Practices please follow the links below for more information:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8519e590-0201-0010-6280-d0766e58de6a
    •  SAP Best Practices on the SAP Service Marketplace
    •  SAP Best Practices for High Tech in the SAP Help Portal
    http://help.sap.com/bp_hightechv1500/HighTech_DE/index.htm
    also read :
    /people/marian.harris/blog/2005/06/23/need-to-get-a-sap-netweaver-component-implemented-quickly-try-sap-best-practices
    *Pls: Reward points if helpful*
    Regards,
    Jyoti

  • Where i got SAP- XI Best Practices?

    where i got SAP- XI Best Practices? Can any one send link or doc

    Hi,
    Mentioned hereunder are some of XI Best Practices:-
    ASAP methodology:-
    https://websmp206.sap-ag.de/~sapidb/011000358700004919702004E
    http://help.sap.com/bp_bpmv130/index.htm
    Realtime Case Studies-
    http://www.sap.com/usa/search/index.epx?ct=international&mode=quick&q1=BestPracticesof+XI
    This blog will give more broader view
    /people/marian.harris/blog/2005/06/23/need-to-get-a-sap-netweaver-component-implemented-quickly-try-sap-best-practices
    Regards.
    Praveen

  • Expired Updates Removal - Best Practices

    http://blogs.technet.com/b/configmgrteam/archive/2012/04/12/software-update-content-cleanup-in-system-center-2012-configuration-manager.aspx
    I was searching for best practices for removing expired updates from environment and found this useful link.
    There are some queries :
    1) It actually says to remove all the expired updates in one go without removing them from SUG's first. When the expired updates which are also part of active SUG are removed, wouldn't this trigger a software update rescan request for all clients in the collection
    to which these SUG's were targeted to, to rescan the patches required as there was a change in the SUG ? 
    2) How about deleting the deployments from collections and then removing the expired updates from only those SUG and proceed in this way. Wouldn't this lower the processing ?
    3) The expired update not part of any SUG will be removed, just to make sure, if the expired update is part of SUG but not targeted to any collection, will it still be removed ?
    4) Once the expired update is removed, what will be the process of its removal from the Distribution Point. What other automated tasks will be triggered for this like updatation of software update packages on DP once there is any change etc? I have been prestaging
    software update packages and extracting them on DP's. For any new DP, as the prestage still contains the older updates (expired, which were removed), Will they get extracted on new DP ? 
    Are all the steps i mentioned above valid in case of superseded updates instead of expired ?

    I am not clear of the below Jacob :
     If you delete the deployment, all of the policy for those updates will be removed. 
    But, that removes every single update and not just the ones you removed.  A bit more processing goes into removing everything.
    What my concern here is, suppose there are 10 SUG's deployed to 40 collections each. lets
    say there are 1000 updates.
    If i select all the expired updates and just edit their membership, suppose random udpates
    are part of all 10 SUG deployments. Removing these will trigger the policy cycle for all the collection clients.
    What i was talking about is, if I pick up 1 SUG out of 10 and remove it from 40 collections
    first. Once it is done, then go ahead with removing the expired updates from this SUG.
    This is what i need some clarification on.

  • Best practice steps of configuration

    Hello All
    Can anyone write back on What is the best practice steps of configuration in HCM for a new implementation.
    Thanks

    Hi,
    SAP Best Practices is prepacked ready to use solutions for small and medium size Business units (SMBs)
    SAP Best practices is based on  Building Block methodology
    SAP Best Practices is fully documentation including preconfigured business processes, training material, data conversion tools, and test catalogs.
    Best Practcies is totally Buidleing block Methods.
    Building Blockss Contains:
    Business Configuration Sets (BC Sets)
    Sample master data
    Configuration documentation
    Print forms or reports
    Business Configuration Sets are group of Configuration Sets. As We can say group of tables for specific Business Process.
    for more details go help.sap.com., then go for Best practices you will very useful information.
    Regs,
    Brahma

  • Importing best practices baseline package (IT) ECC 6.0

    Hello
    I hope is the right forum,
    i've a sap release ECC 6.00 with stack abap 14.
    In this release i have to install the preconfigured smartforms that now are called
    best practices baseline package. These pacakges are localized and mine is for Italy:
    SAP Best Practices Baseline Package (IT)
    the documents about the installation say that the required support package level has to be with stack 10.
    And it says :
    "For cases when the support package levels do not match the Best Practices requirements, especially when HIGHER support package levels are implemented, only LIMITED SUPPORT can be granted"
    Note 1044256
    By your experience , is it possible to do this installation in this support package condition?
    Thanks
    Regards
    Nicola Blasi

    Hy
    a company wants to implement the preconfigured smartforms in a landscape ECC 6.0
    I think that these smartforms can be implement using the SAP best practices , in particular the baseline package ....see service.sap.com/bestpractices  --> baseline package;  once installed you can configured the scenario you want....
    the package to download is different each other ,depends the localization...for example italy or other country but this is not important at the moment....
    the problem is the note 1044256...it says that to implement this, i must have the support package level requested in this note...not lower and above all not higher.......
    before starting with this "baseline package" installation i'd like to know if i can do it because i have a SP level of 14 for aba e basis for example....while the notes says that want a SP level of 10 for aba e basis.
    what i can do?
    i hope is clear now....let me know
    thanks
    Nicola

  • SAP Best practices - XI

    Hi All,
    Can any one point me where can i see SAP recommending XI and also XI next version roadmap
    and links to articles/stories about discontinuing business connectors to other vendor eai/etl tools to sap?
    Thanks
    Message was edited by: kumar p

    Hi Kumar,
    The need for XI i clearly explained in the below pdf.
    http://h71028.www7.hp.com/enterprise/downloads/HP%20solutions%20for%20SAP%20XI.pdf
    The blog below clearly explains about the SAP Best Practices.
    /people/marian.harris/blog/2005/06/23/need-to-get-a-sap-netweaver-component-implemented-quickly-try-sap-best-practices
    and if you generally wanna know more about SAP XI. Please do tell and i can give you a fair amount of idea regarding the same.
    I hope I have answered your query.
    Regards,
    Abhy
    PS: AWARD POINTS FOR HELPFUL ANSWERS.

Maybe you are looking for

  • Merge join issue

    hi all, In my project am using table type varibale as paramter with the columns of id salary to the table. In my procedure i have used merge join with the passed table type variable with the existing table.Insert the value given id does not match,upd

  • Vector automatically converted to Bitmap

    Hi, I need a Card flip animation.I have a vector "Spade A" in a moviclip named mc. For the flip animation i want to apply "rotationY". When i apply mc.rotationY=45, It automatically converth the vector into Bitmap. i tryed mc.cacheAsBitmap=false;But

  • Generating RMON SNMP Traps

    I am trying to generate SNMP traps from RMON events but they won't work.  I have the following test configuration: snmp-server host 10.1.1.1 version 2c TEST snmp-server enable traps rmon event 1 log trap PUBLIC description "TEST TEST TEST" owner conf

  • Cant read incoming text

    It just started today..I have received many text from this person, but when he texts me I get all this mixed up message:s text.0.txtremoved attacments text 0.txt dottedline350.gif Only does this on my globe droid. called verizon they dont have the an

  • AppleID password doesn't sync.

    I recently bought a Mac and have had nothing but problems with my AppleID. It requested that I make a new user name upon inital start up which means I had to get rid of my original ID that I've had for years! Secondly, I tried to sync everything to m