Open issue-media-group opened 4 years ago
The error appeared (in OrchardCore.Lucene.LuceneQuerySource.cs for /api/lucene/document...) when a lucene document had multiple fields with the same key, i.e. for any multi-valued field. Adding a JProperty with a duplicate property name cuased the exception.
A potential fix for this problem is in pull request #7825
To replicate:
Import the attached recipe which creates:
Hitting the lucene document API
/api/lucene/documents?indexName=TestLuceneDocumentIndex&query={%20"query":%20{%20"match_all":%20{}%20}%20}
results in the exception below.
This can happen if the "Test Lucene API" content item has either 1) multiple values selected for "Tag" or 2) Any value is selected for "Article Type".