Best way to index "subfield" / mapping


#1

Hi guys,

i have the following situation. I have an Element with attributes, like title, description and so on.
And there are subelements, also with title, value...

What is the best mapping to achive that i can query Elements with specific values in subelements. I think nested is the wrong way, because i wont query Subelements as separate Items.

Query something like: "Find element where value in subelement1 is true"...

Dummy Structure:

"element": {
  "title" : "myelement",
  "description" : "myDescription",
   "subelements": [
            {
              "title": "subelement1",
              "value": "false"
            },
            {
              "title": "subelement2",
              "value": "true"
            }
   ]
}

Thanks for any advice.

Best regards.


#2

Hi,

after digging a little bit deeper in the "nested" Functionality, i correct myself and say that this might be a possible way.

Disagreements? Improvements?

Thanks.

Best regards.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.