Unable to query on <field>.keyword for certain indices

Hi,

I have a non-analyzed string field xyz which elasticsearch broke down into two xyz (which is analyzed) and xyz.keyword (which is not analyzed). I want to do regex queries on this field i.e. on the non-analyzed field, but these queries work only for one index, and none other. I used Python interface to populate the database. The format of all the files, code used, and structure of the index are the same for all.

I checked the index mapping and somehow, only the first index shows xyz to be a "keyword" type, all the other indices do not. My code is still the same. This happens with only two fields, not all.

Please help as I cannot understand this.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.