Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jasmin Savard
    @Skrypt
                            case JTokenType.Integer:
                                var minInt = gt?.Value<long>();
                                var maxInt = lt?.Value<long>();
                                rangeQuery = NumericRangeQuery.NewInt64Range(field, minInt, maxInt, includeLower, includeUpper);
                                break;
    Here is what I did that works if we pass the date as a numeric value but it will return no results because the date is stored as a string in the lucene index
    But this fix is appropriate since a JToken that returns a JTokenType.integer could be a Int32 or Int64. It does not bother about the size. So the proper thing to avoid getting overflow exceptions is to always use Int64(long)
    tempcode
    @PiemP
    @Skrypt I don't know the complete context...for my point of view is better to use the string way because it is used a lot in the elasticsearch examples and exist all the utilities like "now" or "now+1d"... and for the range query there is the format property that can help us to create the right implementation (https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-range-query.html)...I suppose have less sense to use range query with real strings...Is more useful to adopt strings in this context to compare date field...hope to have write something appropriate 😅
    William Best
    @wpbest
    @PiemP Thanks. That was good. I was hoping Sebastien would talk more about Orchard Core.
    tempcode
    @PiemP
    @Skrypt some useful links to improve my poor knowledge about the use of Lucene?
    Jasmin Savard
    @Skrypt
    @PiemP You will face a lot of issues up untill I will end my PR.
    There’s a lot of fixes in OrchardCMS/OrchardCore#3809
    But for most things I’ve learned by looking at ElasticSearch documentation and experiments.
    I used the debugger a lot to make things work like they should.
    One thing that might fix them all is to use ElasticSearch directly which is more mature than Lucene.NET. In fact Lucene.NET has less features if we compare.
    tempcode
    @PiemP
    Thank you @Skrypt I try to follow your work and, if I understand how to proceed, I try to help you .... In fact, about my case, I believe the TermRangeQuery class must accomplish the date range query requirements...I have to understand why this not work like I'm expecting...have a lot of things to understand 🤔
    Jasmin Savard
    @Skrypt
    I will work to finish the PR soon but I think that for examples I will need to write a guide eventually. Right now I can’t. I need to finish that PR first. :wink:
    The main issue is that the ElasticSearch documentation is quite hard to understand. It doesn’t tell you what to do when you want to do something specific. You need to understand the basic concepts first and then you can extrapolate.
    William Best
    @wpbest
    I have a question. All this effort is to showcase Orchard CORE. But when the next major .NET version will be 5.0 without the Core name. It will consolidate all .NET to just 5.0. Does that mean the Orchard Core domain will go back to just Orchard without the core name? Will Orchard Core be depredated at some point?
    Jasmin Savard
    @Skrypt
    I don't think. Orchard Core is a new iteration that has breaking changes over Orchard 1.10.x
    It could be named Orchard 2.0
    But when 5.0 will be out there's surely people that will migrate Orchard 1.10.x to .NET 5.0
    So Orchard 1.2.x
    And .NET 5.0 is still far ahead to be honest
    Jasmin Savard
    @Skrypt
    John Rom
    @johnrom
    hey guys, I run into this issue every once in a while during debug startup: OrchardCMS/OrchardCore#3790
    I've seen it in another project, from like OC beta1 as well, of course the middlewares were all named differently. Wondering if some startup process or canceled async task could be resulting in a null reference in LayerFilter?
    In the beta1 project it would randomly bring the site down after a long period of time, which is why I wonder about the latter
    though it could also be something like Azure recycling the process and being a startup issue
    Jasmin Savard
    @Skrypt
    I disabled the Layers module on my website because this issue kept coming back.
    Jasmin Savard
    @Skrypt
    Please confirm that you are having this on the latest dev so that I open it back.
    John Rom
    @johnrom
    I can't really switch OC versions right now unfortunately, but I did want to give you guys a heads up that I've seen it occur randomly for a long time. I'm currently on 1.0.0-rc1-10004
    I'll add that info to the issue
    Ahmad Aghilizadeh
    @aghili371

    i have a new field in the blog content. i want to remove this field but the code doesn't work: {% shape_remove_item Model.Content "background" %} and the image url will be shown to render the content with : {{ Model.Content | shape_render }}

    how can i remove this field value?

    John Rom
    @johnrom
    @sebastienros I'll see if I can dig up a Debug Snapshot from App Insights Profiler if that would help you
    Sébastien Ros
    @sebastienros
    anything would help, a line number would be even better
    John Rom
    @johnrom
    I don't have it set up to debug source link or whatever
    it's very rare, so I can't just hit the restart button and hope it occurs within the next few hours :laughing:
    John Rom
    @johnrom
    hmm, it looks like I can't get any snapshots when it happens because the exception handler throws an exception -_-
    {OriginalFormat} An exception was thrown attempting to execute the error handler.
    CategoryName Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware
    Is there anything I can do once I'm in the middle of a debug session even if source link isn't enabled?
    Sébastien Ros
    @sebastienros
    can you alter the source code ?
    I would just add null ref checks everywhere a dynamic is used, and log something
    John Rom
    @johnrom
    This happens when I'm in a separate project, not OC itself or MVC
    when it occurs it doesn't appear to be in my assemblies, as the stack trace appears to show
    Andres G Vettori
    @andresvettori_twitter
    Hi there, I'm having trouble finding some sample configuration for running OC from a docker image and using a shared database for storing content (MySQL for example). Is that the recommended configuration for a headless setup running an ultra scalable web site and mobile app serving millons of users?
    evergrn435
    @evergrn435
    Hi, can Orchard CMS be setup as a module in a multi tenant situation? I have setup the application, imported as a project, added the modules nuget package, added the reference in the main app, but am getting an Overflow exception when running as a tenant. The main app works fine, and the CMS App works fine if run as main project
    ruisdias
    @ruisdias

    Hi, Can someone explain me how can I use my own blobstorage to upload image? I saw this : https://orchardcore.readthedocs.io/en/dev/docs/reference/modules/Media.Azure/

    "OrchardCore.Media.Azure": { // Set to your Azure Storage account connection string. "ConnectionString": "", // Set to the Azure Blob container name. "ContainerName": "somecontainer", // Optionally, set to a path to store media in a subdirectory inside your container. "BasePath": "some/base/path" },

    I need to set this, but where in the appsettings of tenant?

    ruisdias
    @ruisdias
    It's not a problem anymore!
    thanks, I put it in my appsettings of my app
    Ahmad Aghilizadeh
    @aghili371

    i have a new field in the blog content. i want to remove this field but the code doesn't work: {% shape_remove_item Model.Content "background" %} and the image url will be shown to render the content with : {{ Model.Content | shape_render }}

    how can i remove this field value?

    sorry guys no solution to delete the fields?

    Ahmad Aghilizadeh
    @aghili371
    i found the solotion but i think it will be grate if you documented that :
    {% shape_remove_item Model.Content "blog-background" %}
    Carl Woodhouse
    @carlwoodhouse
    Merge 3.1 already !