Skip to content

Commit

Permalink
Fixing documentcloud#36: Adding examples to README (actually, the ind…
Browse files Browse the repository at this point in the history
…ex.html)
  • Loading branch information
samuelclay committed Nov 27, 2011
1 parent 980f2a7 commit 605acb3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,18 @@ <h2 id="usage">Usage</h2>
...
}</code></pre>
</li>
<li class="javascript">Inspect the Visual Search box
<pre><code>// 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&lt;country:"South Africa">,
// FacetModel&lt;account:5-samuel>,
// FacetModel&lt;title:"Pentagon Papers">]
</code></pre>
</li>
</ol>


Expand Down

0 comments on commit 605acb3

Please sign in to comment.