|
|
+
jianwen lou 2012-03-27, 07:21
+
Uwe Schindler 2012-03-27, 07:24
+
jianwen lou 2012-03-27, 07:48
-
Re: NumericField exception java.lang.IllegalStateException: call set???Value() before usage in lucene 3.5jianwen lou 2012-03-27, 07:56
I am not exactly understand the precisionStep arg,I need to add the arg?
On Tue, Mar 27, 2012 at 3:48 PM, jianwen lou <[EMAIL PROTECTED]> wrote: > No,There is no multi-thread building index at same time, > I google and get the result, i use 64 bit jvm. It matters? > > > http://lucene.472066.n3.nabble.com/Lucene-3-4-shift-bug-in-possibly-invalid-use-of-NumericTokenStream-td3592962.html > > F:\Java\open-source\lucene>java -version > java version "1.6.0_25" > Java(TM) SE Runtime Environment (build 1.6.0_25-b06) > Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode) > > > > On Tue, Mar 27, 2012 at 3:24 PM, Uwe Schindler <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Are you sure that you are not reusing the same NumericField instances >> across >> different threads? >> >> ----- >> Uwe Schindler >> H.-H.-Meier-Allee 63, D-28213 Bremen >> http://www.thetaphi.de >> eMail: [EMAIL PROTECTED] >> >> >> > -----Original Message----- >> > From: jianwen lou [mailto:[EMAIL PROTECTED]] >> > Sent: Tuesday, March 27, 2012 9:21 AM >> > To: [EMAIL PROTECTED] >> > Subject: NumericField exception java.lang.IllegalStateException: call >> > set???Value() before usage in lucene 3.5 >> > >> > I want to store the long type value to my index files like follwing: >> > >> > NumericField priceField = new NumericField("price"); >> > priceField.setDoubleValue(temp.getCurrentprice()); >> > document.add(priceField); >> > >> > NumericField salesField = new >> NumericField("salescount"); >> > priceField.setLongValue(temp.getSalescount()); >> > document.add(salesField); >> > >> > NumericField ontimefiled = new NumericField("ontime"); >> > ontimefiled.setLongValue(temp.getOntime().getTime()); >> > document.add(ontimefiled); >> > >> > when writer add document i get the exception info:there is wrong with my >> > using NumbericField? thanks >> > >> > >> > java.lang.IllegalStateException: call set???Value() before usage >> > at >> > org.apache.lucene.analysis.NumericTokenStream.reset(NumericTokenStream.j >> > ava:196) >> > at >> > >> >> org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerFiel >> d >> > .java:130) >> > at >> > >> org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFie >> > ldProcessorPerThread.java:278) >> > at >> > org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter >> > .java:766) >> > at >> > org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:2066) >> > at >> > com.beike.common.lucene.dao.IndexDaoImpl.saveGoodsIndex4Mobile(IndexDa >> > oImpl.java:308) >> > at >> > com.beike.common.lucene.dao.IndexStrategyServiceImpl.indexGoods4Mobile(I >> > ndexStrategyServiceImpl.java:118) >> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> > at >> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: >> > 39) >> > at >> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI >> > mpl.java:25) >> > at java.lang.reflect.Method.invoke(Method.java:597) >> > at >> > >> >> org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(Aop >> > Utils.java:307) >> > at >> > >> org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpo >> > int(ReflectiveMethodInvocation.java:182) >> > at >> > >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refl >> > ectiveMethodInvocation.java:149) >> > at >> > >> >> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr >> a >> > nsactionInterceptor.java:106) >> > at >> > >> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(Refl >> > ectiveMethodInvocation.java:171) >> > at >> > >> >> org.springframework.transaction.interceptor.TransactionInterceptor.invoke(Tr >> a >> > nsactionInterceptor.java:106) * *twitter.com/loujianwen +
Uwe Schindler 2012-03-27, 09:33
+
Uwe Schindler 2012-03-27, 09:31
+
jianwen lou 2012-03-27, 10:09
+
Erick Erickson 2012-03-27, 12:40
+
Brandon Mintern 2012-03-27, 19:12
+
jianwen lou 2012-03-28, 02:28
|