IBM Cloud Docs
Editing your collection

Editing your collection

You can change the characteristics of your collection from the Content Mining application.

You can change the following characteristics:

Edit a collection

  1. From the analysis view of your collection, click the Collections link in the page header.

  2. In the tile for your collection, click the Open and close list of options icon, and then choose Edit collection.

  3. Use the appropriate tab to change characteristics of the collection.

  4. When you are done making changes, click Save.

    The following message is displayed:

    You need to clear index to make these changes. 
    After clearing index, fully build the index to 
    analyze using this collection.
    

    You can ignore the message. The index is rebuilt automatically when you click OK.

  5. Click OK to verify the change.

  6. Click Close to return to the Collections page.

    Wait for the index to be rebuilt before you continue your analysis. From the Collections page, you can see the progress of the index rebuild.

  7. Click your collection tile to return to the data analysis page.

Change the time zone

To change the time zone that is used by the trend graph, you must edit the default time zone for the collection.

  1. Complete the steps in Editing a collection to get the collection into edit mode.
  2. In the Edit tab, change the value of the Time zone field, and then click Save.

Add document flags

To add document flags, complete the following steps:

  1. Complete the steps in Editing a collection to get the collection into edit mode.
  2. Click the Document flags tab, and then click Add flag.
  3. In the Document flag dialog box, name the flag, add a description, choose a flag color, and then click Add.
  4. Repeat the previous steps to add more flags.
  5. From the Document flags view, select Enabled so that the flags appear in your documents, and then click Save to make them available in your collection.

For more information about how to flag documents, see Flag documents of interest.

Identify the text field

When you analyze data with the Content Mining application, Discovery determines which field contains the body of the text to be analyzed. It does so by looking for the field with the highest average word count.

You can check which field is designated as the main text body field, and change it or augment it by changing the index type of another field.

  1. Complete the steps in Editing a collection to get the collection into edit mode.

  2. Click the Fields tab. Check the Index type column to find the field designated with the Analyzable text content index type.

    You can change the field or set more than one text field to be an Analyzable text content index type.

  3. Click Save.

If you select multiple fields to analyze, you cannot see the facet analysis for only one field. To view the analysis for multiple fields, you must group them.

Group multiple text fields

  1. Complete the steps in Editing a collection to get the collection into edit mode.

  2. Click the Contextual view tab, and then click Add view.

  3. Complete the following fields:

    • Name: The name or label of your grouped view.
    • Id: The alphanumeric ID that Discovery uses when you submit a text query. For example, ans1.
    • Fields: The text fields that have the Analyzable text content setting applied. Select one or multiple text fields that you want to group for facet analysis.
  4. Click Add.

    Repeat this task if you want to add more text fields that you want to group for facet analysis.

  5. Click Save.

Now you can return to the data analysis page for your collection. From the Facet analysis panel, you can click Contextual view selection to see the text fields that you grouped. You can select one of the text fields to view the facet analysis for that field.

Enrich your collection

Discovery provides built-in natural language processing models, such as the Entities enrichment that can recognize mentions of commonly known things, such as business or location names and other types of proper nouns. You can apply these built-in NLP enrichments to your collection.

You can also apply a document classifier enrichment that you created in the Content Mining application to your collection.

Alternatively, you can apply enrichments that were built in other projects in the same service instance to the collection in your content mining project. For example, you can apply a dictionary or text classifier that was built in another project in the same service instance to your collection.

To apply enrichments to your collection, complete the following steps:

  1. Complete the steps in Editing a collection to get the collection into edit mode.
  2. Click the Enrichment tab, and then select the enrichments that you want to apply to your collection.
  3. Click Save.