diff --git a/index.html b/index.html index f1af7e7..e8ec310 100644 --- a/index.html +++ b/index.html @@ -476,6 +476,18 @@

Usage

... } +
  • Inspect the Visual Search box +
    // Returns the unstructured search query
    +visualSearch.searchBox.value() 
    +// "country: "South Africa" account: 5-samuel title: "Pentagon Papers""
    +
    +// Returns an array of Facet model instances
    +visualSearch.searchQuery.facets()
    +// [FacetModel<country:"South Africa">, 
    +//  FacetModel<account:5-samuel>, 
    +//  FacetModel<title:"Pentagon Papers">]
    +
    +