示例#1
0
        public BasicDocumentAction BuildDeleteAction(ICloudSearchDocument document, ActionType actionType, int version)
        {
            string type = ActionTypeFunction.ActionTypeToString(actionType);

            return(new BasicDocumentAction {
                type = type, id = document.Id, version = version
            });
        }
示例#2
0
        public AddUpdateBasicDocumentAction <T> BuildAction(T document, ActionType actionType, int version)
        {
            string type = ActionTypeFunction.ActionTypeToString(actionType);

            return(new AddUpdateBasicDocumentAction <T> {
                type = type, id = document.Id, lang = "en", fields = document, version = version
            });
        }