Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-21 Thread Ian Lea
+1 for a static method to get the appropriate value of Version. -- Ian. On Sun, Sep 19, 2010 at 11:21 PM, Bill Janssen wrote: > Simon Willnauer wrote: > >> On Fri, Sep 17, 2010 at 11:45 PM, Bill Janssen wrote: >> > Simon Willnauer wrote: >> > >> >> On Fri, Sep 17, 2010 at 8:14 PM, Bill Jans

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-19 Thread Bill Janssen
Simon Willnauer wrote: > On Fri, Sep 17, 2010 at 11:45 PM, Bill Janssen wrote: > > Simon Willnauer wrote: > > > >> On Fri, Sep 17, 2010 at 8:14 PM, Bill Janssen wrote: > >> > Simon Willnauer wrote: > >> > > >> >> Hey Bill, > >> >> let me clarify what Version is used for since I think that cau

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-18 Thread Simon Willnauer
On Fri, Sep 17, 2010 at 11:45 PM, Bill Janssen wrote: > Simon Willnauer wrote: > >> On Fri, Sep 17, 2010 at 8:14 PM, Bill Janssen wrote: >> > Simon Willnauer wrote: >> > >> >> Hey Bill, >> >> let me clarify what Version is used for since I think that caused >> >> little confusion. >> > >> > Tha

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-17 Thread Bill Janssen
Bill Janssen wrote: > ...is there any attribute or static > method somewhere in Lucene which will return a value of > org.apache.lucene.util.Version that corresponds to the version of the > code? That's what I'm looking for. Version.LUCENE_CURRENT looks good, > but it's deprecated. And, given

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-17 Thread Bill Janssen
Simon Willnauer wrote: > On Fri, Sep 17, 2010 at 8:14 PM, Bill Janssen wrote: > > Simon Willnauer wrote: > > > >> Hey Bill, > >> let me clarify what Version is used for since I think that caused > >> little confusion. > > > > Thanks. > > > >> The Version constant was mainly introduced to help >

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-17 Thread Simon Willnauer
On Fri, Sep 17, 2010 at 8:14 PM, Bill Janssen wrote: > Simon Willnauer wrote: > >> Hey Bill, >> let me clarify what Version is used for since I think that caused >> little confusion. > > Thanks. > >> The Version constant was mainly introduced to help >> users with backwards compatibility and upgr

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-17 Thread Bill Janssen
Simon Willnauer wrote: > Hey Bill, > let me clarify what Version is used for since I think that caused > little confusion. Thanks. > The Version constant was mainly introduced to help > users with backwards compatibility and upgrading their codebase to a > new version of lucene without breaking

Re: recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-17 Thread Simon Willnauer
Hey Bill, let me clarify what Version is used for since I think that caused little confusion. The Version constant was mainly introduced to help users with backwards compatibility and upgrading their codebase to a new version of lucene without breaking existing applications / indexes build with pre

recommended way to identify a version to pass to StandardAnalyzer constructor?

2010-09-16 Thread Bill Janssen
So, in version 3, I have to pass a version parameter to the constructor for StandardAnalyzer. Since Version.LUCENE_CURRENT is deprecated, I'd like this to be the same as the version of the index I'm using. Is there a way of getting a value of Version for an index? I don't see obvious methods on