Re: "java.lang.IllegalArgumentException: Could not load codec 'Lucene60'. Did you forget to add lucene-backward-codecs.jar?" Error

2018-07-29 Thread Torsten Krah
You would have to if you would e.g. still have had a Lucene50 Codec index in use, even with 6.1.0. This is not new that there is the backwards compatible jar which you need to add if you want to use old codecs. https://lucene.apache.org/core/6_2_0/backward-codecs/overview-summary.html

Re: "java.lang.IllegalArgumentException: Could not load codec 'Lucene60'. Did you forget to add lucene-backward-codecs.jar?" Error

2018-07-28 Thread Torsten Krah
Just do what the error message tells you to do ... Baris Kazar schrieb am Sa., 28. Juli 2018, 22:41: > is there a packaging issue but i also checked next Lucene versions and > they have the same structure ie no Lucene60 codec classes. > Best regards > > - Original Message - > From: baris

Re: “Too many open files" error hit when I run my Lucene 3.0.3 application on Java 8

2017-02-22 Thread Torsten Krah
What does lsof tell - which handles are open and which are unexpected or suspicious? Am 22.02.2017 5:27 nachm. schrieb "Leonid Bolshinsky" : > No code changes between running in Java 6 and Java 8. The same code still > runs successfully with Java 6 while is failing with Java 8. > > On Feb 22, 201

Re: FieldCacheRangeFilter / DocValuesRangeFilter in lucene 5.5.0

2016-05-04 Thread Torsten Krah
DocValuesRangeFilter moved to the sandbox, see here: https://lucene.apache.org/core/5_5_0/sandbox/org/apache/lucene/search/DocValuesRangeFilter.html At least you could use it while migrating but as its deprecated and experimental you still would need to migrate it again when its changed. Cheers

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Torsten Krah
Thanks for going to fix the stale docs. Torsten Am Montag, den 25.04.2016, 11:09 -0400 schrieb Michael McCandless: > The Lucene level javadocs are definitely stale ... I'll fix. > > > You should separately add a SortedDocValuesField if you also need to > sort on this field. > > Mike McCandless

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Torsten Krah
Hi Erick, i guess you've muddled the lists - this is lucenes one, not solr. I know how to define it in solr but that wasn't the question as i am using pure lucene and it did not work as expected from the javadocs there. Cheers Torsten --

Re: Lucene 5.0.0 - StringField and Sorting

2016-04-25 Thread Torsten Krah
ype.SORTED. Is there > any other way to do that without creating a custom Field? > > > On Fri, Mar 6, 2015 at 3:34 PM, Torsten Krah > wrote: > Hi, > > looking at the JavaDoc of StringField it says: > > /** A field that is indexed

Re: Weird ClassCastException running lucene 5.2.1 on Java 1.8.

2016-02-24 Thread Torsten Krah
Hi, you've already asked something similar in January about index corruption and Uwe Schindler already told you to switch to a modern JVM and not that antique one. See: http://www.gossamer-threads.com/lists/lucene/java-user/296418?page=last Quote from him: ... This Java version is "antique".

Lucene 5.0.0 - StringField and Sorting

2015-03-06 Thread Torsten Krah
Hi, looking at the JavaDoc of StringField it says: /** A field that is indexed but not tokenized: the entire * String value is indexed as a single token. For example * this might be used for a 'country' field or an 'id' * field, or any field that you intend to use for sorting * or access

Lucene 5.0.0 - StringField and Sorting

2015-02-27 Thread Torsten Krah
Hi, looking at the JavaDoc of StringField it says: /** A field that is indexed but not tokenized: the entire * String value is indexed as a single token. For example * this might be used for a 'country' field or an 'id' * field, or any field that you intend to use for sorting * or access

Looking for FieldCacheRangeFilter pendant in 5.0.0

2015-02-25 Thread Torsten Krah
Hi, looking at the Changes.html or Migrate.html there is only mentioned that the FieldCache is gone. However there was also a FieldCacheRangeFilter in 4.10.x - guess its gone too? For the missing ChainedFilter a BooleanFilter can be used. Which one should be used for the FieldCacheRangeFilter? k

Searching for DateRangeField in Lucene 5.0.0

2015-02-25 Thread Torsten Krah
Hi, reading the release notes from here: https://wiki.apache.org/lucene-java/ReleaseNote50 its written that Lucene got a new DateRangeField: * New DateRangeField type enables Indexing and searching of date ranges, particularly multi-valued ones. However - in which package is this field? Search

Re: Best practise closing Lucene index

2012-07-02 Thread Torsten Krah
I you really want a per session based reader, use a http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpSessionListener.html and create the object there in sessionCreated and destroy the Reader in sessionDestroyed. You seam component can get the create objected under a well known name you'

Re: CPU usage increased using 3.4.0

2012-05-24 Thread Torsten Krah
Maybe related to: https://issues.apache.org/jira/browse/LUCENE-3418 Monitor usage via VisualVM and you should find who is using too much cpu time. regards Torsten smime.p7s Description: S/MIME cryptographic signature

Re: Re-indexing a particular field only without re-indexing the entire enclosing document in the index

2012-04-26 Thread Torsten Krah
Am Donnerstag, den 26.04.2012, 09:46 +0530 schrieb KARTHIK SHIVAKUMAR: > Then delete the same and insert the same Fresh Document alone. But that is not "update" like the question was - that is a complete reindex of the original document, the original question was, if updating a field of a doc can

Re: Re-indexing a particular field only without re-indexing the entire enclosing document in the index

2012-04-25 Thread Torsten Krah
Am Dienstag, den 24.04.2012, 21:57 +0530 schrieb KARTHIK SHIVAKUMAR: > Simple Techniques is to use "Update Index" for the dynamic data > colum > > rather then re-indexing the whole document. Just for interest, how do you do that? smime.p7s Description: S/MIME cryptographic signature

RE: [regression] Lucene 3.6.0 tells me "ant jflex" target does not exist

2012-04-17 Thread Torsten Krah
gt; Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > > > -Original Message- > > From: Torsten Krah [mailto:tk...@fachschaft.imn.htwk-leipzig.de] > > Sent: Tuesday, April 17, 2012 12:48 PM > >

[regression] Lucene 3.6.0 tells me "ant jflex" target does not exist

2012-04-17 Thread Torsten Krah
Hi, i did a checkout of: http://svn.apache.org/repos/asf/lucene/dev/branches/lucene_solr_3_6 and modified some jflex files like done in 3.5.0 (once reachable via http://svn.apache.org/repos/asf/lucene/dev/branches/branch_3x) After that in 3.5.0 running the jflex target and all went fine. Now in