Dynamic fields and searches

I am new to elasticsearch and lucene and trying to get my hands dirty with the data searches and the capability it provides in general. I am wondering if there is a way to create new fields in the documents as a result of search query. For example I have an index that has three fields username, email address and region. I want to create a fourth field highlighting the "domain name" which will be derived from "email address" field. If a user has email address abc@yahoo.com, my fourth field should have "yahoo.com" stored.

Any help?


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