ravendb/ravendb-nodejs-client

How to create multi-map index using this library?

Closed this issue · 2 comments

I tried to do the following in the constructor of the index but did not work

this.map = `map(xxx);map(yyy);`;

Just one map like below works:

this.map = `map(xxx)`;

This multi-map index supported by this library at all?

Worked it out there is a AbstractJavaScriptIndexCreationTask which would allow for multi-map index like below

this.maps = new Set(['map(xxx)','map(yyy)']);

Could you please add more details about index creation to the readme and the online documentation please?

Try looking here: https://ravendb.net/docs/article-page/5.0/java/indexes/multi-map-indexes
The item you want is AbstractMultiMapIndexCreationTask,

Here is what this looks like:

class ContentSearchIndex extends AbstractMultiMapIndexCreationTask {