Re: Spaces in the search string

2016-09-08 Thread sean mcevoy
Hi Alexander, Unfortunately it didn't shake with any satisfaction. I'm sure there's an easy answer, and I hope I'll get back to search for it some day. But for now me & my pragmatic overlords have gone for a work-around solution that avoids the problem. //Sean. On Wed, Sep 7, 2016 at 2:06 PM, Ale

Re: Spaces in the search string

2016-09-07 Thread Alexander Sicular
Hi Sean, Familiarize yourself with the default schema[0], if that is what you're using. Also check details around this specific type of search around the web[1]. Let us know how it shakes out, -Alexander [0] https://raw.githubusercontent.com/basho/yokozuna/develop/priv/default_schema.xml [1] htt

Re: Spaces in the search string

2016-09-07 Thread sean mcevoy
Hi again! Apologies for the premature post earlier. I thought I had a solution when I didn't get the error but when I got around to plugging it into my application it's still not doing everything that I need. I've narrowed it down to this minimal testcase, first setup the index & insert the data:

Re: Spaces in the search string

2016-09-07 Thread sean mcevoy
Hi Jason, Thanks for the kick, I just needed to look closer! Yes, had tried escaping but one of my utility functions for dynamically building the search string had been stripping it out again. D'oh! Curiously, just escaping the space doesn't work as in the example in the stackoverflow post. Putti

Re: Spaces in the search string

2016-09-06 Thread Jason Voegele
Hi Sean, Have you tried escaping the space in your query? http://stackoverflow.com/questions/10023133/solr-wildcard-query-with-whitespace > On Sep 5, 2016, at 6:24 PM, sean mcevoy wrote: > > Hi List, > > We have a solr index where we store something like: > <<"{\"key_s\":\"ID\",\"body_s\":\"

Spaces in the search string

2016-09-05 Thread sean mcevoy
Hi List, We have a solr index where we store something like: <<"{\"key_s\":\"ID\",\"body_s\":\"some test string\"}">>}], Then we try to do a riakc_pb_socket:search with the pattern: <<"body_s:*test str*">> The request will fail with an error message telling us to check the logs and in there we f