rnewson / couchdb-lucene

Enables full-text searching of CouchDB documents using Lucene
Apache License 2.0
769 stars 145 forks source link

CouchDB(Cloudant) lucene indexing is not working #208

Closed soundari closed 10 years ago

soundari commented 10 years ago

Am not getting results while passing multiple fields { "_id": "527c8d9327c6f27f17df0d2e17000530", "_rev": "22-19cadac3a719c186be254f101785e367", "employee_ID": "SCI130202", "proj_role": "TeamMember", "work_total_experience": "2", "personal": { "first_name": "Peter", "languages_known": [ "English", "Telungu" ] }, "skills": [ { "skill_set": "Webservices Framework", "skill_exp": 1, "skill_certified": "yes", "skill_rating": 3, "skill": "WCF", "skill_year": "",

        },
        {
            "skill": "MS SQL Server",
            "skill_set": "Microsoft",
            "skill_exp": 1,
            "skill_certified": "yes",
            "skill_rating": 3,
            "skill_year": "1989",

        }
    ]
}

In my design Document: { "_id": "_design/sample", "_rev": "61-819ba161bb3ab7c91b5b39d4a991742a", "views": {}, "language": "javascript", "indexes": { "search": { "index": "function(doc){\n index(\"default\", doc._id);if(doc.type=='employee-docs'){\nindex(\"project_role\", doc.proj_role);\nindex(\"work_experience\", doc.work_total_experience);\n for(c in doc.personal.languages_known){ \n index(\"languages_known\",doc.personal.languages_known[c])};if (doc.skills) {for (var i=0;i<doc.skills.length;i++){\nindex(\"skill_set\",doc.skills[i].skill_set);}}}}" } } }

If i run using below URL : https://ideyeah4.cloudant.com/opteamize_new/_design/sample/_search/search?q=project_role:TeamMember%20AND%20work_experience:"2"%20AND%20languages_known:Telungu%20AND%20skill_set:"Microsoft"&include_docs=true

It returns empty result . Any help much appreciated.

Thanks Gnana Soundari.S

rnewson commented 10 years ago

couchdb-lucene is not used at cloudant.