file
public abstract String file
Non-trivial views are best stored in a separate files.
By specifying the file parameter a view definition can be loaded from the classpath.
The path is relative to the class annotated by this annotation.
If the file complicated_view.json is in the same directory as the repository this
parameter should be set to "complicated_view.json".
The file must be a valid json document:
{
"map": "function(doc) { much javascript here }",
// the reduce function is optional
"reduce": "function(keys, values) { ... }"
}
- Returns:
- Default:
- ""