Hello Ajit -

  I'm not a Riak Search expert, but running the JSON you included through
http://jsonlint.com yields several errors.

Cheers -
Dave



On Thu, Jan 23, 2014 at 12:19 AM, Ajit Prasad(RMG00) <ajit.apra...@igate.com
> wrote:

>  Hi,
>
> Search doesn’t seem to work on a normal JSON file. Have created index on
> JSON file and installed the search on the bucket also.
>
> $search-cmd search out2_buk "employee_name:\"Ajit\""
>
> :: Searching for 'employee_name:"Ajit"' / '' in out2_buk...
>
> ------------------------------
>
> :: Found 0 results.
>
>
>
> File content is pasted below :
>
> "employee":{
>
>              "employee_name":"Raghav Maitra",
>
>              "employee_id":"1001",
>
>              "designation":"Technical Analyst",
>
>              "emp_contract_no":"1987-XXVI",
>
>              "department":
>
>                     {"dept_name":"ADW",
>
>                      "sub_dept_name":"A1",
>
>                      "dept_id":"A1-2001",
>
>                      "dept_description":"Analysis and Devlopement Wing",
>
>                      "dept_site_name":"Diego Gracia"
>
>                     }
>
>              "employee_name":"Ajit",
>
>              "employee_id":"1002",
>
>              "designation":"Technical Analyst",
>
>              "emp_contract_no":"2001-XXVI",
>
>              "department":
>
>                     {"dept_name":"ADW",
>
>                      "sub_dept_name":"A1",
>
>                      "dept_id":"A1-2001",
>
>                      "dept_description":"Analysis and Devlopement Wing",
>
>                      "dept_site_name":"Diego Gracia"
>
>
>
>             }
>
>
>
>
>
>
>
>
>
> Thanks and regards,
>
> Ajit
>
> Cell:+91-9980084384
>
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Disclaimer~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Information contained and transmitted by this e-mail is confidential and
> proprietary to iGATE and its affiliates and is intended for use only by the
> recipient. If you are not the intended recipient, you are hereby notified
> that any dissemination, distribution, copying or use of this e-mail is
> strictly prohibited and you are requested to delete this e-mail immediately
> and notify the originator or mailad...@igate.com. iGATE does not enter
> into any agreement with any party by e-mail. Any views expressed by an
> individual do not necessarily reflect the view of iGATE. iGATE is not
> responsible for the consequences of any actions taken on the basis of
> information provided, through this email. The contents of an attachment to
> this e-mail may contain software viruses, which could damage your own
> computer system. While iGATE has taken every reasonable precaution to
> minimise this risk, we cannot accept liability for any damage which you
> sustain as a result of software viruses. You should carry out your own
> virus checks before opening an attachment. To know more about iGATE please
> visit www.igate.com.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.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