added inexact search to get query