I would expect the first one to fail.  IIRC, there is a bug when following a 
single char with a wildcard

-Ryan

[Sent from my iPhone]

On Jun 27, 2011, at 4:25 PM, Germain Maurice <[email protected]> 
wrote:

> Hello everybody,
> 
> I have a problem with riaksearch 0.14.2 when searching the document i have in 
> my bucket "affinities" :
> {
>               "start" : "20110417",
>               "end" : "20110510",
>                "data" : {
>                    ...
>                }
> }
> 
> When i request the index with this query (without escaping special 
> characters) :
> curl -vv 'http://localhost:8098/solr/affinities/select?q=nsid:83786678@N00 
> AND start:[2* TO 20110501]&wt=json&rows=1'
> it returns the document.
> 
> When i request the index with this query :
> curl -vv 'http://localhost:8098/solr/affinities/select?q=nsid:83786678@N00 
> AND start:[20* TO 20110501]&wt=json&rows=1'
> i get a Bad Request error (HTTP 400) and this error in the riak console :
> 
> =ERROR REPORT==== 27-Jun-2011::22:05:04 ===
> Unable to parse request: {badmatch,
>                             {error,
>                                 {lucene_parse,
>                                     "syntax error before: [50,48,42]"}}}
> [{riak_search_client,parse_query,3},
> {riak_solr_searcher_wm,malformed_request,2},
> {webmachine_resource,resource_call,3},
> {webmachine_resource,do,3},
> {webmachine_decision_core,resource_call,1},
> {webmachine_decision_core,decision,1},
> {webmachine_decision_core,handle_request,2},
> {webmachine_mochiweb,loop,1}]
> 
> I think there is an error in parsing the query, am i wrong ?
> 
> Germain
> 
> 
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to