Skip to content

Commit

Permalink
remove path.starts from search query because it fails on azure search
Browse files Browse the repository at this point in the history
  • Loading branch information
danlr committed Nov 30, 2017
1 parent 769122a commit 80b6297
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,7 @@ private List<Item> GetLinkedSitecoreItems(string gcId)
using (IProviderSearchContext context = index.CreateSearchContext())
{
var query = context.GetQueryable<SearchResultItem>()
.Where(i => i.Path.StartsWith("/sitecore/content/") &&
i["gc_content_id"] == gcId
);
.Where(i => i["gc_content_id"] == gcId);

query = query.Filter(i => i.Language == Context.Language.Name);

Expand Down
4 changes: 2 additions & 2 deletions src/SharedAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
#endif
#endif
#endif
[assembly: AssemblyVersion("1.17.9.23")]
[assembly: AssemblyFileVersion("1.17.9.23")]
[assembly: AssemblyVersion("1.17.11.30")]
[assembly: AssemblyFileVersion("1.17.11.30")]

0 comments on commit 80b6297

Please sign in to comment.