warelab / gramoogle

Gramene Search Interface
MIT License
0 stars 4 forks source link

wide selection leads to enormous query #145

Closed ajo2995 closed 8 years ago

ajo2995 commented 8 years ago

Since the selection filter enumerates the bins that are within the selected region, the query can become unacceptably large for the server (414 Request-URL Too Large).

The filter should be reformatted to a set of non-overlapping ranges fq=fixed_1000__bin:(28008 TO 29007)

mycrobe commented 8 years ago

Correct format is with square or curly braces. Square braces are inclusive, curly are exclusive (see http://grokbase.com/t/lucene/solr-user/137xgtc9h0/solr-query-range-upper-exclusive). Ranges can be combined, so, for example, the following URL:

http://devdata.gramene.org/v50/search?fq=fixed_1000__bin:([28008 TO 28009] [28010 TO 28011])