Hi, Initially, in my schema, I had my uniqueField's field type as "string" and everything was working fine. But, then the users of my application wanted to search on the unique field and entered values which were in a different case than what was indexed. They never got proper results, at times, no results.
I noticed this happened because the field type was "string". I then changed it to a custom text type and had specified only the whitespace tokenizer and lowercase filter. It worked. The users were able to search on the uniqueField irrespective of the case the values were entered in. But now, another problem has risen. If I update a document, it really does not update, but it is added as a separate document with the same uniqueField value and the contents of the old document is merged with the new one. So, now what I want to achieve is that the users should be able to search on the uniqueField, irrespective of the case the values are entered in; and on updation of a document, not to have duplicate documents (documents with the same uniqueField value) in the index. Can anyone help me in as to how this can be done? Regards, Rishabh