From cbdcc87059c883ca1a79260bffdba5ff675db300 Mon Sep 17 00:00:00 2001 From: Hendy Date: Sun, 13 Jan 2019 14:18:52 +0000 Subject: [PATCH] internal renaming of Run to Search --- README.md | 2 +- src/Our.Umbraco.Look/LookQuery.cs | 2 +- src/Our.Umbraco.Look/Our.Umbraco.Look.csproj | 2 +- .../Services/{LookService_RunQuery.cs => LookService_Search.cs} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/Our.Umbraco.Look/Services/{LookService_RunQuery.cs => LookService_Search.cs} (99%) diff --git a/README.md b/README.md index b340473..73e1c20 100644 --- a/README.md +++ b/README.md @@ -266,7 +266,7 @@ If not specified then the reults will be sorted on the Lucene score, otherwise s ### Search Results -The search can be performed by calling the Run method on the LookQuery object: +The search can be performed by calling the Search method on the LookQuery object: ```csharp var lookResult = lookQuery.Search(); diff --git a/src/Our.Umbraco.Look/LookQuery.cs b/src/Our.Umbraco.Look/LookQuery.cs index 1d25db6..2f1803d 100644 --- a/src/Our.Umbraco.Look/LookQuery.cs +++ b/src/Our.Umbraco.Look/LookQuery.cs @@ -162,7 +162,7 @@ public LookQuery ApplyFacet(Facet facet) /// public LookResult Search() { - return LookService.RunQuery(this); + return LookService.Search(this); } /// diff --git a/src/Our.Umbraco.Look/Our.Umbraco.Look.csproj b/src/Our.Umbraco.Look/Our.Umbraco.Look.csproj index b56d0e5..1230c48 100644 --- a/src/Our.Umbraco.Look/Our.Umbraco.Look.csproj +++ b/src/Our.Umbraco.Look/Our.Umbraco.Look.csproj @@ -290,7 +290,7 @@ - + diff --git a/src/Our.Umbraco.Look/Services/LookService_RunQuery.cs b/src/Our.Umbraco.Look/Services/LookService_Search.cs similarity index 99% rename from src/Our.Umbraco.Look/Services/LookService_RunQuery.cs rename to src/Our.Umbraco.Look/Services/LookService_Search.cs index 3b706f4..1cff8f8 100644 --- a/src/Our.Umbraco.Look/Services/LookService_RunQuery.cs +++ b/src/Our.Umbraco.Look/Services/LookService_Search.cs @@ -22,7 +22,7 @@ internal partial class LookService /// /// A LookQuery model for the search criteria /// A LookResult model for the search response - public static LookResult RunQuery(LookQuery lookQuery) + public static LookResult Search(LookQuery lookQuery) { // flag to indicate whether there are any query clauses in the supplied LookQuery bool hasQuery = lookQuery?.Compiled != null ? true : false;