Re: How to implement the function of W/N in Solr?

2018-01-17 Thread Emir Arnautović
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

Re: How to implement the function of W/N in Solr?

2018-01-16 Thread Rick Leir
Xi Might this be something you can solve with pf or pf2? Google solr pf will find this for you. Adjust the slop to allow for terms which are not immediately adjacent. Rick On January 15, 2018 3:04:40 AM EST, "xizhen.w...@incoshare.com" wrote: >Hello, > >I'm using

Re: How to implement the function of W/N in Solr?

2018-01-15 Thread Atita Arora
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

How to implement the function of W/N in Solr?

2018-01-15 Thread xizhen.w...@incoshare.com
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.