multireader.deleteDocuments transfer to IndexWriter.deleteDocuments ?

2012-09-24 Thread Naber, Peter
Hi, to migrate my lucene application to the new lucene Version I have to change all deprecated function to the recommended functions. Now I am looking for a solution to migrate the "multireader.deleteDocuments(Term)" to "IndexWriter.deleteDocuments(Term)" easy. The program has a maintenance run,

Re: I want to know that why transform numeric to string

2012-09-24 Thread Simon Willnauer
quick answer, Lucene only operates on strings (from a high level perspective) simon On Fri, Sep 21, 2012 at 11:54 AM, 惠达 王 wrote: > hi all: > I want to know that why transform numeric to string? > > public static int longToPrefixCoded(final long val, final int shift, > final BytesRef bytes)