Indexing in legacy mode

After configuring pixolution flow there are dedicated fields for the legacy image descriptor (feature) and the current image descriptor (pxl_imagedescriptor).

When adding new images to the index, you can easily control which image descriptor version should be indexed by inserting the appropriate field to the new document.

This example shows how to calculate the legacy image descriptor when adding new documents:

<add>
  <doc>
    <field name="id">1</field>
    <field name="feature">http://www.domain.com/1.jpg</field>
  </doc>
</add>

The next example shows how to calculate the legacy image descriptor as well as the current image descriptor when adding new documents. If you do not need the legacy image descriptor any more, just remove the feature field when adding new documents. Both image descriptors will be calculated based on the given image and are indexed in their respective fields.

<add>
  <doc>
    <field name="id">1</field>
    <field name="feature">http://www.domain.com/1.jpg</field>
    <field name="pxl_imagedescriptor">http://www.domain.com/1.jpg</field>
  </doc>
</add>

Both fields also accept pre-calculated image descriptors in base64 format to avoid recalculating already calculated descriptors. The standalone image descriptor generation describes how to calculate legacy and current image descriptors outside of Solr.