3 Replies Latest reply on Dec 4, 2013 3:14 PM by bleathem

    Can anyone provide an example of Faceted Search using Richfaces 4 to develop the UI?

    mattsmithus

      My client is using Richfaces 4.01 (standard in-house platform) to develop the UI of what is currently a fairly rudimentary search capability within a home grown enterprise application.  This is fine for internal use, however we plan to open up the application to external customers next year and the UI, and Search in particular, need to be a lot sharper.

       

      Objective is to employ the "faceted search" technique, seen in the "Refine Results" panel on the attached screenshot of Dice.com. I would like to point to real-life examples developed with Richfaces 4, to demonstrate to the client business and dev teams that they can achieve something similar to the Dice example using Richfaces 4

       

      Dice Faceted Search.png

       

       

      Thanks in advance and kind regards

       

      Matt

        • 1. Re: Can anyone provide an example of Faceted Search using Richfaces 4 to develop the UI?
          bleathem

          From your screen shot it's not clear to me the difference between a "faceted search" and a regular one.  Can you be more specific about the details of your use case?

          • 2. Re: Can anyone provide an example of Faceted Search using Richfaces 4 to develop the UI?
            mattsmithus

            Hi Brian.  To most people this probably is a regular search, however to my client it's a new and complex way to render a search and filter capability.  There are two parts to the use case:

             

            1) There is a single entry field for basic search criteria, and a drop down to the left of that input field that decides what the parameter is, x number, y number or z number.  Field level validation should be dynamic to ensure the x number entered is 9 digits long, y number is 6 digits long and z number is 9 chars alpha-numeric.

             

            2)  The Faceted bit.  Upon rendering the search results a "Refine Results" panel to the left shows the attribute types that can be used to filter (the 'facets").  Each of these can be expanded to show the specific values that will be the filter (the "facet values"), and each value has a count next to it of the number of times it exists within the current set of results.  When a value is clicked it is removed from the facet list and shows as a search criteria item in a "Current Search" panel above, and the search results are narrowed.  The user can "Undo" that search criteria, which returns it to the list of facet value and broadens the search results.

             

            See www.dice.com for an example of point 2) in action.

            • 3. Re: Can anyone provide an example of Faceted Search using Richfaces 4 to develop the UI?
              bleathem

              This sounds like the perfect use case for JSF/RichFaces

               

              I don't have an example to direct you to, but there are plenty of examples on the web of using JSF to:

               

              1) Programmatically validate data with a custom validator

              2) Conditionally render panels/facets based on backing bean values.

               

              If I were you I'd proceed with a PoC.  Feel free to post back to this forum with any questions.

               

              Brian