How can I search for topics without a label?

You can create an index to search for all topics that don't have a label assigned.

Symptom

I want to search for all topics that don't have a label assigned.

Problem

This index is not defined in the default configuration and must be added manually.

Solution

In the TEXTML Administration perspective, perform the following
  1. Edit the Index Definition file to add the following index:
    <index CUSTOMPROPERTY="True" NAME="label_count" SYNC="False">
              <stringindex KEEPEXTRACTEDVALUES="True">
                  <elements>
                  <element DEPTH="INFINITE" XPATH="count(//userproperty[@type='label'])"/>
                 </elements>
             </stringindex>
    </index>
  2. To add the index to the Advanced Search panel in the Search view, edit the system/conf/advancedSearchIndexes.xml file and add the following:
    <index display="Label_count" name="label_count" type="index" listable="false" views="ALL"/>
  3. Right-click on your Content Store. Click Rebuild All Indexes.
  4. When the index has finished indexing, restart your DITA CMS Eclipse Client and perform an advanced search for Label_count with a value of 0.