Skip to content

Commit

Permalink
internal renaming of Run to Search
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendy committed Jan 13, 2019
1 parent fe768da commit cbdcc87
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/Our.Umbraco.Look/LookQuery.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public LookQuery ApplyFacet(Facet facet)
/// <returns></returns>
public LookResult Search()
{
return LookService.RunQuery(this);
return LookService.Search(this);
}

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/Our.Umbraco.Look/Our.Umbraco.Look.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
<Compile Include="Services\LookService_GetLookMatches.cs" />
<Compile Include="Services\LookService_GetSearchingContext.cs" />
<Compile Include="Services\LookService_Index.cs" />
<Compile Include="Services\LookService_RunQuery.cs" />
<Compile Include="Services\LookService_Search.cs" />
<Compile Include="Services\LookService_Initialize.cs" />
<Compile Include="Services\LookService_SetDateIndexer.cs" />
<Compile Include="Services\LookService_SetLocationIndexer.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ internal partial class LookService
/// </summary>
/// <param name="lookQuery">A LookQuery model for the search criteria</param>
/// <returns>A LookResult model for the search response</returns>
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;
Expand Down

0 comments on commit cbdcc87

Please sign in to comment.