File tree 2 files changed +4
-4
lines changed
src/Our.Umbraco.Look/Services
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public class ConfigureIndexing : ApplicationEventHandler
92
92
LookConfiguration .TextIndexer = indexingContext => {
93
93
94
94
// eg. if content, render page and scrape markup
95
- if (indexingContext .Item .ItemType == PublishedItemType .Content )
95
+ if (! indexingContext . IsDetached && indexingContext .Item .ItemType == PublishedItemType .Content )
96
96
{
97
97
// (could pass in httpContext to render page without http web request)
98
98
// return string
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ public static LookResult RunQuery(LookQuery lookQuery)
192
192
{
193
193
if ( ! lookQuery . NameQuery . Is . StartsWith ( lookQuery . NameQuery . StartsWith ) )
194
194
{
195
- return new LookResult ( "Conlict in NameQuery between Is and StartsWith" ) ;
195
+ return new LookResult ( "Conflict in NameQuery between Is and StartsWith" ) ;
196
196
}
197
197
}
198
198
else
@@ -207,7 +207,7 @@ public static LookResult RunQuery(LookQuery lookQuery)
207
207
{
208
208
if ( ! lookQuery . NameQuery . Is . EndsWith ( lookQuery . NameQuery . EndsWith ) )
209
209
{
210
- return new LookResult ( "Conlict in NameQuery between Is and EndsWith" ) ;
210
+ return new LookResult ( "Conflict in NameQuery between Is and EndsWith" ) ;
211
211
}
212
212
}
213
213
else
@@ -229,7 +229,7 @@ public static LookResult RunQuery(LookQuery lookQuery)
229
229
{
230
230
if ( ! lookQuery . NameQuery . Is . Contains ( lookQuery . NameQuery . Contains ) )
231
231
{
232
- return new LookResult ( "Conlict in NameQuery between Is and Contains" ) ;
232
+ return new LookResult ( "Conflict in NameQuery between Is and Contains" ) ;
233
233
}
234
234
}
235
235
else
You can’t perform that action at this time.
0 commit comments