Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8937961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:30:44+00:00 2026-06-15T10:30:44+00:00

Recently ive been searching for a good autocomplete plugin and I came across the

  • 0

Recently ive been searching for a good autocomplete plugin and I came across the visualsearch.js plugin. It really interested me. What I was wondering is instead of providing value matches for the facets that user selects, is it possible to get the value matches for the user input inside all the facet categories. Like if the user types in “AP”, user should get matches to word “AP” inside all facets likes “access”, “country”.

To explain correctly, I want to take both facet and matched values programatically. not through a fixed set of input. Ive found a way to do one is this way

http://jsfiddle.net/HRuAP/49/

so if we select job.name inside job facet, it should select the facet name as job : job.name instead of getting the displaying it as job.name: and again going for some value matches. im trying to integrate value matches and facet matches in to a single function so both takes place on single click.

My input to visual search callback is in JSONJ format. {"Regions":[{"name":"africa"}],"Company":[{"name":"google"}],"Persons":[{"name":"marc zuckerberg"},{"name":"matt romney"}]}

is it possible to achieve it using visual search?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:30:45+00:00Added an answer on June 15, 2026 at 10:30 am

    You can try this , i had the same situation too.

    Try mixing two plugins.

    one was jquery auto complete and the other is http://ioncache.github.com/Tag-Handler/ to create tags

    First I integrated to “Categories” and “multi values” script in to one and added facet categorywise division in auto complete..

    then added http://ioncache.github.com/Tag-Handler/ so that tags are created on entering or on selection

    This is the script part

    function split( val ) {
                return val.split( /,\s*/ );
            }
    
    function extractLast( term ) {
                return split( term ).pop();
            }
    
    $(document).ready(function(){
    $(".methodButton").button();
    
                    $("#callback_tag_handler").tagHandler({
                        autocomplete: false,
                        onAdd: function(tag) { console.log('Added tag: ' + tag); return 1; },
                        onDelete: function(tag) { console.log('Deleted tag: ' + tag); return 1; }
                    });
    
    
      $.widget( "custom.catcomplete", $.ui.autocomplete, {
            _renderMenu: function( ul, items ) {
                var that = this,
                    currentCategory = "";
                $.each( items, function( index, item ) {
                    if ( item.category != currentCategory ) {
                        ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
                        currentCategory = item.category;
                    }
                    that._renderItemData( ul, item );
                });
            }
        });  
           var data = [
                { label: "anders", category: "" },
                { label: "andreas", category: "" },
                { label: "antal", category: "" },
                { label: "annhhx10", category: "Products" },
                { label: "annk K12", category: "Products" },
                { label: "annttop C13", category: "Products" },
                { label: "anders andersson", category: "People" },
                { label: "andreas andersson", category: "People" },
                { label: "andreas johnson", category: "People" }
            ];
    
           $( ".tagInputField" )
                // don't navigate away from the field on tab when selecting an item
                .live( "keydown", function( event ) {
                    if ( event.keyCode === $.ui.keyCode.TAB &&
                            $( this ).data( "autocomplete" ).menu.active ) {
                        event.preventDefault();
                    }
                }).catcomplete({
                    minLength: 0,
                    source: function( request, response ) {
                        // delegate back to autocomplete, but extract the last term
                        response( $.ui.autocomplete.filter(
                            data, extractLast( request.term ) ) );
                    },
                    focus: function() {
                        // prevent value inserted on focus
                        return false;
                    },
                    select: function( event, ui ) {
                        var terms = split( this.value );
                        // remove the current input
                        terms.pop();
                        // add the selected item
    if(ui.item.category=" "){
    terms.push("Text : "+ ui.item.value );
    }else{
    terms.push(ui.item.category+" : "+ ui.item.value );
    }
    
                        // add placeholder to get the comma-and-space at the end
    //addTag();
                        terms.push( "" );
                        this.value = terms.join( " " );
                        return false;
                    }
                });
          });
    

    and HTML part is

    <div id="container">
                <ul id="callback_tag_handler"></ul>
    </div>
    

    Thanks
    Vineeth

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ive been faced with a problem recently that I can't think of a good
I've been searching and reading up on SignalR recently and, while I see a
I've been interested in hardware programming recently, but I have not started yet. I
Okay so ive been reading up on and working with SQLite recently (someone on
I've been looking into Varnish recently and doing some heavy Google searching. We've recently
Ive been starting to do javascript and jQuery recently and one thing I constantly
Ive been wondering, how much faster does c run than objective c? From what
Recently I've been very interested with GWT and Google App Engine. Although I know
Recently I've been working on some embedded devices, where we have some structs and
Recently I've been playing a bit with Groovy and Grails and I have to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.