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

How to create multi-map index using this library? #238

Closed
airmanx86 opened this issue Oct 8, 2020 · 2 comments
Closed

How to create multi-map index using this library? #238

airmanx86 opened this issue Oct 8, 2020 · 2 comments

Comments

@airmanx86
Copy link

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?

@airmanx86
Copy link
Author

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?

@ayende
Copy link
Member

ayende commented Oct 8, 2020

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 {

@ayende ayende closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants