Hi, What do you mean by "this doesn't work fine"? Does it not work correctly or is it slow or ...
I was going to suggest you look at Surround QP, but it looks like you already did that. Wouldn't it be better to get Surround QP to work? Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/ ----- Original Message ---- > From: Ahsan |qbal <ahsan.iqbal...@gmail.com> > To: solr-user@lucene.apache.org > Sent: Tue, February 22, 2011 10:59:26 AM > Subject: Question about Nested Span Near Query > > Hi All > > I had a requirement to implement queries that involves phrase proximity. > like user should be able to search "ab cd" w/5 "de fg", both phrases as > whole should be with in 5 words of each other. For this I implement a query > parser that make use of nested span queries, so above query would be parsed > as > > spanNear([spanNear([Contents:ab, Contents:cd], 0, true), > spanNear([Contents:de, Contents:fg], 0, true)], 5, false) > > Queries like this seems to work really good when phrases are small but when > phrases are large this doesn't work fine. Now my question, Is there any > limitation of SpanNearQuery. that we cannot handle large phrases in this > way? > > please help > > Regards > Ahsan >