<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Sean,<div class=""><br class=""></div><div class="">Have you tried escaping the space in your query?</div><div class=""><br class=""></div><div class=""><a href="http://stackoverflow.com/questions/10023133/solr-wildcard-query-with-whitespace" class="">http://stackoverflow.com/questions/10023133/solr-wildcard-query-with-whitespace</a></div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 5, 2016, at 6:24 PM, sean mcevoy <<a href="mailto:sean.mcevoy@gmail.com" class="">sean.mcevoy@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi List,<br class=""><br class="">We have a solr index where we store something like:<br class=""><<"{\"key_s\":\"ID\",\"body_s\":\"some test string\"}">>}],<br class=""><br class="">Then we try to do a riakc_pb_socket:search with the pattern:<br class=""><<"body_s:*test str*">><br class=""><br class="">The request will fail with an error message telling us to check the logs and in there we find:<br class=""><br class="">2016-09-05 13:37:29.271 [error] <0.12067.10>@yz_pb_search:maybe_process:107 {solr_error,{400,"<a href="http://localhost:10014/internal_solr/crm_db.campaign_index/select" class="">http://localhost:10014/internal_solr/crm_db.campaign_index/select</a>",<<"{\"error\":{\"msg\":\"no field name specified in query and no default specified via 'df' param\",\"code\":400}}\n">>}} [{yz_solr,search,3,[{file,"src/yz_solr.erl"},{line,284}]},{yz_pb_search,maybe_process,3,[{file,"src/yz_pb_search.erl"},{line,78}]},{riak_api_pb_server,process_message,4,[{file,"src/riak_api_pb_server.erl"},{line,388}]},{riak_api_pb_server,connected,2,[{file,"src/riak_api_pb_server.erl"},{line,226}]},{riak_api_pb_server,decode_buffer,2,[{file,"src/riak_api_pb_server.erl"},{line,364}]},{gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]<br class=""><br class=""><br class="">Through experiment I've figured out that it doesn't like the space as it seems to think the part of the search string after that space is a new key to search for. Which seems fair enough.<br class=""><br class="">Anyone know of a work-around? Or am I formatting my request incorrectly?<br class=""><br class="">Thanks in advance.<br class="">//Sean.<br class=""><br class=""></div>
_______________________________________________<br class="">riak-users mailing list<br class=""><a href="mailto:riak-users@lists.basho.com" class="">riak-users@lists.basho.com</a><br class="">http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com<br class=""></div></blockquote></div><div class=""><div class=""><br class=""><div class=""><br class=""></div></div><br class="Apple-interchange-newline">

</div>
<br class=""></div></body></html>