Did you give Proximity Search a try ?
On Mon, Jan 15, 2018 at 1:34 PM, xizhen.w...@incoshare.com < 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 >