On 11/6/2018 12:52 AM, waseem-farooqui wrote:
     {
          "document": "Fuzzy based semantic search.pdf",
          "md5Hash": "md5",
          "rated": [
            {
              "user": "John",
              "comments": "Not Very useful",
              "rating": 2,
              "date": "20/10/2018"
            },
            {
              "user": "Terrion",
              "comments": "Useful with context to semantic based fuzzy logics.",
              "rating": 6,
              "date": "20/10/2018"
            }
          ]
        }

Solr documents have a flat structure.  There is no normalization like you have with a relational database.  Think of it like a single database table with many columns, instead of several database tables working together.  A complex nested structure in a single document is not possible.

Solr has one feature that might be what you need -- parent/child documents.  In that scenario, your rating structures would be completely separate documents, indexed together with the parent document.  To query it and make use of the dependent structure, you would use the blockjoin query parser.  I have never used this functionality, so this paragraph is all I know about it and I cannot help any further.

Thanks,
Shawn

Reply via email to