You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ektorp with couchdb-lucene, so I need to generate fulltext fields for design documents. I extended DesignDocument to add this field, but currently there's no clean way to pass that instance to that the StdDesignDocumentFactory. So instead of invoking [code]
DesignDocument dd = new DesignDocument()
[/code]
inside generateFrom(metadata) method, add a method to create it, something along the lines:
[code]
public DesignDocument createDesignDocumentInstance() {
return new DesignDocument();
}
[/code]
The text was updated successfully, but these errors were encountered:
I am using ektorp with couchdb-lucene, so I need to generate fulltext fields for design documents. I extended DesignDocument to add this field, but currently there's no clean way to pass that instance to that the StdDesignDocumentFactory. So instead of invoking [code]
DesignDocument dd = new DesignDocument()
[/code]
inside generateFrom(metadata) method, add a method to create it, something along the lines:
[code]
public DesignDocument createDesignDocumentInstance() {
return new DesignDocument();
}
[/code]
The text was updated successfully, but these errors were encountered: