Default on search, metadata from the set is included for all the documents as well. If you search and match a metadata field from the set you get hits on the documents as well as the set itself.

The opposite cannot be achieved directly, letting the content of the documents appear as metadata for the set itself.

In order to do this you need to create a custom search web part which executes two searches. First you execute your regular query, then for each document you have to hash up the set id´s and generate your own result list which i returned to the user.

I haven´t worked with sets myself so I´m not sure if the set id is returned with the meta data per hit, or if you have to query it from the list afterwards.

SharePoint 2010: Limit search to return a Document Set after matching on its child item
I have an HTML form with input text fields which i would like to have pasted back into the HTML body resulting in a text string returned by a JavaScript function i.e. in the place where the input fields are sequentially. A simple example would be:

&lt;html&gt;
&lt;body&gt;
This is the first field &lt;input type="text" id="first"/&gt;
and this is the second &lt;input type="text" id="second"/&gt; one.
&lt;/body&gt;
&lt;/html&gt;


When i now view this page and enter ABC into field 1 and XYZ into field 2, i'd like to know how to use JavaScript to create a piece of text like so:


  This is the first field ABC and this is the second XYZ one.


So just to be clear, the web page itself need not change dynamically, i only want to be able to call the JavaScript function from elsewhere and then get the resulting text back with whatever is currently entered, pasted into the body text.
Any help much obliged.
Tiaan
