Mike Paterson
Mike Paterson
@sebastienros I committed your suggested changes.
> Does it solve the problem? I will test this later today. > Also this is for Html field only, the same issue should appear with TextField, HtmlBodyPart and MarkdownBody...
@sebastienros I was able to test locally and verify I did not get the error (and was able to perform a lucene search successfully) with the change. However, I was...
Ah I see. I'll try deleting all indexes and content under the lucene folder and try again. Otherwise I'll look into the unit test.
The plot thickens! I was able to repro after unchecking `Stored` and `Analyzed` on the field. I'm not entirely sure what these two fields do but this is the error...
@Skrypt There also is a lot of markup in this field. If it removes "a, at, the ... or" does it remove markup as well? @sebastienros I can test more...
I confirmed that the issue is only occurring when `Stored` is checked. The length of the field is 281384 chars.
Should I make the update only when `Stored` is selected, then?
So is there anything else you're waiting on? Just a unit test?
@sebastienros It looks like the recipe being used by the tests is using `Stored` on `HtmlBodyPart` as seen [here](https://github.com/OrchardCMS/OrchardCore/blob/main/test/OrchardCore.Tests/Apis/Lucene/Recipes/luceneQueryTest.json#L59). If that's the case, then I should be able to make...