allow for precise search for strings, fixes #82

This commit is contained in:
Josh Baker 2016-11-14 11:05:28 -07:00
parent 5ec3111e8b
commit d61b194e49
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 {