SpanOrQuery with unreasonable high scores

2010-12-07 Thread Jan Kurella

Hi,

From what I got, the SpanOrQuery is similar to a BooleanQuery with 
Or-Clauses. It can be used in other span queries.
But compared to the BooleanQuery it has a significant difference: It is 
missing a querynormalization. Thus by the just summed up idf of all 
tokens in the query, even documents with just one hit get an extremely 
high score as mainly the idf is relevant for scoring.


To have some query normalization like in BQ one qould need to cascade 
the SpanWeight.normalize(float) down to the Spans (and its containing 
subSpans). But unfortunately neither is the Spans existing at this point 
in time nor does the Spans concept support boosts or norms.


so how do I get the SpanOrQuery best normed to be comparable to a 
BooleanQuery?


Jan


-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: Help Overriding behavior in BooleanQuery scorer

2010-12-07 Thread Erick Erickson
I haven't a clue about the package protected thing, but
you may not need to go there. This sounds a lot like
DisjunctionMaxQuery, have you looked at it?
 http://lucene.apache.org/java/3_0_2/api/all/index.html

Best
Erick

On Tue, Dec 7, 2010 at 1:09 AM, Ryan Aylward  wrote:

> I would like to customize the scoring of the BooleanQuery. The scoring
> for Boolean queries sums together each clause. Rather than summing
> together each clause, I would like to take the max score of any of the
> clauses.
>
>
>
> Ideally, I would like to inherit from BooleanScorer and BooleanScorer2
> and make a couple of very minor changes to it. Unfortunately, both
> classes are package protected and declared as final. This prevents me
> from being able to modify them at all. It seems the only way I can
> change this is to basically create a copy of a bunch of classes
> (BooleanQuery, BooleanWeight, BooleanScorer, BooleanScorer2,
> DisjunctionSumScorer, ConjunctionScorer, etc).
>
>
>
> Does anyone know why many of those classes are package protected and
> final? Any suggestions for how to customize this part of the scoring
> algorithm without having to copy all of these classes?
>
>
>
> Thanks,
>
> Ryan Aylward
>
>


RE: Help Overriding behavior in BooleanQuery scorer

2010-12-07 Thread Ryan Aylward
Thanks very much for the response, Erick.

I think one of my co-workers tried to use it and seemed to think it
didn't meet our needs but I'll give it a shot.

In the meantime, I'm curious to see if anyone else has modified
BooleanQuery to modify how calculates the score. Is the only way to do
that to make a copy of the classes?

-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com] 
Sent: Tuesday, December 07, 2010 4:57 AM
To: java-user@lucene.apache.org
Subject: Re: Help Overriding behavior in BooleanQuery scorer

I haven't a clue about the package protected thing, but
you may not need to go there. This sounds a lot like
DisjunctionMaxQuery, have you looked at it?
 http://lucene.apache.org/java/3_0_2/api/all/index.html

Best
Erick

On Tue, Dec 7, 2010 at 1:09 AM, Ryan Aylward  wrote:

> I would like to customize the scoring of the BooleanQuery. The scoring
> for Boolean queries sums together each clause. Rather than summing
> together each clause, I would like to take the max score of any of the
> clauses.
>
>
>
> Ideally, I would like to inherit from BooleanScorer and BooleanScorer2
> and make a couple of very minor changes to it. Unfortunately, both
> classes are package protected and declared as final. This prevents me
> from being able to modify them at all. It seems the only way I can
> change this is to basically create a copy of a bunch of classes
> (BooleanQuery, BooleanWeight, BooleanScorer, BooleanScorer2,
> DisjunctionSumScorer, ConjunctionScorer, etc).
>
>
>
> Does anyone know why many of those classes are package protected and
> final? Any suggestions for how to customize this part of the scoring
> algorithm without having to copy all of these classes?
>
>
>
> Thanks,
>
> Ryan Aylward
>
>

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



java.lang.NoClassDefFoundError:org/apache/lucene/search/similar/MoreLikeThis

2010-12-07 Thread starz10de



Hi All,

I am using MoreLikeThis class in lucene to find more similar documents in
the index to the giving one. It works fine when I run it directly from
Eclipse but when I call it from my servlet I have this error:

“java.lang.NoClassDefFoundError:org/apache/lucene/search/similar/MoreLikeThis“

Any idea why this error occurred?

Thanks 

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/java-lang-NoClassDefFoundError-org-apache-lucene-search-similar-MoreLikeThis-tp2036296p2036296.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: java.lang.NoClassDefFoundError:org/apache/lucene/search/similar/MoreLikeThis

2010-12-07 Thread Erick Erickson
It sounds like the jar containing the MoreLikeThis class in a place that
your servlet
can find it. It's in contrib, something like lucene-queries.jar

Best
Erick

On Tue, Dec 7, 2010 at 4:24 PM, starz10de  wrote:

>
>
>
> Hi All,
>
> I am using MoreLikeThis class in lucene to find more similar documents in
> the index to the giving one. It works fine when I run it directly from
> Eclipse but when I call it from my servlet I have this error:
>
>
> “java.lang.NoClassDefFoundError:org/apache/lucene/search/similar/MoreLikeThis“
>
> Any idea why this error occurred?
>
> Thanks
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/java-lang-NoClassDefFoundError-org-apache-lucene-search-similar-MoreLikeThis-tp2036296p2036296.html
> Sent from the Lucene - Java Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>


CityGrid's Lucene Presentation at LAJUG

2010-12-07 Thread Kovnatsky, Eugene
Hi everyone, 
 
Do you know where I can find CityGrid's presentation that they did on
Sep 14 at LAJUG? It's called "Real time index updates in Lucene".
 
Thanks,
 
Eugene.


Re: java.lang.NoClassDefFoundError:org/apache/lucene/search/similar/MoreLikeThis

2010-12-07 Thread starz10de

Dear Erick ,

thanks a lot, I placed the jar file in WEB-INF\lib and it works.

best

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/java-lang-NoClassDefFoundError-org-apache-lucene-search-similar-MoreLikeThis-tp2036296p2037181.html
Sent from the Lucene - Java Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Ui Framework for lucene

2010-12-07 Thread Vinaya Kumar Thimmappa

Hello All,

is there any ui framework that exists for lucene framework.

i am  not looking for luke kind of tool.
But more like application ready to use.
"Add a config file and ui is ready to use for adding data and also 
search data".


Thanks and Regards
Vinaya


-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: Ui Framework for lucene

2010-12-07 Thread Chris Lu

You can use DBSight for database search. You just need to give it one or 
several SQLs. And you can generate search result template, and it will manage 
the index for you.

http://www.dbsight.net

--
--
Chris Lu
-
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com


On 12/7/2010 10:02 PM, Vinaya Kumar Thimmappa wrote:

Hello All,

is there any ui framework that exists for lucene framework.

i am  not looking for luke kind of tool.
But more like application ready to use.
"Add a config file and ui is ready to use for adding data and also 
search data".


Thanks and Regards
Vinaya


-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org




-
To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-user-h...@lucene.apache.org



Re: Ui Framework for lucene

2010-12-07 Thread Alexander Aristov
Did you see solr? It's a web app.

Best Regards
Alexander Aristov


On 8 December 2010 09:36, Chris Lu  wrote:

> You can use DBSight for database search. You just need to give it one or
> several SQLs. And you can generate search result template, and it will
> manage the index for you.
>
> http://www.dbsight.net
>
> --
> --
> Chris Lu
> -
> Instant Scalable Full-Text Search On Any Database/Application
> site: http://www.dbsight.net
> demo: http://search.dbsight.com
>
>
>
> On 12/7/2010 10:02 PM, Vinaya Kumar Thimmappa wrote:
>
>> Hello All,
>>
>> is there any ui framework that exists for lucene framework.
>>
>> i am  not looking for luke kind of tool.
>> But more like application ready to use.
>> "Add a config file and ui is ready to use for adding data and also search
>> data".
>>
>> Thanks and Regards
>> Vinaya
>>
>>
>> -
>> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
>> For additional commands, e-mail: java-user-h...@lucene.apache.org
>>
>>
>
> -
> To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org
> For additional commands, e-mail: java-user-h...@lucene.apache.org
>
>