lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maisnam Ns <maisnam...@gmail.com>
Subject Re: Proximity query
Date Thu, 12 Feb 2015 17:31:43 GMT
Hi Allison and Sujit,

Thanks so much for your links I am so happy I am looking at  exactly the
links that almost covers my use case.

Allison, sure will get back to you if I have some more questions.

Regards
NS





On Thu, Feb 12, 2015 at 10:49 PM, Sujit Pal <sujit.pal@comcast.net> wrote:

> I did something like this sometime back. The objective was to find patterns
> surrounding some keywords of interest so I could find keywords similar to
> the ones I was looking for, sort of like a poor man's word2vec. It uses
> SpanQuery as Jigar said, and you can find the code here (I believe it was
> written against Lucene 3.x so you may have to upgrade it if you are using
> Lucene 4.x):
>
>
> http://sujitpal.blogspot.com/2011/08/implementing-concordance-with-lucene.html
>
> -sujit
>
>
> On Thu, Feb 12, 2015 at 8:57 AM, Maisnam Ns <maisnam.ns@gmail.com> wrote:
>
> > Hi Shah,
> >
> > Thanks for your reply. Will try to google SpanQuery meanwhile if you have
> > some links can you please share
> >
> > Thanks
> >
> > On Thu, Feb 12, 2015 at 10:17 PM, Jigar Shah <jigaronline@gmail.com>
> > wrote:
> >
> > > This concept is called Proximity Search in general.
> > >
> > > In Lucene they are achieved using SpanQuery.
> > >
> > > On Thu, Feb 12, 2015 at 10:10 PM, Maisnam Ns <maisnam.ns@gmail.com>
> > wrote:
> > >
> > > > Hi,
> > > >
> > > > Can someone help me if this use case is possible or not with lucene
> > > >
> > > > Use case: I have a string say 'Japan' appearing in 10 documents and I
> > > want
> > > > to get back , say some results which contain two words before 'Japan'
> > and
> > > > two words after 'Japan' may be something like this ' Economy of Japan
> > is
> > > > growing' etc.
> > > >
> > > >  If it is not possible where should I look for such queries
> > > >
> > > > Thanks´╗┐
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message