Hi Wes

On Monday, April 2, 2012 at 10:05 AM, Wes James wrote:

> Is there documentation to indicate what riak search supports in search
> operations.


The best available documentation is here:
http://wiki.basho.com/Riak-Search.html
  
>  
> I have been testing some searches and even looked at:
>  
> http://lucene.apache.org/core/old_versioned_docs/versions/3_5_0/queryparsersyntax.html
>  
> for some ideas.
>  
> These work:
>  
> search:search_doc(<<"searchable-dbooks">>,<<"notes:Water">>).
> search:search_doc(<<"searchable-dbooks">>,<<"notes:water">>).
> search:search_doc(<<"searchable-dbooks">>,<<"notes:water OR notes:Water">>).
>  
> But these don't
>  
> ? seems to work at the end but not in the middle. Same with *. Why?
>  
> search:search_doc(<<"searchable-dbooks">>,<<"notes:Wate?">>) works.
>  
> But not
>  
> search:search_doc(<<"searchable-dbooks">>,<<"notes:Wa?er">>).

Currently wildcard searches are only supported at the end of the term:
http://wiki.basho.com/Riak-Search---Querying.html#Wildcard-Searches
  
>  
>  
> How would you search for "&"? maybe it is too short to be searched on
>  
> search:search_doc(<<"searchable-dbooks">>,<<"notes:&">>). In order to
> index "&", I had to use "&amp;":
>  
> <field name='notes'>Category: Water &amp; Wetlands (W)</field>.

I was able to search for "&" by escaping the character:
search-cmd search wildcards "value:\&"
  
>  
> When an xml file is indexed, say:
>  
> <add>
> <doc>
> <field name='id'>0</field>
> <field name='title'>Ekologie lučních porostů (A)</field>
> <field name='author_editor'>Rychnovská, Milena, Emilie
> Balátová-Tuláčková, Blanka Úlehlová, Jaroslav Pelikán</field>
> <field name='date_of_publication'>1985</field>
> <field name='publisher'>Academia</field>
> <field name='notes'>amazon 5/22/09 Category: Ecology (Y)</field>
> <field name='valuation'>8.00</field>
> <field name='purchase_price'>10.00</field>
> </doc>
> </add
>  
> I try to search on id, but it does nothing:
>  
> search:search_doc(<<"searchable-dbooks">>,<<"id:0">>).
> {0,"0.0",[]}


I'm not sure about this one.
  
>  
> Thanks,
>  
> Wes
>  
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com (mailto:riak-users@lists.basho.com)
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Thanks,
Dan
  
--  
Daniel Reverri
Developer Advocate
Basho Technologies, Inc.
d...@basho.com




_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to