PHP/Sphinxsearch - searching for string or lat lng
问题 I need to find all results where city name matches string OR latitude and longitute is between given values. My index looks like this: sql_field_string = city sql_attr_float = lat sql_attr_float = lng Is there any way to use attributes in query? Or can I use in query values from $s->setSelect()? I know I can easily filter results using $s->setFilterFloatRange() but OR condition is essential for me in this case. This works fine: $s->SetFilterFloatRange('lat', $_GET['lat'] - $_GET['distance'],