allow for precise search for strings, fixes #82

This commit is contained in:
Josh Baker 2016-11-14 11:03:54 -07:00
parent fa74d14942
commit cbeab30d5e
1 changed files with 3 additions and 0 deletions

View File

@ -383,6 +383,9 @@ func (c *Controller) cmdSearch(msg *server.Message) (res string, err error) {
},
)
} else {
// must disable globSingle for string value type matching because
// globSingle is only for ID matches, not values.
sw.globSingle = false
s.cursor = sw.col.SearchValuesRange(
s.cursor, g.Limits[0], g.Limits[1], s.desc,
func(id string, o geojson.Object, fields []float64) bool {