Synonym Indexing


I am able to create a synonym collection with the following format and it’s working… 99% of the time.

"_id": {
        "$oid": "613f16111ed44460a49af253"
    "mappingType": "equivalent",
    "synonyms": ["Pok Fu Lam", "pokFuLam"]

They are generally names of districts in the Hong Kong Area.

There is ONE document insert that always crashes the Node.

"synonyms": ["Ma On Shan", "maonshan"]

I’ve checked for duplicated documents. Of all the 110~ entries. this one always crashes the node. When I remove the Ma On Shan document, it works again.

Thanks in advance for any tips or suggestions.

HI @Jason_Lee2 ,

Thanks for your question. I suspect you may have run into an edge case related to your index definition but we need more information to be sure. Can you share that with me?

In your example below it does not looking like you have the mapping type defined. Is that because you only shared part of the document?

Also, it would be helpful if you can share an example document/query that this particular synonym entry would effect?