Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Apply MyModel.fullTextIndexes system to map-reduce views #50

Open
aenario opened this issue Nov 10, 2015 · 1 comment
Open

Apply MyModel.fullTextIndexes system to map-reduce views #50

aenario opened this issue Nov 10, 2015 · 1 comment

Comments

@aenario
Copy link
Contributor

aenario commented Nov 10, 2015

I think this way is easier to explain ("You put a model in server/models") than the previous one ("You need to add an entry in server/models/requests which points to a file in the same directory").

I also think we should allow mapreduce views definition in the same way for cozydb v1.0, something like :

class MyModel extends CozyModel
     @docType: 'foo'
     @schema: 
           "bar": String
     @fullTextIndexes: 
           "bar": nGramLength: 1, stemming: true, weight: 5, fieldedSearch: true
     @mapReduceViews:
          "all": cozydb.defaultRequests.all
          "complex": 
               map: (doc) -> emit doc.a / doc.b
               reduce: "_stat"
@aenario aenario mentioned this issue Nov 10, 2015
@clochix
Copy link
Contributor

clochix commented Nov 26, 2015

@aenario You referenced this issue in #51. Has it been resolved, or does it need some more work?

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

No branches or pull requests

2 participants