Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ForestDB: fullTextSearch emmits wrong values #662

Closed
razorblade446 opened this issue Apr 15, 2015 · 1 comment
Closed

ForestDB: fullTextSearch emmits wrong values #662

razorblade446 opened this issue Apr 15, 2015 · 1 comment
Assignees
Milestone

Comments

@razorblade446
Copy link

Hi, i'm testing ForestDB engine, but having issues with fullTextSearch.

('master' branch, commit 4cf8324)

I'm emmitting with:

emit(CBLTextKey(doc[@"title"]), doc[@"id_contact"]); // doc[@"title"] and doc[@"id_contact"] are Strings

But getting unexpected result:

for(CBLFullTextQueryRow *filaRuta in rutasFichas.rows){
    // filaRuta.value gives me 
    //      [
    //          doc[@"title"],
    //          doc[@"id_contact"]
    //      ]
    // Instead of expected value:
    //      doc[@"id_contact"]
}

Also query does not run if i dont define CBLLiveQuery.fullTextSearch (but don't know it this behavior is expected)

@zgramana zgramana added this to the 1.1.0 milestone May 1, 2015
@zgramana zgramana added the ready label May 1, 2015
@snej
Copy link
Contributor

snej commented May 1, 2015

Hm, with #620 fixed, the value should be correct. The unit test -[ViewInternal_Tests test23_FullTextQuery] does almost exactly what you're doing and gets the correct value. I've just looked through the code and don't see any problems.

Could you please download the latest archived build and test with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants