RE: SPI class of type org.apache.lucene.codecs.Codec error

2013-08-16 Thread Uwe Schindler
Hi, There is no screen shot attached to your mail. Please put it somewhere in the web and send a link. Uwe - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de From: Amal Kammoun [mailto:kammoun.ama..

Re: SPI class of type org.apache.lucene.codecs.Codec error

2013-08-16 Thread Amal Kammoun
Thank you, We are using Eclipse under Linux, and Java 1.7. Maven Shade is used for assembling the project (P1) which depends on another project which uses Lucene (P2). P2 uses lucene.core, lucene.queryparser, lucene.analyzercommon. Please find enclosed a screen-shot of the services of the two Jar

RE: SPI class of type org.apache.lucene.codecs.Codec error

2013-08-16 Thread Uwe Schindler
Hi, Maven makes it even simplier to handle this! The problem may be (I am not sure not sure, because I don’t know your setup): It seems that you are using the Maven Shade Plugin to merge all JAR files into one BIG JAR file. During this step, you may be missing to merge all the data correctly in

SPI class of type org.apache.lucene.codecs.Codec error

2013-08-16 Thread Amal Kammoun
Hi, We are working on a project which uses Lucene 4.2.1. Actually we are facing an error message "java.lang. ExceptionInInitializerError". We are using Maven for assembling the project and we have a dependency between two projects. When we do the test with eclipse it works fine. However, when we i

Re: Wrong documents in results

2013-08-16 Thread Ian Lea
and != AND? http://lucene.apache.org/core/4_4_0/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#AND It works for or rather than OR because that is the default. If you had a doc with id="or" you'd find that too, I think. It looks odd to be escaping the value when you are

Wrong documents in results

2013-08-16 Thread Maksym Krasovskiy
Hi! I have documents with two fields id and name. I create index with code: Document doc = new Document(); doc.add(new TextField("id", id), Store.YES)); doc.add(new TextField("name", QueryParser.escape(name), Store.YES)); indexWriter.addDocument(doc); When I try to search with query with code: Que

RE: Question on wildcard queries, filters, scoring and TooManyClauses exception

2013-08-16 Thread Bill Chesky
Thanks for the reply Ian. > I can't explain all of it and 3.0 is way old ... you might like to > think about upgrading. Yes, I agree but since there's a significant code base in place, it's a bigger project than I can take on at the moment. > However in your first snippet you don't need the que

Re: Question on wildcard queries, filters, scoring and TooManyClauses exception

2013-08-16 Thread Ian Lea
I can't explain all of it and 3.0 is way old ... you might like to think about upgrading. However in your first snippet you don't need the query AND the filter. Either one will suffice. In some circumstances, as you say, filters are preferable but queries and filters are often interchangeable.