Error when creating index with synonyms file

I am creating an index mapping which uses a synonyms file.

The synonyms file contents are as follows:

ms, microsoft
usa, united states of america

When I tried to create the index, an error was returned.

"reason": "term: united states of america analyzed to a token (united states) with position 
increment != 1 (got: 0)"

What does the message mean and what is the correct format for the synonyms file?

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

Are you using a stopword filter (probably the english one) in your analysis chain? Could you post your full analysis settings you use (or at least the analyzer that uses the synonyms and its filters)?