Hello
nightmare ? you make a wrong approach, this search structure has a purpose ! anyway i will spent some quality time to answer you,
please take time read below
:
1.
we use the Joomla way/paradigm for search structure of data,
that is why search data are structure like this,
e.g. search may include non FLEXIcontent areas (e.g. weblinks Joomla component)
$result->section is a UNIFIED way to display which part of site content matched the search, (
it depicts search AREA e.g. weblinks and then category inside the search area)
... about $result->text it is similar reason ... read below
2. about result->text , you have misunderstood what this is ! , you should try to parse this ! it was never meant for this
--
it is the search index text, used for text searching !!
--
and reason for displaying it IS TO show where text search matched some words
1. you may choose to hide it, thus not show where text search matched CONTEXT
2. you may choose not to include some data into it, e.g. choose not include category title text into it,
e.g. not include date it to it, including dates maybe useful if e.g. user makes a text search for 2013 and you want this to be matched
3. you can still use FLEXIcontent filters for category or of date to filter your text searches,
so you may choose not to make category title text searchable or the date field text searchable, since your users can do it via filters
4. you can display FLEXIcontent filters via search view configuration
Regards