Question about passing tags to BM25BooleanQuery

2011-04-19 Thread Patrick Diviacco
I'm using BM25 Okapi Query form here: http://nlp.uned.es/~jperezi/Lucene-BM25/ I've a quick question. I've a list of tags: "tag1 tag2 tag3" and I'm currently passing them to the query in this way: BM25BooleanQuery okapiQuery = new BM25BooleanQuery("tag1 tag2 tag3", "tags", new WhitespaceAnalyzer(

java.lang.IncompatibleClassChangeError with BM25BooleanQuery

2011-04-19 Thread Patrick Diviacco
Hi, I get this error: Exception in thread "main" java.lang.IncompatibleClassChangeError: Implementing class at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632) at java.lang.ClassLoader.defineClass(ClassLoader.java:616) at java.securit

Re: java.lang.IncompatibleClassChangeError with BM25BooleanQuery

2011-04-19 Thread Patrick Diviacco
I've also tried to use older Lucene versions such as: Lucene 3.1 and Lucene 2.9.4 with no luck. Thanks On 19 April 2011 14:48, Patrick Diviacco wrote: > Hi, I get this error: > > Exception in thread "main" java.lang.IncompatibleClassChangeError: > Implementing class > at java.lang.ClassLoade

Lucene: Indexsearcher: java.lang.UnsupportedOperationException

2011-04-19 Thread Patrick Diviacco
I get the following error message: java.lang.UnsupportedOperationException with Lucene search method: topDocs = searcher.search(booleanQuery, null, 100); I'm using an old version of Lucene: Lucene 2.4.1 (I cannot upgrade!) Can you help me to understand why I get such error ? thanks This is the c

Solr 1.4.1: Weird query results

2011-04-19 Thread Erik Fäßler
Hallo there, my issue qualifies as newbie question I guess, but I'm really a bit confused. I have an index which has not been created by Solr. Perhaps that's already the point although I fail to see why this should be an issue with my problem. I use the admin interface to check which result

Re: Solr 1.4.1: Weird query results

2011-04-19 Thread Erick Erickson
H, I don't see the problem either. It *sounds* like you don't really have the default search field defined the way you think you do. Did you restart Solr after making that change? I'm assuming that when you say "not created by Solr" you mean that it's created by Lucene. What version of Lucene

Re: Solr 1.4.1: Weird query results

2011-04-19 Thread Lance Norskog
Look at the "text" definition stack. Does it have the same analyzer and filter that you used to make the index, and in the same order? The specific problem is that the "text" field includes a stemmer, and your code probably did not. And so "marine" is stored as, maybe 'marin'. To check this out,

Re: Lucene: Indexsearcher: java.lang.UnsupportedOperationException

2011-04-19 Thread Anshum
Could you also print and send the entire stack-trace? Also, the query.toString() -- Anshum Gupta http://ai-cafe.blogspot.com On Tue, Apr 19, 2011 at 7:40 PM, Patrick Diviacco < patrick.divia...@gmail.com> wrote: > I get the following error message: java.lang.UnsupportedOperationException > > wi

Re: Lucene: Indexsearcher: java.lang.UnsupportedOperationException

2011-04-19 Thread Patrick Diviacco
java.lang.UnsupportedOperationException at org.apache.lucene.search.Query.createWeight(Query.java:88) at org.apache.lucene.search.BooleanQuery$BooleanWeight.(BooleanQuery.java:185) at org.apache.lucene.search.BooleanQuery.createWeight(BooleanQuery.java:360) at org.apache.lucene.search.Query.weight(