Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unnecessary ISolrDeleteParam

  • Loading branch information...
commit 4ebee150cb44981306222a76e383883e18f5c8b5 1 parent de9e742
@mausch authored
View
10 SolrNet/Commands/DeleteCommand.cs
@@ -26,11 +26,11 @@ namespace SolrNet.Commands {
/// <summary>
/// Deletes document(s), either by id or by query
/// </summary>
- public class DeleteCommand : ISolrCommand {
- private readonly ISolrDeleteParam deleteParam;
+ public class DeleteCommand : ISolrCommand {
+ private readonly DeleteByIdAndOrQueryParam deleteParam;
private readonly DeleteParameters parameters;
- public DeleteCommand(ISolrDeleteParam deleteParam, DeleteParameters parameters) {
+ public DeleteCommand(DeleteByIdAndOrQueryParam deleteParam, DeleteParameters parameters) {
this.deleteParam = deleteParam;
this.parameters = parameters;
}
@@ -45,10 +45,6 @@ public class DeleteCommand : ISolrCommand {
/// </summary>
public bool? FromCommitted { get; set; }
- public ISolrDeleteParam DeleteParam {
- get { return deleteParam; }
- }
-
public string Execute(ISolrConnection connection) {
var xml = new XmlDocument();
var deleteNode = xml.CreateElement("delete");
View
2  SolrNet/Commands/Parameters/DeleteByIdAndOrQueryParam.cs
@@ -26,7 +26,7 @@ namespace SolrNet.Commands.Parameters {
/// Parameter to delete document(s) by one or more ids
/// and or a query parameters.
/// </summary>
- public class DeleteByIdAndOrQueryParam : ISolrDeleteParam {
+ public class DeleteByIdAndOrQueryParam {
private readonly IEnumerable<string> ids;
private readonly ISolrQuery query;
private readonly ISolrQuerySerializer querySerializer;
View
31 SolrNet/Commands/Parameters/ISolrDeleteParam.cs
@@ -1,31 +0,0 @@
-#region license
-// Copyright (c) 2007-2010 Mauricio Scheffer
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-#endregion
-
-using System.Collections.Generic;
-using System.Xml;
-
-namespace SolrNet.Commands.Parameters {
- /// <summary>
- /// Delete command parameter
- /// </summary>
- public interface ISolrDeleteParam {
- /// <summary>
- /// Converts this parameter to xml representation
- /// </summary>
- /// <returns></returns>
- IEnumerable<XmlNode> ToXmlNode();
- }
-}
View
1  SolrNet/SolrNet.csproj
@@ -240,7 +240,6 @@
<Compile Include="Commands\AddCommand.cs" />
<Compile Include="Commands\CommitCommand.cs" />
<Compile Include="Commands\DeleteCommand.cs" />
- <Compile Include="Commands\Parameters\ISolrDeleteParam.cs" />
<Compile Include="Commands\OptimizeCommand.cs" />
<Compile Include="Exceptions\InvalidFieldException.cs" />
<Compile Include="Exceptions\InvalidSortOrderException.cs" />
Please sign in to comment.
Something went wrong with that request. Please try again.