I'm seeing a couple of issues that I have pointed out in this gist:
The first issue that appears to be a bug is that highlighting can be
incorrect in the case of multi-term synonyms. The returned data for
the 2nd result is:
I reproduced this with term_vectors no and with_positions_offsets, so
appears to affect both highlighting paths.
Next, it appears that synonym expansion occurs to the query string,
which gives some unexpected results, as all the terms in the synonym
list are injected into the query. So, looking at the 2nd result again,
atripla is returned because it is a synonym with "efavirenz
emtricitabine" and truvada is a synonym with "emtricitabine
tenofovir", which doesn't seem to be the correct behavior. I
understand why this is occurring, the synonym term expansion is
occurring both index side and query side, but that doesn't seem right.
When I specify to use an analyzer without the synonym filter, this
I am going to play around more with expand=false and see if the
behavior is any better.