Riak search: wildcard searches in the middle of a term does not work

Joshua Partogi jpartogi at scrum8.com
Thu Feb 3 21:16:12 EST 2011


Thanks Rusty. I thought it would follow the same rule with Lucene. I must've
missed that documentation.

Kind regards,
Joshua.

On Fri, Feb 4, 2011 at 12:41 AM, Rusty Klophaus <rusty at basho.com> wrote:

> Hi Joshua,
>
> Riak Search currently only handles wildcards at the end of a term. (See the
> "Wildcard Searches" section -
> http://wiki.basho.com/Riak-Search---Querying.html)
>
> Best,
> Rusty
>
> On Thu, Feb 3, 2011 at 6:34 AM, Joshua Partogi <joshua.java at gmail.com>wrote:
>
>> Hi,
>>
>> I tried to query my document using wildcard in the middle of a term
>> through solr web interface through this address: curl "
>> http://localhost:8098/solr/test-pages/select?q=title:M*in"
>>
>> It does not return any result:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <response>
>>   <lst name="responseHeader">
>>     <int name="status">0</int>
>>     <int name="QTime">0</int>
>>     <lst name="params">
>>       <str name="indent">on</str>
>>       <str name="start">0</str>
>>       <str name="q">title:M*in</str>
>>       <str name="q.op">or</str>
>>       <str name="df">value</str>
>>       <str name="wt">standard</str>
>>       <str name="version">1.1</str>
>>       <str name="rows">0</str>
>>     </lst>
>>   </lst>
>>   <result name="response" numFound="0" start="0" maxScore="0.0">
>>   </result>
>> </response>
>>
>>
>> However adding the wildcard at the end works: curl "
>> http://localhost:8098/solr/test-pages/select?q=title:Main*"
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <response>
>>   <lst name="responseHeader">
>>     <int name="status">0</int>
>>     <int name="QTime">3</int>
>>     <lst name="params">
>>       <str name="indent">on</str>
>>       <str name="start">0</str>
>>       <str name="q">title:Main*</str>
>>       <str name="q.op">or</str>
>>       <str name="df">value</str>
>>       <str name="wt">standard</str>
>>       <str name="version">1.1</str>
>>       <str name="rows">1</str>
>>     </lst>
>>   </lst>
>>   <result name="response" numFound="1" start="0" maxScore="0.00000e+0">
>>     <doc>
>>       <str name="id">Main
>>       </str>
>>       <str name="content">Welcome to Test
>>       </str>
>>       <str name="created_at">Sat Jan 29 13:57:14 UTC 2011
>>       </str>
>>       <str name="creator_id">4d44049d1d41c8100e00001a
>>       </str>
>>       <str name="slug">Main
>>       </str>
>>       <str name="title">Main
>>       </str>
>>       <str name="updated_at">Thu Feb 03 10:48:54 UTC 2011
>>       </str>
>>       <str name="updater_id">4d4a87d61d41c81229000006
>>       </str>
>>     </doc>
>>   </result>
>>
>>
>> Can you please advise what I am doing wrong or anything else that I need
>> to configure here? I am using Riak search 0.14 with Erlang R14B.
>>
>> Thank you very much for your assistance.
>>
>>
>> Kind regards,
>> Joshua.
>>
>> --
>> http://twitter.com/jpartogi
>>
>> _______________________________________________
>> riak-users mailing list
>> riak-users at lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>


-- 
http://twitter.com/jpartogi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110204/cab45567/attachment.html>


More information about the riak-users mailing list