Highlighting in full-text search
hector at basho.com
Thu May 1 16:19:12 EDT 2014
In order to take advantage of the Riak Search/Solr highlighting
capabilities from Python (right now), you're best bet may be to use a
Python Solr client for queries. The Riak client for Python is still not
100% compatible with Riak 2.0 (although the master branch has some
Using the examples provided in the basic usage for search documentation
, I was able to retrieve highlighting snippets via HTTP using the
following set of query string parameters:
$ curl -s
python -mjson.tool | grep -A6 "highlighting"
(Note the <em> tags surrounding the term that matches the query.)
On Thu, May 1, 2014 at 5:02 AM, Chaim Solomon <chaim at itcentralstation.com>
> I am not able to figure out how to get the highlighting to work.
> I am using 2.0.0beta1 which states that it supports highlighting - but it
> seems not really documented besides the reference to the Solr
> I am using the Python client.
> The documentation states that I need to set hl=true. But where?
> It doesn't seem to be one of the parameters that the method search accepts
> (looked in the source code).
> How do I get that parameter into the search?
> Can anyone provide an example?
> Chaim Solomon
> riak-users mailing list
> riak-users at lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the riak-users