Here is the situation: I have three items - Categories - Corporate, Financial and Product which I am using to categorize other items. They can be selected from a Droplink field (so Sitecore holds ID in this field).
Items which are being categorized had been imported and had been assigned one of the three IDs, corresponding to my categories (Corporate, Financial and Product).
In order to correctly index values of those fields in Lucene I have implemented simple FieldReader which converts the category field to LookupField and then reads either one of the fileds of the category item or it's name (so it does not index the ID which is stored in the field but the name of the category).
This worked like a charm when I have been manually adding my items and have been assigning categories by hand. However when I imported them, strange things started to happen:
Instead of three possible categories I have 5: Corporate, Corpora, Financial, Product, Produc.
The first thing I have checked is my custom field reader but it is always reading one of the three categories, because I only have three items representing categories.
When I attach debugger to LuceneDocumentBuilder and add conditial breakpoint which should react on "Corpora" being added to the index it never breaks there. Yet in the index there is this strange creature.
Now the things get even more interesting when I change the name of the category, to let's say 'Historical' - this one is indexed only once in its correct form. However when I introduce a typo (eg. Croporate) then it follows this strange behavior and I got "Cropora" and "Croporate" in the index.
I have removed the indexes couple of times and this didn't help. The name of the field is pretty unique so the strange value should not come from elswhere besides it disappears when I change from Corporate to something entirely different.
Does any of you has any ideas where I should look for the source of this, pretty strange, issue?