 # Copyright 2010-2012 RethinkDB, all rights reserved.
+# TODO: We changed so many times the behavior of the suggestions, the code is a mess. We should refactor soon.
 module 'DataExplorerView', ->
     class @Container extends Backbone.View
         id: 'dataexplorer'

        # Suggestions[state] = function for this state
        suggestions: {}
    
        set_docs: (data) =>
            # Create the suggestions table
            suggestions = {}

            return 0

        # Append suggestion and display them or hide them if suggestions is empty
        # Returns true if we found some suggestion, else false
        append_suggestion: (query, suggestions) =>
            @hide_suggestion()
            splitdata = query.split('.')
