Ah, OK - thanks!  Yes - that worked....

-wes


On Mon, Apr 2, 2012 at 2:35 PM, Daniel Reverri <[email protected]> wrote:
> 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.
> [email protected]
>
>
> On Monday, April 2, 2012 at 1:29 PM, Wes James wrote:
>
>> On Mon, Apr 2, 2012 at 1:45 PM, Daniel Reverri <[email protected] 
>> (mailto:[email protected])> 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:
>>
>> ([email protected] (mailto:[email protected]))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 &:
>>
>> ([email protected] (mailto:[email protected]))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
>
>

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

Reply via email to