Support offsets in prefix searches

Requires I7a27a64e in core to be useful

Change-Id: Ie4a5653572d62c1f5c2392b1ebd35ae02dbe0777