Linguistic geometry: efficient search