Hi, Can you share the output with debugQuery=true. Note that 3w means there are max 2 words between those two phrases.
Regards, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Consulting Support Training - http://sematext.com/ > On 15 Jan 2018, at 09:04, xizhen.w...@incoshare.com wrote: > > Hello, > > I'm using Solr 4.10.3, and I want "A" and "B" are together, "C" and "D" are > together, and the terms "B" and "C" are no more than 3 terms away from each > other, by using {!surround} 3w("A B", "C D"), but it doesn't work. Is there > any other useful way? > > Any help is appreciated. > > > > xizhen.w...@incoshare.com