To my understanding, docValues are just an uninverted index. That is, it contains the terms that are generated at the end of an analysis chain. Therefore, you simply enable docValues and include the SynonymFilterFactory in your analysis.
Is that enough, or are you struggling with some other issue? Upayavira On Tue, May 26, 2015, at 12:03 PM, Aman Tandon wrote: > Hi, > > We have some field *city* in which the docValues are enabled. We need to > add the synonym in that field so how could we do it? > > With Regards > Aman Tandon