Hi Tom,
I saw that documentation but it is not clear how to define that schema on
auto-indexed key value search.
The commands given are below
# Set an index schema.
bin/search-cmd set-schema Index SchemaFile
# View the schema for an Index.
bin/search-cmd show-schema Index
I don't know what is "Index" in this context, is it the bucket name?
I did "search-cmd install <bucket name>" to add a pre commit hook to that
bucket.
Thanks
--
Mridul
On 11-Nov-2012, at 1:20 AM, Thomas Santero wrote:
> Hi Mridul,
>
> The standard analyzer will automatically convert all letters to lowercase, so
> all you need to do is create a custom schema for your JSON field names using
> {analyzer_factory, {erlang, text_analyzers, standard_analyzer_factory}} and
> set the schema as it described in the documentation[0].
>
> [0]
> http://docs.basho.com/riak/latest/cookbooks/Riak-Search---Schema/#Defining-a
> Schema
>
> Tom
>
> On Sat, Nov 10, 2012 at 2:39 PM, Mridul Kashatria <[email protected]>
> wrote:
> Hi,
>
> I was trying Riak's auto-indexed search on a bucket using the standard pre
> commit hook. The JSON objects that I save have title and description fields
> which need to be treated as full text search.
>
> Problem is that I could not find how to do case insensitive full text search
> on the bucket. In the document at
> http://docs.basho.com/riak/latest/cookbooks/Riak-Search---Schema/ I can see
> that "standard analyzer" is what is required for full text search. How can I
> set this analyzer in the Riak key value search?
>
> Regards
>
> --
>
> Mridul
> _______________________________________________
> riak-users mailing list
> [email protected]
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com