mirror of https://github.com/Squidex/squidex.git
2 changed files with 22 additions and 2 deletions
@ -0,0 +1,21 @@ |
|||
// ==========================================================================
|
|||
// Squidex Headless CMS
|
|||
// ==========================================================================
|
|||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|||
// All rights reserved. Licensed under the MIT license.
|
|||
// ==========================================================================
|
|||
|
|||
using Lucene.Net.Documents; |
|||
using Lucene.Net.Util; |
|||
|
|||
namespace Squidex.Domain.Apps.Entities.Contents.Text |
|||
{ |
|||
public static class Extensions |
|||
{ |
|||
public static void SetBinaryDocValue(this Document document, string name, BytesRef value) |
|||
{ |
|||
document.RemoveField(name); |
|||
document.AddBinaryDocValuesField(name, value); |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue