By default, it only autocompletes against the value
property. If you want it to check against other values, set a tokens
property that contains an array of single-word tokens.
See https://github.com/twitter/typeahead.js#datum
And here is your fiddle, updated: http://jsfiddle.net/LHeYy/1/
$('#inputBox').typeahead([
{
name: 'best-picture-winners',
local: [
{key: 'some key', value: 2014, tokens: ['some', 'key']},
{key: 'some key 2', value: 2015, tokens: ['some', 'key', '2']},
{key: 'some key4', value: 2016, tokens: ['some', 'key4']}
],
template: '<p><strong>{{key}} {{value}}</strong></p>',
engine: Hogan,
valueKey: 'value'
}
]);