Thank you, Alessandro,

I was trying these options before replying.

Yes, I am looking to generate a score for a query with synonym expansion
(not binary feature)

I can go with the "title" field and have that include the synonyms in
analysis. Only problem is that the number of fields and number of synonyms
files are quite a lot (~ 8 synonyms files) due to different weightage and
type of expansion (exact vs partial) based on these. Hence going with this
approach would mean creating more fields for all these synonyms

So, I am looking to build a custom parser for which I could supply the file
and the field and that would expand the synonyms and return a score.
On Mon, Feb 12, 2018 at 6:23 AM, Alessandro Benedetti <[EMAIL PROTECTED]>