fix a bug in bow matching

result format is wrong; object search only return one line of results
for nn search