Support nested list of objects
See original GitHub issueIn our scenario, we would like to provide full-text search functionality for datasets look like:
{
"id":"12345",
"name":"dataset_name",
"type":"table",
"columns":[
{
"name":"date",
"type":"int",
"description":"xxx"
},
{
"name":"container",
"type":"string",
"description":"xxx"
},
{
"name":"container_position",
"type":"int",
"description":"xxx"
}
]
}
when search container
, we hope it could find out all columns having container
in its name
field. Here is an example:
[
{
"id":"12345",
"...": "...",
"match":{
"container":[
"columns[1].name",
"columns[2].name"
],
"probably there will be better ways"
}
}
]
Looks like currently there is no good way to support this feature. Any thoughts?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Nested list in component from array of objects - Stack Overflow
I'm searching for a little help/advice. I had a task to create a multiple nested list from array of object. I did this,...
Read more >4.3. Grouping Objects Using Lists and Nested For Loops
While we can use the get method to access any item in the list by specifying its position, it only returns the value...
Read more >Nested - OpenSearch documentation
A nested field type is a special type of object field type. ... Each of the objects in the array is dynamically mapped...
Read more >27.5. Handling Nested Lists: the Flatten Function - SCons
SCons supports a Flatten function which takes an input Python sequence (list or tuple) and returns a flattened list containing just the individual...
Read more >Saving Object with nested List of Objects #837 - hivedb/hive
I have a Custom-Class which also has a field with another Custom-Class: part 'hive_vitals_interface.g.dart'; @HiveType(typeId: 1) class ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thank you so much, @lucaong , it works for me!
A quick and dirty example of what I meant in my previous comment is this function, that given a matched term and the text of the field that matched it, returns the offsets at which the term is found:
The matched terms and the name of the fields in which they are found are in the
match
attribute inMiniSearch
results. A function like the one above could be used on the results of a search to help highlighting matches, if that is your goal.