From cbeab30d5e780bc3cea059becb653e1996d94221 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Mon, 14 Nov 2016 11:03:54 -0700 Subject: [PATCH] allow for precise search for strings, fixes #82 --- controller/search.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/search.go b/controller/search.go index 0a775210..b339b897 100644 --- a/controller/search.go +++ b/controller/search.go @@ -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 {