fastcastsearch code