help with riak search

Daniel Reverri dan at basho.com
Mon Apr 2 16:35:37 EDT 2012


>From the Erlang console you have escape twice (not sure why): 
search:search_doc(<<"searchable-dbooks">>, <<"notes:\\&">>).

Thanks,
Dan

-- 
Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
dan at basho.com


On Monday, April 2, 2012 at 1:29 PM, Wes James wrote:

> On Mon, Apr 2, 2012 at 1:45 PM, Daniel Reverri <dan at basho.com (mailto:dan at basho.com)> wrote:
> 
> <snip>
> 
> 
> > 
> > I was able to search for "&" by escaping the character:
> > search-cmd search wildcards "value:\&"
> 
> 
> 
> with the erlang command, I get an error:
> 
> (riak at 127.0.0.1 (mailto:riak at 127.0.0.1))25>
> search:search_doc(<<"searchable-dbooks">>,<<"notes:\&">>).
> ** exception error: no match of right hand side value
> {error,{lucene_parse,"syntax error before: \"&\""}}
> in function riak_search_client:parse_query/3
> in call from search:search_doc/3
> 
> or even with no escape for &:
> 
> (riak at 127.0.0.1 (mailto:riak at 127.0.0.1))26> search:search_doc(<<"searchable-dbooks">>,<<"notes:&">>).
> ** exception error: no match of right hand side value
> {error,{lucene_parse,"syntax error before: \"&\""}}
> in function riak_search_client:parse_query/3
> in call from search:search_doc/3
> 
> <snip>
> 
> Thanks,
> 
> -wes 






More information about the riak-users mailing list