Hi,

RiakSearch fails to index non-default fields when the records are inserted
into a bucket with java PBClient.
For the below mentioned schema definition and sample record, indexing
happens only for 'name' field and not for 'accountid'.
However, the same succeeds when records are inserted via curl.  Help me out
if I am missing anything else.

Schema Defintion:

    {
    schema,
    [
        {version, "1.1"},
        {default_field, "name"},
        {default_op, "or"},
        {n_val, 2},
        {analyzer_factory, {erlang, text_analyzers,
whitespace_analyzer_factory}}
    ],
    [
        %% Parse the field in preparation for full-text searching.
        {field, [
            {name, "accountid"},
            {required, true},
            {analyzer_factory, {erlang, text_analyzers,
standard_analyzer_factory}}
        ]},
 {field, [
            {name, "name"},
            {required, true},
            {analyzer_factory, {erlang, text_analyzers,
standard_analyzer_factory}}
        ]},

        {dynamic_field, [
            {name, "*"},
                        {skip, true}
        ]}
    ]
}.

Sample Record:
{"accountid":"testaccount","name":"testapplication","status":"activated"}


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

Reply via email to