[SalesForce] How to deploy edited Search Layouts via Metadata API using ANT or Force.com IDE

I know how to retrieve the Metadata via this questions;
Metadata – Case Search Layout

And I understand that they must be retrieved via the Object or Custom Object itself and the list of components editable via the Metadata API can be found here:
https://www.salesforce.com/us/developer/docs/api_meta/Content/meta_types_list.htm

It's getting quite thorough!

I am having difficulty, though, finding some examples on how to deploy Search Layout-specific syntax via Force.come IDE or ANT Migration Tool.
Here you'll see the field labels are a bit different and then there's the actual deployment process.

Do you need to deploy the entire object with all parameters each time? Or can you just deploy the Object with only the changed Search layouts referenced?

Update
It should be noted that the syntax for Search Layout is NOT the same as the API name. For ease of time, it's best to retrieve the objects using Force.com IDE or ANT and adjust then deploy.

Best Answer

To deploy a Search Layout, you must deploy the CustomObject itself. All not-required tags can be stripped, but there is no way to simply deploy a search layout without the object.

This means you'd need something like this:

package.xml:

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
  <types>
    <members>Account</members>
    <name>CustomObject</name>
  </types>
  <version>35.0</version>
</Package>

objects/Account.object:

<?xml version="1.0" encoding="UTF-8"?>
<CustomObject xmlns="http://soap.sforce.com/2006/04/metadata">
    <enableEnhancedLookup>true</enableEnhancedLookup>
    <enableFeeds>true</enableFeeds>
    <enableHistory>false</enableHistory>
    <searchLayouts>
       <!-- as per description in the documentation -->
    </searchLayouts>
    <sharingModel>Private</sharingModel>
</CustomObject>