Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (33 sloc) 1.12 KB
package ravendb
var _ IMoreLikeThisOperations = &MoreLikeThisBuilder{}
var _ IMoreLikeThisBuilderForDocumentQuery = &MoreLikeThisBuilder{}
var _ IMoreLikeThisBuilderBase = &MoreLikeThisBuilder{}
type MoreLikeThisBuilder struct {
moreLikeThis MoreLikeThisBase
}
func NewMoreLikeThisBuilder() *MoreLikeThisBuilder {
return &MoreLikeThisBuilder{}
}
func (b *MoreLikeThisBuilder) GetMoreLikeThis() MoreLikeThisBase {
return b.moreLikeThis
}
func (b *MoreLikeThisBuilder) UsingAnyDocument() IMoreLikeThisOperations {
b.moreLikeThis = NewMoreLikeThisUsingAnyDocument()
return b
}
func (b *MoreLikeThisBuilder) UsingDocument(documentJSON string) IMoreLikeThisOperations {
b.moreLikeThis = &MoreLikeThisUsingDocument{
documentJSON: documentJSON,
}
return b
}
func (b *MoreLikeThisBuilder) UsingDocumentWithBuilder(builder func(*DocumentQuery)) IMoreLikeThisOperations {
tmp := NewMoreLikeThisUsingDocumentForDocumentQuery()
tmp.setForDocumentQuery(builder)
b.moreLikeThis = tmp
return b
}
func (b *MoreLikeThisBuilder) WithOptions(options *MoreLikeThisOptions) IMoreLikeThisOperations {
b.moreLikeThis.SetOptions(options)
return b
}
You can’t perform that action at this time.