code/BootstrapTagField.php
public function query(SS_HTTPRequest $r) {
		return $this->formatJSON($this->source->filter(array(
			$this->labelField.':PartialMatch' => $r->getVar('q')
		))
		->limit(10));
	}
public function query(SS_HTTPRequest $r) {
		return $this->formatJSON($this->source->filter(array(
			$this->labelField.':PartialMatch' => $r->getVar('q')
		))
		->limit(10));
	}
public function query ( SS_HTTPRequest $ r ) { return $ this -> formatJSON ( $ this -> source -> filter ( array ( $ this -> labelField . ':PartialMatch' => $ r -> getVar ( 'q' ) ) ) -> limit ( 10 ) ) ; }
An AJAX endpoint for querying the typeahead

@param  SS_HTTPRequest $r The request
@return string            JSON
An AJAX endpoint for querying the typeahead