Lucene 4 getSpans not retrieving spans

2012-01-24 Thread Stephen Howe
Goofing off with my index, I ran across this example http://www.lucidimagination.com/blog/2009/05/26/accessing-words-around-a-positional-match-in-lucene/ for using span queries to see what else is around a word that hits. Noticeably, there's a nice getSpans(IndexReader) method that just takes in th

Re: Lucene 4.0 Get All Index Terms

2012-01-24 Thread Stephen Howe
That solved it, thanks! On Tue, Jan 24, 2012 at 5:04 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > Have a look at lucene/MIGRATE.txt? It [tries to] describe this > change... and if something is missing please report back! > > Mike McCandless > > http://blog.mikemccandless.com > >

Re: Lucene 4.0 Get All Index Terms

2012-01-24 Thread Michael McCandless
Have a look at lucene/MIGRATE.txt? It [tries to] describe this change... and if something is missing please report back! Mike McCandless http://blog.mikemccandless.com On Tue, Jan 24, 2012 at 4:10 PM, Stephen Howe wrote: > Hi all, > > Looking at some older Lucene examples, I noticed for older

Lucene 4.0 Get All Index Terms

2012-01-24 Thread Stephen Howe
Hi all, Looking at some older Lucene examples, I noticed for older versions of lucene that IndexReader came with a handy terms() method that would return a listing of all the terms in the index and let you get at the term frequency. In Lucene 4.0, I noticed this method vanished from IndexReader. I

weightage of each word according to precedence in document

2012-01-24 Thread A Z
Hi how can we assign custom score for each token/word. For Ex I have document 1pqrst uvwx abcd 2abcd pqrst uvwx 3pqrst uvwx lmn 4pqrst uvwx lmn abcd 5pqrst abcd uvwx lmn *Now i m searching data ---> abcd pqrst* So it should give more weightage score to 2nd docu

weightage of each word according to precedence in document

2012-01-24 Thread A Z
Hi how can we assign custom score for each token/word. For Ex I have document 1pqrst uvwx abcd 2abcd pqrst uvwx 3pqrst uvwx lmn 4pqrst uvwx lmn abcd 5pqrst abcd uvwx lmn *Now i m searching data ---> abcd pqrst* So it should give more weightage score to 2nd docu