sword: index based search implemented