Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-27 Thread tarun sapra
Hi , I think I have been able to understand whats happening here... Indexed Content : "This is a test". your search phrase : "This is a formal test" your setting the slop factor 2 , now if your slop factor is 3 it should work because "is" and "a" are stop words thus the words "This" and "test" ar

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-27 Thread a peng
Hi, I am using StandardAnalyzer(Version.LUCENE_30); 2010/6/27 tarun sapra > which analyzer are you usin'? > > > On Sun, Jun 27, 2010 at 7:12 AM, a peng wrote: > > > Hi, > > > > I know the indexed content contains the following text: "This is a test". > > And the search phrase I used is "This i

Re: I don't find MultipleTermPositions in svn

2010-06-27 Thread Robert Muir
On Sun, Jun 27, 2010 at 8:46 PM, Peter Wilkins wrote: > Uwe: > Thanks for the answer to my question. If the API has changed, is there a > document describing a mapping from v3.x to v4.x, or perhaps an online > discussion of the changes? It sounds like the change to v4.x will be > dramatic! > >

Re: I don't find MultipleTermPositions in svn

2010-06-27 Thread Peter Wilkins
Uwe: Thanks for the answer to my question. If the API has changed, is there a document describing a mapping from v3.x to v4.x, or perhaps an online discussion of the changes? It sounds like the change to v4.x will be dramatic! Regards, Peter On Jun 27, 2010, at 3:27 PM, Uwe Schindler u...@the

RE: I don't find MultipleTermPositions in svn

2010-06-27 Thread Uwe Schindler
Trunk (aka 4.0) has a complete new API so lots of classes changed/replaced. If you want 3.x, use the corresponding branch! - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Peter Wilkins [mailto:pwilk...@m

I don't find MultipleTermPositions in svn

2010-06-27 Thread Peter Wilkins
This is dumb, I know, but I don't find a MultipleTermPositions.java file under org.apache.lucene.index in the svn trunk. Will someone on the list have mercy on me and tell me what obvious thing I'm missing? I know it's there somewhere. /peter

Re: A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-27 Thread tarun sapra
which analyzer are you usin'? On Sun, Jun 27, 2010 at 7:12 AM, a peng wrote: > Hi, > > I know the indexed content contains the following text: "This is a test". > And the search phrase I used is "This is a formal test", and then I set the > slop of the PhraseQuery as 2 with setSlop(2), but I fo

A question regarding the setSlop method of class PhraseQuery (Lucene version 3.0.1)

2010-06-27 Thread a peng
Hi, I know the indexed content contains the following text: "This is a test". And the search phrase I used is "This is a formal test", and then I set the slop of the PhraseQuery as 2 with setSlop(2), but I found that I can not get a search result. If I set the search phrase as "This is formal test